Package gov.nih.mipav.model.file
Class FileInfoMGH
- java.lang.Object
-
- gov.nih.mipav.model.structures.ModelSerialCloneable
-
- gov.nih.mipav.model.file.FileInfoBase
-
- gov.nih.mipav.model.file.FileInfoMGH
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class FileInfoMGH extends FileInfoBase
- See Also:
FileMGH
, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nih.mipav.model.file.FileInfoBase
FileInfoBase.AxisOrientation, FileInfoBase.ImageOrientation, FileInfoBase.Modality, FileInfoBase.Unit, FileInfoBase.UnitType
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String[]
cmdlines
private int
dof
private float
flipAngle
private float
fov
private float
leftCenter
private TransMatrix
matrix
private float
posteriorCenter
private float
superiorCenter
private float
te
private float
ti
private float
tr
private java.lang.String
transformFileName
private int
version
Currently version number is 1-
Fields inherited from class gov.nih.mipav.model.file.FileInfoBase
ANGSTROMS, ANGSTROMS_STRING, AXIAL, axisOrientation, axisOrientationStr, BIOMAGNETIC_IMAGING, cameraMake, cameraModel, CENTIMETERS, CENTIMETERS_STRING, COLOR_FLOW_DOPPLER, COMPRESSION_BZIP2, COMPRESSION_GZIP, COMPRESSION_NONE, COMPRESSION_ZIP, COMPUTED_RADIOGRAPHY, COMPUTED_TOMOGRAPHY, conversionSpaceTimeUnits, CORONAL, DEGREES, DEGREES_STRING, DIAPHANOGRAPHY, DIGITAL_RADIOGRAPHY, DUPLEX_DOPPLER, ENDOSCOPY, exposureTime, EXTERNAL_CAMERA_PHOTOGRAPHY, FA, fileName, fileSuffix, FNumber, focalLength, focalLength35, GENERAL_MICROSCOPY, HARDCOPY, HOURS, HOURS_STRING, HZ, HZ_STRING, ICG, imageOrientation, INCHES, INCHES_STRING, INTRAORAL_RADIOGRAPHY, ISOSpeedRating, KILOMETERS, KILOMETERS_STRING, LASER_SURFACE_SCAN, MAGNETIC_RESONANCE, MAGNETIC_RESONANCE_ANGIOGRAPHY, MAGNETIC_RESONANCE_SPECTROSCOPY, MAMMOGRAPHY, METERS, METERS_STRING, MICROMETERS, MICROMETERS_STRING, MICROSEC, MICROSEC_STRING, MILES, MILES_STRING, MILLIMETERS, MILLIMETERS_STRING, MILLISEC, MILLISEC_STRING, MILS, MILS_STRING, MINUTES, MINUTES_STRING, modality, NANOMETERS, NANOMETERS_STRING, NANOSEC, NANOSEC_STRING, NUCLEAR_MEDICINE, ORI_A2P_TYPE, ORI_I2S_TYPE, ORI_L2R_TYPE, ORI_P2A_TYPE, ORI_R2L_TYPE, ORI_S2I_TYPE, ORI_UNKNOWN_TYPE, origin, OTHER, PANORAMIC_XRAY, POSITRON_EMISSION_TOMOGRAPHY, PPM, PPM_STRING, RADIO_FLUOROSCOPY, RADIOGRAPHIC_IMAGING, RADIOTHERAPY_DOSE, RADIOTHERAPY_IMAGE, RADIOTHERAPY_PLAN, RADIOTHERAPY_RECORD, RADIOTHERAPY_STRUCTURE_SET, RADS, RADS_STRING, RED_FREE, SAGITTAL, SECONDS, SECONDS_STRING, SINGLE_PHOTON_EMISSION_COMPUTED_TOMOGRAPHY, SLIDE_MICROSCOPY, sUnits, tagDescription, tagName, THERMOGRAPHY, TRANSFORM_ANOTHER_DATASET, TRANSFORM_MNI_152, TRANSFORM_SCANNER_ANATOMICAL, TRANSFORM_TALAIRACH_TOURNOUX, TRANSFORM_UNKNOWN, tUnits, ULTRASOUND, unitsOfMeasure, UNKNOWN_MEASURE, UNKNOWN_MODALITY, UNKNOWN_ORIENT, UNKNOWN_STRING, XRAY_ANGIOGRAPHY
-
-
Constructor Summary
Constructors Constructor Description FileInfoMGH(java.lang.String name, java.lang.String directory, int format)
file info storage constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
displayAboutInfo(JDialogBase dlog, TransMatrix matrix)
Displays the file information.TransMatrix
getMatrix()
void
setCmdlines(java.lang.String[] cmdlines)
void
setDOF(int dof)
void
setFlipAngle(float flipAngle)
void
setFOV(float fov)
void
setLeftCenter(float leftCenter)
void
setMatrix(TransMatrix matrix)
DOCUMENT ME!void
setPosteriorCenter(float posteriorCenter)
protected java.lang.String
setString(java.lang.String str, int len)
verifies string is not larger than len length; strings larger than len, are clipped before being returned.void
setSuperiorCenter(float superiorCenter)
void
setTE(float te)
void
setTI(float ti)
void
setTR(float tr)
void
setTransformFileName(java.lang.String transformFileName)
void
setVersion(int version)
void
stateChanged(java.util.Vector ce)
.void
updateFileInfos(FileInfoMGH fInfo)
Propogates the current file info to another FileInfoMGH.-
Methods inherited from class gov.nih.mipav.model.file.FileInfoBase
copyCoreInfo, copyCoreInfo, displayAboutInfo, displayPrimaryInfo, finalize, getAboutInfo, getAllSameDimUnits, getAreaUnitsOfMeasureStr, getAxisDirection, getAxisOrientation, getAxisOrientation, getAxisOrientationFromStr, getAxisOrientationStr, getCameraMake, getCameraModel, getCompressionType, getDataType, getDataTypeFromStr, getEndianess, getEndianessFromStr, getExposureTime, getExtents, getFileDirectory, getFileFormat, getFileName, getFileSuffix, getFNumber, getFocalLength, getFocalLength35, getImageOrientation, getImageOrientationFromStr, getImageOrientationStr, getIs2_5D, getISOSpeedRating, getLPSOrigin, getLUT, getMax, getMaxB, getMaxG, getMaxR, getMin, getMinB, getMinG, getMinR, getModality, getModalityFromStr, getModalityStr, getModalityStr, getMultiFile, getNumOfBytesPerPixel, getOffset, getOrigin, getOrigin, getOriginalEndianess, getOriginAtSlice, getPhotometric, getPixelPadValue, getPrimaryInfo, getRescaleIntercept, getRescaleSlope, getResolution, getResolutions, getSize, getSliceThickness, getUnitsOfMeasure, getUnitsOfMeasure, getUnitsOfMeasureAbbrevStr, getUnitsOfMeasureAbbrevStr, getUnitsOfMeasureFromStr, getUnitsOfMeasureStr, getUnitsOfMeasureStr, getVolumeUnitsOfMeasureStr, isDicomOrdered, oppositeOrient, sameAxis, setAxisOrientation, setAxisOrientation, setCameraMake, setCameraModel, setCompressionType, setDataType, setEndianess, setExposureTime, setExtents, setExtents, setFileDirectory, setFileFormat, setFileName, setFileSuffix, setFNumber, setFocalLength, setFocalLength35, setImageOrientation, setISOSpeedRating, setLUT, setMax, setMaxB, setMaxG, setMaxR, setMin, setMinB, setMinG, setMinR, setModality, setMultiFile, setOffset, setOrigin, setOrigin, setOriginalEndianess, setPhotometric, setPixelPadValue, setRescaleIntercept, setRescaleSlope, setResolutions, setResolutions, setSliceThickness, setTagDescription, setTagName, setUnitsOfMeasure, setUnitsOfMeasure, setUnitsOfMeasure, setUnitsOfMeasure, toString
-
Methods inherited from class gov.nih.mipav.model.structures.ModelSerialCloneable
clone, nativeClone
-
-
-
-
Field Detail
-
version
private int version
Currently version number is 1
-
dof
private int dof
-
leftCenter
private float leftCenter
-
posteriorCenter
private float posteriorCenter
-
superiorCenter
private float superiorCenter
-
tr
private float tr
-
flipAngle
private float flipAngle
-
te
private float te
-
ti
private float ti
-
fov
private float fov
-
transformFileName
private java.lang.String transformFileName
-
cmdlines
private java.lang.String[] cmdlines
-
matrix
private TransMatrix matrix
-
-
Method Detail
-
displayAboutInfo
public void displayAboutInfo(JDialogBase dlog, TransMatrix matrix)
Displays the file information.- Specified by:
displayAboutInfo
in classFileInfoBase
- Parameters:
dlog
- dialog box that is written tomatrix
- transformation matrix
-
setVersion
public void setVersion(int version)
- Parameters:
version
-
-
setDOF
public void setDOF(int dof)
- Parameters:
dof
-
-
setLeftCenter
public void setLeftCenter(float leftCenter)
- Parameters:
leftCenter
-
-
setPosteriorCenter
public void setPosteriorCenter(float posteriorCenter)
- Parameters:
posteriorCenter
-
-
setSuperiorCenter
public void setSuperiorCenter(float superiorCenter)
- Parameters:
superiorCenter
-
-
setTR
public void setTR(float tr)
- Parameters:
tr
-
-
setFlipAngle
public void setFlipAngle(float flipAngle)
- Parameters:
flipAngle
-
-
setTE
public void setTE(float te)
- Parameters:
te
-
-
setTI
public void setTI(float ti)
- Parameters:
ti
-
-
setFOV
public void setFOV(float fov)
- Parameters:
fov
-
-
setTransformFileName
public void setTransformFileName(java.lang.String transformFileName)
- Parameters:
transformFileName
-
-
setCmdlines
public void setCmdlines(java.lang.String[] cmdlines)
- Parameters:
cmdlines
-
-
setMatrix
public void setMatrix(TransMatrix matrix)
DOCUMENT ME!- Parameters:
matrix
- DOCUMENT ME!
-
getMatrix
public TransMatrix getMatrix()
-
stateChanged
public void stateChanged(java.util.Vector ce)
.ce[0] = table 0 = primary, 1 = secondary, etC ce[1] = line of table ce[2] = string name eg, "Type" ce[3] = Vector codeValue eg, "B" ce[4] = string value eg, "Big" - Parameters:
ce
- DOCUMENT ME!
-
updateFileInfos
public void updateFileInfos(FileInfoMGH fInfo)
Propogates the current file info to another FileInfoMGH.It does not copy over the datatypeCode. (though, aside from, "it isn't in the about table", I can't think of a reason why it shouldn't. but it doesn't.) Also, copied over is bitPix, aux_file.
- Parameters:
fInfo
- DOCUMENT ME!
-
setString
protected java.lang.String setString(java.lang.String str, int len)
verifies string is not larger than len length; strings larger than len, are clipped before being returned.- Returns:
- String new substring
- See Also:
String.substring(int, int)
-
-