Class FileInfoSPM
- java.lang.Object
- 
- gov.nih.mipav.model.structures.ModelSerialCloneable
- 
- gov.nih.mipav.model.file.FileInfoBase
- 
- gov.nih.mipav.model.file.FileInfoSPM
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Cloneable
 
 public class FileInfoSPM extends FileInfoBase This structures contains the information that describes how an SPM image is stored on disk. We have extended this format to store image orientation and start locations. We have used unused variables to store these data. Almost all programs ignore these variables and should not have any problems reading images saved with MIPAV.Differences between MIPAV ANALYZE and SPM: In MIPAV ANALYZE we have location 60 cal_units 4 unsigned characters location 64 - X-axis orientation @see FileInfoBase for static variables that are set. location 66 - Y-axis orientation // All three unused variables are of short type. location 68 - Z-axis orientation In SPM we have location 60 cal_units 8 unsigned characters location 68 unused1 In MIPAV ANALYZE we have location 112 Funused1 - X-axis starting location (origin from upper left-hand corner) location 116 Funused2 - Y-axis starting location (origin from upper left-hand corner) location 120 Funused3 - Z-axis starting location (origin is the first image slice) In SPM we have location 112 Funused1 scale a floating point scale factor applied during memory mapping location 116 Funused2 location 120 Funused3 In MIPAV ANALYZE we have location 253 originator with 10 characters In SPM we have location 253 origin with 5 shorts. If the first 3 shorts of a 3D image are set to 0, 0, 0, the origin is assumed to be at the center of the volume, since in SPM the corner voxel is at 1, 1, 1. The position(x,y,z) in mm. is determined by the distance(x,y,z) from the origin multiplied by the vox_units(x,y,z). In SPM the signed byte datatype was added with DT_BYTE = 130. MIPAV ANALYZE uses UNSIGNED_SHORT = 6 while SPM uses DT_UNSIGNED_SHORT = 132. The SPM standard also provides for an unsigned int = 136, but MIPAV does not used the unsigned int data type. Note that in SPM while DATA = datatype * 256 for swapped bytes, only datatype and not DATA is written to the file, so in this program we need never consider the multiplicative factors of 256. RGB SPM images are store in chunky format rgb, rgb, rgb ...... - Version:
- 1.0 July, 2002
- Author:
- Matthew J. McAuliffe, Ph.D.
- See Also:
- FileSPM, Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class gov.nih.mipav.model.file.FileInfoBaseFileInfoBase.AxisOrientation, FileInfoBase.ImageOrientation, FileInfoBase.Modality, FileInfoBase.Unit, FileInfoBase.UnitType
 
- 
 - 
Field SummaryFields Modifier and Type Field Description private java.lang.Stringaux_fileDOCUMENT ME!private shortbitpixDOCUMENT ME!private floatcal_maxDOCUMENT ME!private floatcal_minDOCUMENT ME!private java.lang.Stringcal_unitsDOCUMENT ME!private floatcompressedDOCUMENT ME!static byteCORONAL_FLIPPEDDOCUMENT ME!static byteCORONAL_UNFLIPPEDDOCUMENT ME!private java.lang.Stringdata_typeDOCUMENT ME!private shortdatatypeDOCUMENT ME!private java.lang.Stringdb_nameDOCUMENT ME!private java.lang.StringdescripDOCUMENT ME!private shortdim_un0DOCUMENT ME!static intDT_ALLDOCUMENT ME!static intDT_BINARYDOCUMENT ME!static intDT_BYTEDOCUMENT ME!static intDT_COMPLEXDOCUMENT ME!static intDT_DOUBLEDOCUMENT ME!static intDT_FLOATDOCUMENT ME!static intDT_NONEDOCUMENT ME!static intDT_RGBDOCUMENT ME!static intDT_SIGNED_INTDOCUMENT ME!static intDT_SIGNED_SHORTDOCUMENT ME!static intDT_UNKNOWNDOCUMENT ME!static intDT_UNSIGNED_CHARDOCUMENT ME!static intDT_UNSIGNED_INTDOCUMENT ME!static intDT_UNSIGNED_SHORTDOCUMENT ME!private java.lang.Stringexp_dateDOCUMENT ME!private java.lang.Stringexp_timeDOCUMENT ME!private intextentsDOCUMENT ME!private intfield_skipDOCUMENT ME!private java.lang.StringgeneratedDOCUMENT ME!private intglmaxDOCUMENT ME!private intglminDOCUMENT ME!private java.lang.Stringhist_un0DOCUMENT ME!private charhkey_un0DOCUMENT ME!private intomaxDOCUMENT ME!private intominDOCUMENT ME!private byteorientDOCUMENT ME!private short[]originDOCUMENT ME!private java.lang.Stringpatient_idDOCUMENT ME!private charregularDOCUMENT ME!static byteSAGITTAL_FLIPPEDDOCUMENT ME!static byteSAGITTAL_UNFLIPPEDDOCUMENT ME!private floatscalea floating point scale factor used during memory mapping.private java.lang.StringscannumDOCUMENT ME!private static longserialVersionUIDUse serialVersionUID for interoperability.private shortsession_errorDOCUMENT ME!private intsizeof_hdrDOCUMENT ME!private intsmaxDOCUMENT ME!private intsminDOCUMENT ME!private intstart_fieldDOCUMENT ME!static byteTRANSVERSE_FLIPPEDDOCUMENT ME!static byteTRANSVERSE_UNFLIPPEDDOCUMENT ME!static byteUNKNOWN_ORIENTThe data_history substructure is not required, but the orient element is used to indicate individual slice orientation and determines whetther the SPM Movie program will attempt to flip the images before displaying a movie sequence. 0 - transverse unflipped 1 - coronal unflipped 2 - sagitttal unflipped 3 - transverse flipped 4 - coronal flipped 5 - sagitttal flippedprivate floatverifiedDOCUMENT ME!private intviewsDOCUMENT ME!private intvols_addedDOCUMENT ME!private floatvox_offsetpublic float pixdim = new float[8]; // image resolutions info mm or ms stored in FileInfoBase pixdim[0] = number of dimensions pixdim[1] = voxel width pixdim[2] = voxel height pixdim[3] = voxel thickness pixdim[4] = time.private java.lang.Stringvox_unitspublic short dim[] = new short[8]; // image dimension data stored in FileInfoBase dim[0] = number of dimensions; usally 4 dim[1] = image width dim[2] = image height dim[3] = image depth (# of slices) dim[4] = volumes in image --- must be one for 3D image.- 
Fields inherited from class gov.nih.mipav.model.file.FileInfoBaseANGSTROMS, 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, 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_STRING, XRAY_ANGIOGRAPHY
 
- 
 - 
Constructor SummaryConstructors Constructor Description FileInfoSPM(java.lang.String name, java.lang.String directory, int format)file info storage constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisplayAboutInfo(JDialogBase dlog, TransMatrix matrix)displays the file information.java.lang.StringgetAuxFile()accessor to the aux_file string.shortgetBitPix()accessor to the bitpix value.floatgetCalMax()accessor to cal-max.floatgetCalMin()accessor to cal-min.java.lang.StringgetCalUnits()provides the string for cal units.floatgetCompressed()provides the compressed value.shortgetDataTypeCode()accessor to coded datatype value.java.lang.StringgetDataTypeName()Accessor to the 10 character string of data-type.java.lang.StringgetDBname()accessor to DB_name.java.lang.StringgetDescription()accessor to the current SPM-image description.shortgetDim()DOCUMENT ME!java.lang.StringgetExperimentDate()provides the current experiment date string.java.lang.StringgetExperimentTime()provides the current experiment time string.intgetFieldSkip()provides the current field_skip value.intgetFileExtents()DOCUMENT ME!java.lang.StringgetGenerated()provides the current generated string.intgetGLmax()provides the value of glmax.intgetGLmin()provides the value of glmin.java.lang.StringgetHist()DOCUMENT ME!chargetHkey()DOCUMENT ME!intgetOmax()provides current omax value.intgetOmin()provides current omin value.bytegetOrientation()provides the current orientation value.short[]getOriginLoc()DOCUMENT ME!java.lang.StringgetPatientID()provides the current patient id.chargetRegular()provides the value of regular character.floatgetScale()DOCUMENT ME!java.lang.StringgetScanNum()provides the current scannum string.shortgetSessionErr()provide the value of session err.intgetSizeOfHeader()DOCUMENT ME!intgetSmax()provides current smax value.intgetSmin()provides current smin value.intgetStartField()provides the current value for the start_field.floatgetVerified()provides the verified value.intgetViews()provides current views value.intgetVolsAdded()provides the current vols_added value.floatgetVoxOffset()accessor to the vox offset value.java.lang.StringgetVoxUnits()provides the string for vox-units.private java.lang.StringselectOrientationText(int or)selection of text for the table and the editpanel.voidsetAuxFile(java.lang.String aux)supplies auxiliary-file string; permits no more than 24 characters.voidsetAxisOrientation(int[] axOrient)Sets orientation of each axis.voidsetBitPix(short bp)sets bitpix; any value other than 1, 8, 16, 32, 64, or 24 gets set to the dissalowed trap value, -1.voidsetCalMax(float cal)sets cal-max. if supplied value is less than cal-min, the cal-min gets reset to the supplied value as well, so that cal-min is still no greater than cal-max.voidsetCalMin(float cal)sets cal-min. if supplied value is greater than cal-max, the cal-max gets reset to the supplied value as well, so that cal-max is still no less than cal-min.voidsetCalUnits(java.lang.String cal)allows no more than 8 characters for the string describing the cal units.voidsetCompressed(float comp)sets the compressed variable.voidsetDataType(short dtype)accessor to supply coded datatype.voidsetDataType(java.lang.String dtype)permits 10 charactar large string for data-type.voidsetDBname(java.lang.String dbname)18 character max to set the DB_NAME value.voidsetDescription(java.lang.String description)allows no more than 80 characters to fill in the SPM-image description.voidsetDim(short un0)DOCUMENT ME!voidsetExperimentDate(java.lang.String date)allows a maximum of 10 characters to set the experiment date string.voidsetExperimentTime(java.lang.String time)allows a maximum of 10 characters to set the experiment time string.voidsetFieldSkip(int field)supplies the submitted value to the field_sip variable.voidsetFileExtents(int ext)DOCUMENT ME!voidsetGenerated(java.lang.String gen)allows a maximum of 10 characters to set the generated string.voidsetGLmax(int gl)sets glmax. if supplied value is less than glmin, the glmin gets reset to the supplied value as well, so that glmin is still no greater than glmax.voidsetGLmin(int gl)sets glmin. if supplied value is greater than glmax, the glmax gets reset to the supplied value as well, so that glmax is still no less than glmin.voidsetHist(java.lang.String hist)DOCUMENT ME!voidsetHkey(char hk)DOCUMENT ME!voidsetMipavOrigin(float[] mipavOrigin)voidsetOmax(int o)sets omax. if supplied value is less than omin, the omin gets reset to the supplied value as well, so that omin is still no greater than omax.voidsetOmin(int o)sets omin. if supplied value is greater than omax, the omax gets reset to the supplied value as well, so that omax is still no less than omin.voidsetOrientation(byte orientation)Sets the image orientation converting from SPM specific orientation to general orientation.voidsetOrigin(short[] origin)DOCUMENT ME!voidsetPatientID(java.lang.String IDnum)allows a maximum of 10 characters to set the patient ID string.voidsetRegular(char ch)supply the value of regular character.voidsetScale(float scale)DOCUMENT ME!voidsetScanNum(java.lang.String num)allows a maximum of 10 characters to set the scannum string.voidsetSessionErr(short s)supply the value of session error.voidsetSizeOfHeader(int size)DOCUMENT ME!voidsetSmax(int s)sets smax. if supplied value is less than smin, the smin gets reset to the supplied value as well, so that smin is still no greater than smax.voidsetSmin(int s)sets smin. if supplied value is greater than smax, the smax gets reset to the supplied value as well, so that smax is still no less than smin.voidsetStartField(int field)supplies the submitted value to the start_field variable.protected java.lang.StringsetString(java.lang.String str, int len)verifies string is not larger than len length; strings larger than len, are clipped before being returned.voidsetVerified(float veri)supply the value to verified.voidsetViews(int view)sets the views variable.voidsetVolsAdded(int vols)supplies a value to the vols_added valiable.voidsetVoxOffset(float vox)sets vox offset value.voidsetVoxUnits(java.lang.String vox)allows no more than 4 characters for the string describing the vox units.voidstateChanged(java.util.Vector ce).voidupdateFileInfos(FileInfoSPM fInfo)Propogates the current file info to another FileInfoSPM except for the 3 start locations kept in funused1, funused2, funused3.- 
Methods inherited from class gov.nih.mipav.model.file.FileInfoBasecopyCoreInfo, 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, 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.ModelSerialCloneableclone, nativeClone
 
- 
 
- 
- 
- 
Field Detail- 
serialVersionUIDprivate static final long serialVersionUID Use serialVersionUID for interoperability.- See Also:
- Constant Field Values
 
 - 
DT_NONEpublic static final int DT_NONE DOCUMENT ME!- See Also:
- Constant Field Values
 
 - 
DT_UNKNOWNpublic static final int DT_UNKNOWN DOCUMENT ME!- See Also:
- Constant Field Values
 
 - 
DT_BINARYpublic static final int DT_BINARY DOCUMENT ME!- See Also:
- Constant Field Values
 
 - 
DT_BYTEpublic static final int DT_BYTE DOCUMENT ME!- See Also:
- Constant Field Values
 
 - 
DT_UNSIGNED_CHARpublic static final int DT_UNSIGNED_CHAR DOCUMENT ME!- See Also:
- Constant Field Values
 
 - 
DT_SIGNED_SHORTpublic static final int DT_SIGNED_SHORT DOCUMENT ME!- See Also:
- Constant Field Values
 
 - 
DT_UNSIGNED_SHORTpublic static final int DT_UNSIGNED_SHORT DOCUMENT ME!- See Also:
- Constant Field Values
 
 - 
DT_SIGNED_INTpublic static final int DT_SIGNED_INT DOCUMENT ME!- See Also:
- Constant Field Values
 
 - 
DT_UNSIGNED_INTpublic static final int DT_UNSIGNED_INT DOCUMENT ME!- See Also:
- Constant Field Values
 
 - 
DT_FLOATpublic static final int DT_FLOAT DOCUMENT ME!- See Also:
- Constant Field Values
 
 - 
DT_COMPLEXpublic static final int DT_COMPLEX DOCUMENT ME!- See Also:
- Constant Field Values
 
 - 
DT_DOUBLEpublic static final int DT_DOUBLE DOCUMENT ME!- See Also:
- Constant Field Values
 
 - 
DT_RGBpublic static final int DT_RGB DOCUMENT ME!- See Also:
- Constant Field Values
 
 - 
DT_ALLpublic static final int DT_ALL DOCUMENT ME!- See Also:
- Constant Field Values
 
 - 
UNKNOWN_ORIENTpublic static final byte UNKNOWN_ORIENT The data_history substructure is not required, but the orient element is used to indicate individual slice orientation and determines whetther the SPM Movie program will attempt to flip the images before displaying a movie sequence. 0 - transverse unflipped 1 - coronal unflipped 2 - sagitttal unflipped 3 - transverse flipped 4 - coronal flipped 5 - sagitttal flipped- See Also:
- Constant Field Values
 
 - 
TRANSVERSE_UNFLIPPEDpublic static final byte TRANSVERSE_UNFLIPPED DOCUMENT ME!- See Also:
- Constant Field Values
 
 - 
CORONAL_UNFLIPPEDpublic static final byte CORONAL_UNFLIPPED DOCUMENT ME!- See Also:
- Constant Field Values
 
 - 
SAGITTAL_UNFLIPPEDpublic static final byte SAGITTAL_UNFLIPPED DOCUMENT ME!- See Also:
- Constant Field Values
 
 - 
TRANSVERSE_FLIPPEDpublic static final byte TRANSVERSE_FLIPPED DOCUMENT ME!- See Also:
- Constant Field Values
 
 - 
CORONAL_FLIPPEDpublic static final byte CORONAL_FLIPPED DOCUMENT ME!- See Also:
- Constant Field Values
 
 - 
SAGITTAL_FLIPPEDpublic static final byte SAGITTAL_FLIPPED DOCUMENT ME!- See Also:
- Constant Field Values
 
 - 
aux_fileprivate java.lang.String aux_file DOCUMENT ME!
 - 
bitpixprivate short bitpix DOCUMENT ME!
 - 
cal_maxprivate float cal_max DOCUMENT ME!
 - 
cal_minprivate float cal_min DOCUMENT ME!
 - 
cal_unitsprivate java.lang.String cal_units DOCUMENT ME!
 - 
compressedprivate float compressed DOCUMENT ME!
 - 
data_typeprivate java.lang.String data_type DOCUMENT ME!
 - 
datatypeprivate short datatype DOCUMENT ME!
 - 
db_nameprivate java.lang.String db_name DOCUMENT ME!
 - 
descripprivate java.lang.String descrip DOCUMENT ME!
 - 
dim_un0private short dim_un0 DOCUMENT ME!
 - 
exp_dateprivate java.lang.String exp_date DOCUMENT ME!
 - 
exp_timeprivate java.lang.String exp_time DOCUMENT ME!
 - 
extentsprivate int extents DOCUMENT ME!
 - 
field_skipprivate int field_skip DOCUMENT ME!
 - 
generatedprivate java.lang.String generated DOCUMENT ME!
 - 
glmaxprivate int glmax DOCUMENT ME!
 - 
glminprivate int glmin DOCUMENT ME!
 - 
hist_un0private java.lang.String hist_un0 DOCUMENT ME!
 - 
hkey_un0private char hkey_un0 DOCUMENT ME!
 - 
omaxprivate int omax DOCUMENT ME!
 - 
ominprivate int omin DOCUMENT ME!
 - 
orientprivate byte orient DOCUMENT ME!
 - 
originprivate short[] origin DOCUMENT ME!
 - 
patient_idprivate java.lang.String patient_id DOCUMENT ME!
 - 
regularprivate char regular DOCUMENT ME!
 - 
scaleprivate float scale a floating point scale factor used during memory mapping.
 - 
scannumprivate java.lang.String scannum DOCUMENT ME!
 - 
session_errorprivate short session_error DOCUMENT ME!
 - 
sizeof_hdrprivate int sizeof_hdr DOCUMENT ME!
 - 
smaxprivate int smax DOCUMENT ME!
 - 
sminprivate int smin DOCUMENT ME!
 - 
start_fieldprivate int start_field DOCUMENT ME!
 - 
verifiedprivate float verified DOCUMENT ME!
 - 
viewsprivate int views DOCUMENT ME!
 - 
vols_addedprivate int vols_added DOCUMENT ME!
 - 
vox_offsetprivate float vox_offset public float pixdim = new float[8]; // image resolutions info mm or ms stored in FileInfoBase pixdim[0] = number of dimensions pixdim[1] = voxel width pixdim[2] = voxel height pixdim[3] = voxel thickness pixdim[4] = time.
 - 
vox_unitsprivate java.lang.String vox_units public short dim[] = new short[8]; // image dimension data stored in FileInfoBase dim[0] = number of dimensions; usally 4 dim[1] = image width dim[2] = image height dim[3] = image depth (# of slices) dim[4] = volumes in image --- must be one for 3D image.
 
- 
 - 
Method Detail- 
displayAboutInfopublic void displayAboutInfo(JDialogBase dlog, TransMatrix matrix) displays the file information.- Specified by:
- displayAboutInfoin class- FileInfoBase
- Parameters:
- dlog- dialog box that is written to
- matrix- transformation matrix
 
 - 
getAuxFilepublic java.lang.String getAuxFile() accessor to the aux_file string.- Returns:
- String aux_file
 
 - 
getBitPixpublic short getBitPix() accessor to the bitpix value.- Returns:
- short the bitpix value.
 
 - 
getCalMaxpublic float getCalMax() accessor to cal-max.- Returns:
- float cal_max
 
 - 
getCalMinpublic float getCalMin() accessor to cal-min.- Returns:
- float cal_min
 
 - 
getCalUnitspublic java.lang.String getCalUnits() provides the string for cal units.- Returns:
- String string for cal_units
 
 - 
getCompressedpublic float getCompressed() provides the compressed value.- Returns:
- float compressed
 
 - 
getDataTypeCodepublic short getDataTypeCode() accessor to coded datatype value.- Returns:
- short datatype
 
 - 
getDataTypeNamepublic java.lang.String getDataTypeName() Accessor to the 10 character string of data-type.- Returns:
- String returns data_type
 
 - 
getDBnamepublic java.lang.String getDBname() accessor to DB_name.- Returns:
- String database name
 
 - 
getDescriptionpublic java.lang.String getDescription() accessor to the current SPM-image description.- Returns:
- String description
 
 - 
getDimpublic short getDim() DOCUMENT ME!- Returns:
- DOCUMENT ME!
 
 - 
getExperimentDatepublic java.lang.String getExperimentDate() provides the current experiment date string.- Returns:
- String the experiment date.
 
 - 
getExperimentTimepublic java.lang.String getExperimentTime() provides the current experiment time string.- Returns:
- String the experiment time
 
 - 
getFieldSkippublic int getFieldSkip() provides the current field_skip value.- Returns:
- int the field_skip value
 
 - 
getFileExtentspublic int getFileExtents() DOCUMENT ME!- Returns:
- DOCUMENT ME!
 
 - 
getGeneratedpublic java.lang.String getGenerated() provides the current generated string.- Returns:
- String generated string
 
 - 
getGLmaxpublic int getGLmax() provides the value of glmax.- Returns:
- int glmax
 
 - 
getGLminpublic int getGLmin() provides the value of glmin.- Returns:
- int glmin
 
 - 
getHistpublic java.lang.String getHist() DOCUMENT ME!- Returns:
- DOCUMENT ME!
 
 - 
getHkeypublic char getHkey() DOCUMENT ME!- Returns:
- DOCUMENT ME!
 
 - 
getOmaxpublic int getOmax() provides current omax value.- Returns:
- int the omax value
 
 - 
getOminpublic int getOmin() provides current omin value.- Returns:
- int the omin value
 
 - 
getOrientationpublic byte getOrientation() provides the current orientation value.- Returns:
- byte orientation value
 
 - 
getOriginLocpublic short[] getOriginLoc() DOCUMENT ME!- Returns:
- origin
 
 - 
getPatientIDpublic java.lang.String getPatientID() provides the current patient id.- Returns:
- String the patient id
 
 - 
getRegularpublic char getRegular() provides the value of regular character.- Returns:
- char value of regular character
 
 - 
getScalepublic float getScale() DOCUMENT ME!- Returns:
- float scale
 
 - 
getScanNumpublic java.lang.String getScanNum() provides the current scannum string.- Returns:
- String current scannum string
 
 - 
getSessionErrpublic short getSessionErr() provide the value of session err.- Returns:
- short session_error
 
 - 
getSizeOfHeaderpublic int getSizeOfHeader() DOCUMENT ME!- Returns:
- DOCUMENT ME!
 
 - 
getSmaxpublic int getSmax() provides current smax value.- Returns:
- int the smax value
 
 - 
getSminpublic int getSmin() provides current smin value.- Returns:
- int the smin value
 
 - 
getStartFieldpublic int getStartField() provides the current value for the start_field.- Returns:
- int the start_field
 
 - 
getVerifiedpublic float getVerified() provides the verified value.- Returns:
- float verified
 
 - 
getViewspublic int getViews() provides current views value.- Returns:
- int the view
 
 - 
getVolsAddedpublic int getVolsAdded() provides the current vols_added value.- Returns:
- int the vols_added
 
 - 
getVoxOffsetpublic float getVoxOffset() accessor to the vox offset value.- Returns:
- float vox_offset
 
 - 
getVoxUnitspublic java.lang.String getVoxUnits() provides the string for vox-units.- Returns:
- String string for vox_units
 
 - 
setAuxFilepublic void setAuxFile(java.lang.String aux) supplies auxiliary-file string; permits no more than 24 characters.- Parameters:
- aux- DOCUMENT ME!
 
 - 
setAxisOrientationpublic void setAxisOrientation(int[] axOrient) Sets orientation of each axis.- Overrides:
- setAxisOrientationin class- FileInfoBase
- Parameters:
- axOrient- axis orientation array
- See Also:
- FileInfoBase.getAxisOrientation()
 
 - 
setBitPixpublic void setBitPix(short bp) sets bitpix; any value other than 1, 8, 16, 32, 64, or 24 gets set to the dissalowed trap value, -1.- Parameters:
- bp- DOCUMENT ME!
 
 - 
setCalMaxpublic void setCalMax(float cal) sets cal-max. if supplied value is less than cal-min, the cal-min gets reset to the supplied value as well, so that cal-min is still no greater than cal-max.- Parameters:
- cal- DOCUMENT ME!
 
 - 
setCalMinpublic void setCalMin(float cal) sets cal-min. if supplied value is greater than cal-max, the cal-max gets reset to the supplied value as well, so that cal-max is still no less than cal-min.- Parameters:
- cal- DOCUMENT ME!
 
 - 
setCalUnitspublic void setCalUnits(java.lang.String cal) allows no more than 8 characters for the string describing the cal units.- Parameters:
- cal- DOCUMENT ME!
 
 - 
setCompressedpublic void setCompressed(float comp) sets the compressed variable.- Parameters:
- comp- DOCUMENT ME!
 
 - 
setDataTypepublic void setDataType(java.lang.String dtype) permits 10 charactar large string for data-type.- Parameters:
- dtype- DOCUMENT ME!
 
 - 
setDataTypepublic void setDataType(short dtype) accessor to supply coded datatype.- Parameters:
- dtype- DOCUMENT ME!
 
 - 
setDBnamepublic void setDBname(java.lang.String dbname) 18 character max to set the DB_NAME value.- Parameters:
- dbname- DOCUMENT ME!
 
 - 
setDescriptionpublic void setDescription(java.lang.String description) allows no more than 80 characters to fill in the SPM-image description.- Parameters:
- description- DOCUMENT ME!
 
 - 
setDimpublic void setDim(short un0) DOCUMENT ME!- Parameters:
- un0- DOCUMENT ME!
 
 - 
setExperimentDatepublic void setExperimentDate(java.lang.String date) allows a maximum of 10 characters to set the experiment date string.- Parameters:
- date- DOCUMENT ME!
 
 - 
setExperimentTimepublic void setExperimentTime(java.lang.String time) allows a maximum of 10 characters to set the experiment time string.- Parameters:
- time- DOCUMENT ME!
 
 - 
setFieldSkippublic void setFieldSkip(int field) supplies the submitted value to the field_sip variable.- Parameters:
- field- DOCUMENT ME!
 
 - 
setFileExtentspublic void setFileExtents(int ext) DOCUMENT ME!- Parameters:
- ext- DOCUMENT ME!
 
 - 
setGeneratedpublic void setGenerated(java.lang.String gen) allows a maximum of 10 characters to set the generated string.- Parameters:
- gen- DOCUMENT ME!
 
 - 
setGLmaxpublic void setGLmax(int gl) sets glmax. if supplied value is less than glmin, the glmin gets reset to the supplied value as well, so that glmin is still no greater than glmax.- Parameters:
- gl- DOCUMENT ME!
 
 - 
setGLminpublic void setGLmin(int gl) sets glmin. if supplied value is greater than glmax, the glmax gets reset to the supplied value as well, so that glmax is still no less than glmin.- Parameters:
- gl- DOCUMENT ME!
 
 - 
setHistpublic void setHist(java.lang.String hist) DOCUMENT ME!- Parameters:
- hist- DOCUMENT ME!
 
 - 
setHkeypublic void setHkey(char hk) DOCUMENT ME!- Parameters:
- hk- DOCUMENT ME!
 
 - 
setOmaxpublic void setOmax(int o) sets omax. if supplied value is less than omin, the omin gets reset to the supplied value as well, so that omin is still no greater than omax.- Parameters:
- o- DOCUMENT ME!
 
 - 
setOminpublic void setOmin(int o) sets omin. if supplied value is greater than omax, the omax gets reset to the supplied value as well, so that omax is still no less than omin.- Parameters:
- o- DOCUMENT ME!
 
 - 
setOrientationpublic void setOrientation(byte orientation) Sets the image orientation converting from SPM specific orientation to general orientation. Value may be transverse, coronal, or sagittal.see the top of this document for all possible values. supplying a value other than one of these 6 possiblities sets the orientation to an impossible 'flag' value. - See Also:
- FileInfoBase.setImageOrientation(int)
 
 - 
setOriginpublic void setOrigin(short[] origin) DOCUMENT ME!- Parameters:
- origin- DOCUMENT ME!
 
 - 
setMipavOriginpublic void setMipavOrigin(float[] mipavOrigin) - Parameters:
- mipavOrigin-
 
 - 
setPatientIDpublic void setPatientID(java.lang.String IDnum) allows a maximum of 10 characters to set the patient ID string.- Parameters:
- IDnum- DOCUMENT ME!
 
 - 
setRegularpublic void setRegular(char ch) supply the value of regular character.- Parameters:
- ch- DOCUMENT ME!
 
 - 
setScalepublic void setScale(float scale) DOCUMENT ME!- Parameters:
- scale- DOCUMENT ME!
 
 - 
setScanNumpublic void setScanNum(java.lang.String num) allows a maximum of 10 characters to set the scannum string.- Parameters:
- num- DOCUMENT ME!
 
 - 
setSessionErrpublic void setSessionErr(short s) supply the value of session error.- Parameters:
- s- DOCUMENT ME!
 
 - 
setSizeOfHeaderpublic void setSizeOfHeader(int size) DOCUMENT ME!- Parameters:
- size- DOCUMENT ME!
 
 - 
setSmaxpublic void setSmax(int s) sets smax. if supplied value is less than smin, the smin gets reset to the supplied value as well, so that smin is still no greater than smax.- Parameters:
- s- DOCUMENT ME!
 
 - 
setSminpublic void setSmin(int s) sets smin. if supplied value is greater than smax, the smax gets reset to the supplied value as well, so that smax is still no less than smin.- Parameters:
- s- DOCUMENT ME!
 
 - 
setStartFieldpublic void setStartField(int field) supplies the submitted value to the start_field variable.- Parameters:
- field- DOCUMENT ME!
 
 - 
setVerifiedpublic void setVerified(float veri) supply the value to verified.- Parameters:
- veri- DOCUMENT ME!
 
 - 
setViewspublic void setViews(int view) sets the views variable.- Parameters:
- view- DOCUMENT ME!
 
 - 
setVolsAddedpublic void setVolsAdded(int vols) supplies a value to the vols_added valiable.- Parameters:
- vols- DOCUMENT ME!
 
 - 
setVoxOffsetpublic void setVoxOffset(float vox) sets vox offset value.- Parameters:
- vox- DOCUMENT ME!
 
 - 
setVoxUnitspublic void setVoxUnits(java.lang.String vox) allows no more than 4 characters for the string describing the vox units.- Parameters:
- vox- DOCUMENT ME!
 
 - 
stateChangedpublic void stateChanged(java.util.Vector ce) .
 "ce" comes from ChangeEvent upon which this is based. care to make our own ChangeEvent to store and handle this?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!
 
 - 
updateFileInfospublic void updateFileInfos(FileInfoSPM fInfo) Propogates the current file info to another FileInfoSPM except for the 3 start locations kept in funused1, funused2, funused3.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. Some variables, such as the unused1, unused2, unused3, are really taken from unused, rather than from the start locations as we are re-using the funused variables. This means that if the unused variables are not right to begin with, this certainly won't correct them! - Parameters:
- fInfo- DOCUMENT ME!
 
 - 
setStringprotected 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)
 
 - 
selectOrientationTextprivate java.lang.String selectOrientationText(int or) selection of text for the table and the editpanel.- Parameters:
- or- DOCUMENT ME!
- Returns:
- String the orientation string
 
 
- 
 
-