Class FileInfoSPM
- All Implemented Interfaces:
Serializable,Cloneable
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:
-
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
FieldsModifier and TypeFieldDescriptionprivate StringDOCUMENT ME!private shortDOCUMENT ME!private floatDOCUMENT ME!private floatDOCUMENT ME!private StringDOCUMENT ME!private floatDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!private StringDOCUMENT ME!private shortDOCUMENT ME!private StringDOCUMENT ME!private StringDOCUMENT ME!private shortDOCUMENT ME!static final intDOCUMENT ME!static final intDOCUMENT ME!static final intDOCUMENT ME!static final intDOCUMENT ME!static final intDOCUMENT ME!static final intDOCUMENT ME!static final intDOCUMENT ME!static final intDOCUMENT ME!static final intDOCUMENT ME!static final intDOCUMENT ME!static final intDOCUMENT ME!static final intDOCUMENT ME!static final intDOCUMENT ME!static final intDOCUMENT ME!private StringDOCUMENT ME!private StringDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!private StringDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!private StringDOCUMENT ME!private charDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!private byteDOCUMENT ME!private short[]DOCUMENT ME!private StringDOCUMENT ME!private charDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!private floata floating point scale factor used during memory mapping.private StringDOCUMENT ME!private static final longUse serialVersionUID for interoperability.private shortDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!static final byteThe 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 floatDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!private floatpublic 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 Stringpublic 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.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, dtiParams, 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 Summary
ConstructorsConstructorDescriptionFileInfoSPM(String name, String directory, int format) file info storage constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplayAboutInfo(JDialogBase dlog, TransMatrix matrix) displays the file information.accessor to the aux_file string.shortaccessor to the bitpix value.floataccessor to cal-max.floataccessor to cal-min.provides the string for cal units.floatprovides the compressed value.shortaccessor to coded datatype value.Accessor to the 10 character string of data-type.accessor to DB_name.accessor to the current SPM-image description.shortgetDim()DOCUMENT ME!provides the current experiment date string.provides the current experiment time string.intprovides the current field_skip value.intDOCUMENT ME!provides the current generated string.intgetGLmax()provides the value of glmax.intgetGLmin()provides the value of glmin.getHist()DOCUMENT ME!chargetHkey()DOCUMENT ME!intgetOmax()provides current omax value.intgetOmin()provides current omin value.byteprovides the current orientation value.short[]DOCUMENT ME!provides the current patient id.charprovides the value of regular character.floatgetScale()DOCUMENT ME!provides the current scannum string.shortprovide the value of session err.intDOCUMENT ME!intgetSmax()provides current smax value.intgetSmin()provides current smin value.intprovides the current value for the start_field.floatprovides the verified value.intgetViews()provides current views value.intprovides the current vols_added value.floataccessor to the vox offset value.provides the string for vox-units.private StringselectOrientationText(int or) selection of text for the table and the editpanel.voidsetAuxFile(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(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(String dtype) permits 10 charactar large string for data-type.void18 character max to set the DB_NAME value.voidsetDescription(String description) allows no more than 80 characters to fill in the SPM-image description.voidsetDim(short un0) DOCUMENT ME!voidsetExperimentDate(String date) allows a maximum of 10 characters to set the experiment date string.voidsetExperimentTime(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(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.voidDOCUMENT 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(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(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 Stringverifies 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(String vox) allows no more than 4 characters for the string describing the vox units.voidstateChanged(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.FileInfoBase
copyCoreInfo, copyCoreInfo, displayAboutInfo, displayPrimaryInfo, finalize, getAboutInfo, getAllSameDimUnits, getAreaUnitsOfMeasureStr, getAxisDirection, getAxisOrientation, getAxisOrientation, getAxisOrientationFromStr, getAxisOrientationStr, getCameraMake, getCameraModel, getCompressionType, getDataType, getDataTypeFromStr, getDTIParameters, 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, setDTIParameters, 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, toStringMethods inherited from class gov.nih.mipav.model.structures.ModelSerialCloneable
clone, nativeClone
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDUse serialVersionUID for interoperability.- See Also:
-
DT_NONE
public static final int DT_NONEDOCUMENT ME!- See Also:
-
DT_UNKNOWN
public static final int DT_UNKNOWNDOCUMENT ME!- See Also:
-
DT_BINARY
public static final int DT_BINARYDOCUMENT ME!- See Also:
-
DT_BYTE
public static final int DT_BYTEDOCUMENT ME!- See Also:
-
DT_UNSIGNED_CHAR
public static final int DT_UNSIGNED_CHARDOCUMENT ME!- See Also:
-
DT_SIGNED_SHORT
public static final int DT_SIGNED_SHORTDOCUMENT ME!- See Also:
-
DT_UNSIGNED_SHORT
public static final int DT_UNSIGNED_SHORTDOCUMENT ME!- See Also:
-
DT_SIGNED_INT
public static final int DT_SIGNED_INTDOCUMENT ME!- See Also:
-
DT_UNSIGNED_INT
public static final int DT_UNSIGNED_INTDOCUMENT ME!- See Also:
-
DT_FLOAT
public static final int DT_FLOATDOCUMENT ME!- See Also:
-
DT_COMPLEX
public static final int DT_COMPLEXDOCUMENT ME!- See Also:
-
DT_DOUBLE
public static final int DT_DOUBLEDOCUMENT ME!- See Also:
-
DT_RGB
public static final int DT_RGBDOCUMENT ME!- See Also:
-
DT_ALL
public static final int DT_ALLDOCUMENT ME!- See Also:
-
UNKNOWN_ORIENT
public static final byte UNKNOWN_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 flipped- See Also:
-
TRANSVERSE_UNFLIPPED
public static final byte TRANSVERSE_UNFLIPPEDDOCUMENT ME!- See Also:
-
CORONAL_UNFLIPPED
public static final byte CORONAL_UNFLIPPEDDOCUMENT ME!- See Also:
-
SAGITTAL_UNFLIPPED
public static final byte SAGITTAL_UNFLIPPEDDOCUMENT ME!- See Also:
-
TRANSVERSE_FLIPPED
public static final byte TRANSVERSE_FLIPPEDDOCUMENT ME!- See Also:
-
CORONAL_FLIPPED
public static final byte CORONAL_FLIPPEDDOCUMENT ME!- See Also:
-
SAGITTAL_FLIPPED
public static final byte SAGITTAL_FLIPPEDDOCUMENT ME!- See Also:
-
aux_file
DOCUMENT ME! -
bitpix
private short bitpixDOCUMENT ME! -
cal_max
private float cal_maxDOCUMENT ME! -
cal_min
private float cal_minDOCUMENT ME! -
cal_units
DOCUMENT ME! -
compressed
private float compressedDOCUMENT ME! -
data_type
DOCUMENT ME! -
datatype
private short datatypeDOCUMENT ME! -
db_name
DOCUMENT ME! -
descrip
DOCUMENT ME! -
dim_un0
private short dim_un0DOCUMENT ME! -
exp_date
DOCUMENT ME! -
exp_time
DOCUMENT ME! -
extents
private int extentsDOCUMENT ME! -
field_skip
private int field_skipDOCUMENT ME! -
generated
DOCUMENT ME! -
glmax
private int glmaxDOCUMENT ME! -
glmin
private int glminDOCUMENT ME! -
hist_un0
DOCUMENT ME! -
hkey_un0
private char hkey_un0DOCUMENT ME! -
omax
private int omaxDOCUMENT ME! -
omin
private int ominDOCUMENT ME! -
orient
private byte orientDOCUMENT ME! -
origin
private short[] originDOCUMENT ME! -
patient_id
DOCUMENT ME! -
regular
private char regularDOCUMENT ME! -
scale
private float scalea floating point scale factor used during memory mapping. -
scannum
DOCUMENT ME! -
session_error
private short session_errorDOCUMENT ME! -
sizeof_hdr
private int sizeof_hdrDOCUMENT ME! -
smax
private int smaxDOCUMENT ME! -
smin
private int sminDOCUMENT ME! -
start_field
private int start_fieldDOCUMENT ME! -
verified
private float verifiedDOCUMENT ME! -
views
private int viewsDOCUMENT ME! -
vols_added
private int vols_addedDOCUMENT ME! -
vox_offset
private float vox_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. -
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.
-
-
Constructor Details
-
FileInfoSPM
file info storage constructor.- Parameters:
name- file namedirectory- directoryformat- file format
-
-
Method Details
-
displayAboutInfo
displays the file information.- Specified by:
displayAboutInfoin classFileInfoBase- Parameters:
dlog- dialog box that is written tomatrix- transformation matrix
-
getAuxFile
accessor to the aux_file string.- Returns:
- String aux_file
-
getBitPix
public short getBitPix()accessor to the bitpix value.- Returns:
- short the bitpix value.
-
getCalMax
public float getCalMax()accessor to cal-max.- Returns:
- float cal_max
-
getCalMin
public float getCalMin()accessor to cal-min.- Returns:
- float cal_min
-
getCalUnits
provides the string for cal units.- Returns:
- String string for cal_units
-
getCompressed
public float getCompressed()provides the compressed value.- Returns:
- float compressed
-
getDataTypeCode
public short getDataTypeCode()accessor to coded datatype value.- Returns:
- short datatype
-
getDataTypeName
Accessor to the 10 character string of data-type.- Returns:
- String returns data_type
-
getDBname
accessor to DB_name.- Returns:
- String database name
-
getDescription
accessor to the current SPM-image description.- Returns:
- String description
-
getDim
public short getDim()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getExperimentDate
provides the current experiment date string.- Returns:
- String the experiment date.
-
getExperimentTime
provides the current experiment time string.- Returns:
- String the experiment time
-
getFieldSkip
public int getFieldSkip()provides the current field_skip value.- Returns:
- int the field_skip value
-
getFileExtents
public int getFileExtents()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getGenerated
provides the current generated string.- Returns:
- String generated string
-
getGLmax
public int getGLmax()provides the value of glmax.- Returns:
- int glmax
-
getGLmin
public int getGLmin()provides the value of glmin.- Returns:
- int glmin
-
getHist
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getHkey
public char getHkey()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getOmax
public int getOmax()provides current omax value.- Returns:
- int the omax value
-
getOmin
public int getOmin()provides current omin value.- Returns:
- int the omin value
-
getOrientation
public byte getOrientation()provides the current orientation value.- Returns:
- byte orientation value
-
getOriginLoc
public short[] getOriginLoc()DOCUMENT ME!- Returns:
- origin
-
getPatientID
provides the current patient id.- Returns:
- String the patient id
-
getRegular
public char getRegular()provides the value of regular character.- Returns:
- char value of regular character
-
getScale
public float getScale()DOCUMENT ME!- Returns:
- float scale
-
getScanNum
provides the current scannum string.- Returns:
- String current scannum string
-
getSessionErr
public short getSessionErr()provide the value of session err.- Returns:
- short session_error
-
getSizeOfHeader
public int getSizeOfHeader()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getSmax
public int getSmax()provides current smax value.- Returns:
- int the smax value
-
getSmin
public int getSmin()provides current smin value.- Returns:
- int the smin value
-
getStartField
public int getStartField()provides the current value for the start_field.- Returns:
- int the start_field
-
getVerified
public float getVerified()provides the verified value.- Returns:
- float verified
-
getViews
public int getViews()provides current views value.- Returns:
- int the view
-
getVolsAdded
public int getVolsAdded()provides the current vols_added value.- Returns:
- int the vols_added
-
getVoxOffset
public float getVoxOffset()accessor to the vox offset value.- Returns:
- float vox_offset
-
getVoxUnits
provides the string for vox-units.- Returns:
- String string for vox_units
-
setAuxFile
supplies auxiliary-file string; permits no more than 24 characters.- Parameters:
aux- DOCUMENT ME!
-
setAxisOrientation
public void setAxisOrientation(int[] axOrient) Sets orientation of each axis.- Overrides:
setAxisOrientationin classFileInfoBase- Parameters:
axOrient- axis orientation array- See Also:
-
setBitPix
public 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!
-
setCalMax
public 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!
-
setCalMin
public 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!
-
setCalUnits
allows no more than 8 characters for the string describing the cal units.- Parameters:
cal- DOCUMENT ME!
-
setCompressed
public void setCompressed(float comp) sets the compressed variable.- Parameters:
comp- DOCUMENT ME!
-
setDataType
permits 10 charactar large string for data-type.- Parameters:
dtype- DOCUMENT ME!
-
setDataType
public void setDataType(short dtype) accessor to supply coded datatype.- Parameters:
dtype- DOCUMENT ME!
-
setDBname
18 character max to set the DB_NAME value.- Parameters:
dbname- DOCUMENT ME!
-
setDescription
allows no more than 80 characters to fill in the SPM-image description.- Parameters:
description- DOCUMENT ME!
-
setDim
public void setDim(short un0) DOCUMENT ME!- Parameters:
un0- DOCUMENT ME!
-
setExperimentDate
allows a maximum of 10 characters to set the experiment date string.- Parameters:
date- DOCUMENT ME!
-
setExperimentTime
allows a maximum of 10 characters to set the experiment time string.- Parameters:
time- DOCUMENT ME!
-
setFieldSkip
public void setFieldSkip(int field) supplies the submitted value to the field_sip variable.- Parameters:
field- DOCUMENT ME!
-
setFileExtents
public void setFileExtents(int ext) DOCUMENT ME!- Parameters:
ext- DOCUMENT ME!
-
setGenerated
allows a maximum of 10 characters to set the generated string.- Parameters:
gen- DOCUMENT ME!
-
setGLmax
public 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!
-
setGLmin
public 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!
-
setHist
DOCUMENT ME!- Parameters:
hist- DOCUMENT ME!
-
setHkey
public void setHkey(char hk) DOCUMENT ME!- Parameters:
hk- DOCUMENT ME!
-
setOmax
public 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!
-
setOmin
public 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!
-
setOrientation
public 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:
-
setOrigin
public void setOrigin(short[] origin) DOCUMENT ME!- Parameters:
origin- DOCUMENT ME!
-
setMipavOrigin
public void setMipavOrigin(float[] mipavOrigin) - Parameters:
mipavOrigin-
-
setPatientID
allows a maximum of 10 characters to set the patient ID string.- Parameters:
IDnum- DOCUMENT ME!
-
setRegular
public void setRegular(char ch) supply the value of regular character.- Parameters:
ch- DOCUMENT ME!
-
setScale
public void setScale(float scale) DOCUMENT ME!- Parameters:
scale- DOCUMENT ME!
-
setScanNum
allows a maximum of 10 characters to set the scannum string.- Parameters:
num- DOCUMENT ME!
-
setSessionErr
public void setSessionErr(short s) supply the value of session error.- Parameters:
s- DOCUMENT ME!
-
setSizeOfHeader
public void setSizeOfHeader(int size) DOCUMENT ME!- Parameters:
size- DOCUMENT ME!
-
setSmax
public 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!
-
setSmin
public 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!
-
setStartField
public void setStartField(int field) supplies the submitted value to the start_field variable.- Parameters:
field- DOCUMENT ME!
-
setVerified
public void setVerified(float veri) supply the value to verified.- Parameters:
veri- DOCUMENT ME!
-
setViews
public void setViews(int view) sets the views variable.- Parameters:
view- DOCUMENT ME!
-
setVolsAdded
public void setVolsAdded(int vols) supplies a value to the vols_added valiable.- Parameters:
vols- DOCUMENT ME!
-
setVoxOffset
public void setVoxOffset(float vox) sets vox offset value.- Parameters:
vox- DOCUMENT ME!
-
setVoxUnits
allows no more than 4 characters for the string describing the vox units.- Parameters:
vox- DOCUMENT ME!
-
stateChanged
.
"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!
-
updateFileInfos
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!
-
setString
verifies string is not larger than len length; strings larger than len, are clipped before being returned.- Returns:
- String new substring
- See Also:
-
selectOrientationText
selection of text for the table and the editpanel.- Parameters:
or- DOCUMENT ME!- Returns:
- String the orientation string
-