Package gov.nih.mipav.model.file
Class FileInfoSiemensText
java.lang.Object
gov.nih.mipav.model.structures.ModelSerialCloneable
gov.nih.mipav.model.file.FileInfoBase
gov.nih.mipav.model.file.FileInfoSiemensText
- All Implemented Interfaces:
Serializable,Cloneable
- 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 shortBits per pixel.private floatRange of calibration values.private floatValues of 0.0 for both fields imply that no calibration min and max values are used !private floatIndicates if compression is used.private StringUnknown use 10 chars.private shortStores the image data type DT_NONE = 0; DT_UNKNOWN = 0; DT_BINARY = 1; DT_UNSIGNED_CHAR = 2; DT_SIGNED_SHORT = 4; DT_UNSIGNED_SHORT = 4; DT_SIGNED_INT = 8; DT_FLOAT = 16; DT_COMPLEX = 32; DT_DOUBLE = 64; DT_RGB = 128; DT_ALL = 255;private StringName of file with a length of 18 chars.private StringString with a max character length of 80 used to describe image.private shortUnused.private Stringstatic final shortSiemensText file format define use to indicate 2-byte integer - Intel style.static final shortSiemensText file format define use to indicate 2-byte integer - Sun style.static final shortSiemensText file format define use to indicate 4-byte float - Intel style.static final shortSiemensText file format define use to indicate 4-byte float - Sun style.static final shortSiemensText file format define use to indicate 4-byte integer - Intel style.static final shortSiemensText file format define use to indicate 4-byte integer - Sun style.static final shortSiemensText file format define use to indicate Byte (8-bits) data typestatic final shortSiemensText file format define use to indicate undefined image data type.private StringString with a max character length of 10 used to indicate the experiment date.private StringString with a max character length of 10 used to indicate the experiment time.private intShould be 16384.private intUnknown length.private floatMIPAV uses this variable to define the X-axis origin.private floatMIPAV uses this variable to define the Y-axis origin.private floatMIPAV uses this variable to define the Z-axis origin.private StringUnknown use.private intMaximum pixel values for the entire dataset.private intMinimum pixel values for the entire database.private StringUnknown use.private charUnknown use.private Stringprivate intUnknown use.private intUnknown use.private byteDOCUMENT ME!private StringUnknown use.private StringPatient's ID.private charI think it means data has uniform spacing (resolutions).private StringScan ID Length of 10.private static final longUse serialVersionUID for interoperability.private shortUnknown use.private intAlways of length 348.private intUnknown use.private intUnknown use.private intUnknown use.private floatUnknown use.private intUnknown use.private intUnknown use.private Stringspecifies the spatial units of measure for a voxel.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, 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
ConstructorsConstructorDescriptionFileInfoSiemensText(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.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 SiemensText-image description.shortgetDim()Accessor to the dim_un0.Provides the current experiment date string.Provides the current experiment time string.intProvides the current field_skip value.intSiemensText _extents_ value of 16,384.floatMIPAV hack to the SiemensText standard.floatMIPAV hack to the SiemensText standard.floatMIPAV hack to the SiemensText standard.Provides the current generated string.intgetGLmax()Provides the value of glmax.intgetGLmin()Provides the value of glmin.getHist()Accessor to get the SiemensText's hist_un0 string.chargetHkey()Accessor to get the SiemensText's hkey_un0 string.intgetOmax()Provides current omax value.intgetOmin()Provides current omin value.byteProvides the current orientation value.Provides the current originator string.Provides the current patient id.charProvides the value of regular character.Provides the current scannum string.shortProvide the value of session err.intProvides the current scannum string.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.Provides the string for vox-units.voidsetAuxFile(String auxFile) 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.voidsetCompressed(float comp) sets the compressed variable.voidsetDataType(short dtype) Accessor to supply coded datatype.voidSet the database name - limit 18 character max to set the DB_NAME value.voidsetDescription(String description) Allows no more than 80 characters to fill in the SiemensText-image description.voidsetDim(short un0) DOCUMENT ME!voidAllows a maximum of 10 characters to set the experiment date string.voidsetFieldSkip(int field) Supplies the submitted value to the field_sip variable.voidsetFileExtents(int ext) DOCUMENT ME!voidsetFunused1(float fun) Sets the start locations in the x-axis in fileInfoBase.voidsetFunused2(float fun) Sets the start locations in the y-axis in fileInfoBase.voidsetFunused3(float fun) Sets the start locations in the z-axis in fileInfoBase.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!voidsetOmax(int oMax) Sets omax.voidsetOmin(int oMin) 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 SiemensText specific orientation to general orientation.voidsetOrigin(float[] stlocat) Sets start locations of each axis.voidsetOrigin(float fun, int axis) Sets the start location of the specified axis.voidsetOriginator(String originator) Allows a maximum of 10 characters to set the originator string.voidsetPatientID(String patIDnum) Allows a maximum of 10 characters to set the patient ID string.voidsetRegular(char ch) Supply the value of regular character.voidsetScanNum(String scanNum) Allows a maximum of 10 characters to set the scannum string.voidsetSessionErr(short sessionError) Supply the value of session error.voidsetSizeOfHeader(int size) Sets the size of the header which is always 348.voidsetSmax(int sMax) Sets smax.voidsetSmin(int sMin) Sets smin.voidsetStartField(int startField) Supplies the submitted value to the start_field variable.protected StringVerifies string is not larger than length; strings larger than length, are clipped before being returned.voidsetVerified(float verified) Supply the value to verified.voidsetViews(int view) Sets the views variable.voidsetVolsAdded(int vols) Supplies a value to the vols_added valiable.voidsetVoxUnits(String voxUnits) Allows no more than 4 characters for the string describing the vox units.voidPropogates the current file info to another FileInfoSiemensText 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, 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_UNKNOWN
public static final short DT_UNKNOWNSiemensText file format define use to indicate undefined image data type.- See Also:
-
DT_BYTE
public static final short DT_BYTESiemensText file format define use to indicate Byte (8-bits) data type- See Also:
-
DT_2INTEGERI
public static final short DT_2INTEGERISiemensText file format define use to indicate 2-byte integer - Intel style.- See Also:
-
DT_4INTEGERI
public static final short DT_4INTEGERISiemensText file format define use to indicate 4-byte integer - Intel style.- See Also:
-
DT_4FLOATI
public static final short DT_4FLOATISiemensText file format define use to indicate 4-byte float - Intel style.- See Also:
-
DT_4FLOATS
public static final short DT_4FLOATSSiemensText file format define use to indicate 4-byte float - Sun style.- See Also:
-
DT_2INTEGERS
public static final short DT_2INTEGERSSiemensText file format define use to indicate 2-byte integer - Sun style.- See Also:
-
DT_4INTEGERS
public static final short DT_4INTEGERSSiemensText file format define use to indicate 4-byte integer - Sun style.- See Also:
-
aux_file
DOCUMENT ME! -
bitpix
private short bitpixBits per pixel. Valid values include: 1, 8, 16, 32, 64, 24(rgb). -
cal_max
private float cal_maxRange of calibration values. -
cal_min
private float cal_minValues of 0.0 for both fields imply that no calibration min and max values are used ! -
compressed
private float compressedIndicates if compression is used. Default is -1 indicating no compression -
data_type
Unknown use 10 chars. -
datatype
private short datatypeStores the image data type DT_NONE = 0; DT_UNKNOWN = 0; DT_BINARY = 1; DT_UNSIGNED_CHAR = 2; DT_SIGNED_SHORT = 4; DT_UNSIGNED_SHORT = 4; DT_SIGNED_INT = 8; DT_FLOAT = 16; DT_COMPLEX = 32; DT_DOUBLE = 64; DT_RGB = 128; DT_ALL = 255; -
db_name
Name of file with a length of 18 chars. -
descrip
String with a max character length of 80 used to describe image. -
dim_un0
private short dim_un0Unused. -
exp_date
String with a max character length of 10 used to indicate the experiment date. -
exp_time
String with a max character length of 10 used to indicate the experiment time. -
extents
private int extentsShould be 16384. -
field_skip
private int field_skipUnknown length. -
funused1
private float funused1MIPAV uses this variable to define the X-axis origin. -
funused2
private float funused2MIPAV uses this variable to define the Y-axis origin. -
funused3
private float funused3MIPAV uses this variable to define the Z-axis origin. -
generated
Unknown use. Length of 10. -
glmax
private int glmaxMaximum pixel values for the entire dataset. -
glmin
private int glminMinimum pixel values for the entire database. -
hist_un0
Unknown use. Length of 3. -
hkey_un0
private char hkey_un0Unknown use. Length of 1. -
omax
private int omaxUnknown use. -
omin
private int ominUnknown use. -
orient
private byte orientDOCUMENT ME! -
originator
Unknown use. Length of 10. -
patient_id
Patient's ID. Length of 10. -
regular
private char regularI think it means data has uniform spacing (resolutions). -
scannum
Scan ID Length of 10. -
session_error
private short session_errorUnknown use. -
sizeof_hdr
private int sizeof_hdrAlways of length 348. -
smax
private int smaxUnknown use. -
smin
private int sminUnknown use. -
start_field
private int start_fieldUnknown use. -
verified
private float verifiedUnknown use. -
views
private int viewsUnknown use. -
vols_added
private int vols_addedUnknown use. -
vox_units
specifies the spatial units of measure for a voxel. -
name
-
dir
-
-
Constructor Details
-
FileInfoSiemensText
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
-
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 SiemensText-image description.- Returns:
- String description
-
getDim
public short getDim()Accessor to the dim_un0.- Returns:
- Returns the dim_un0 variable.
-
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()SiemensText _extents_ value of 16,384.- Returns:
- The extents value which always seems to be 16,384.
-
getFunused1
public float getFunused1()MIPAV hack to the SiemensText standard. Retrieves start locaiton from x-axis. To be stored as Funused1.- Returns:
- float funused1
-
getFunused2
public float getFunused2()MIPAV hack to the SiemensText standard. Retrieves start locaiton from y-axis. To be stored as Funused2.- Returns:
- float funused2
-
getFunused3
public float getFunused3()MIPAV hack to the SiemensText standard. Retrieves start location from z-axis. To be stored as Funused3.- Returns:
- float funused3
-
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
Accessor to get the SiemensText's hist_un0 string.- Returns:
- Returns the hist_un0 string.
-
getHkey
public char getHkey()Accessor to get the SiemensText's hkey_un0 string.- Returns:
- Returns the hkey_un0 string.
-
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
-
getOriginator
Provides the current originator string.- Returns:
- String originator string
-
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
-
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()Provides the current scannum string.- Returns:
- String current scannum string
-
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:
- The SiemensText verified parameter.
-
getViews
public int getViews()Provides current views value.- Returns:
- The view parameter.
-
getVolsAdded
public int getVolsAdded()Provides the current vols_added value.- Returns:
- The vols_added
-
getVoxUnits
Provides the string for vox-units.- Returns:
- The vox_units parameter
-
setAuxFile
Supplies auxiliary-file string; permits no more than 24 characters.- Parameters:
auxFile- T
-
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!
-
setCompressed
public void setCompressed(float comp) sets the compressed variable.- Parameters:
comp- DOCUMENT ME!
-
setDataType
public void setDataType(short dtype) Accessor to supply coded datatype.- Parameters:
dtype- DOCUMENT ME!
-
setDBname
Set the database name - limit 18 character max to set the DB_NAME value.- Parameters:
dbname- DOCUMENT ME!
-
setDescription
Allows no more than 80 characters to fill in the SiemensText-image description.- Parameters:
description- DOCUMENT ME!
-
setDim
public void setDim(short un0) DOCUMENT ME!- Parameters:
un0- DOCUMENT ME!
-
setExperimentDateandTime
Allows a maximum of 10 characters to set the experiment date string.- Parameters:
date- 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!
-
setFunused1
public void setFunused1(float fun) Sets the start locations in the x-axis in fileInfoBase. This is a hack into the SiemensText standard to compensate for start locations not being known. To be Stored in the Funused1 variable.- Parameters:
fun- x start location- See Also:
-
setFunused2
public void setFunused2(float fun) Sets the start locations in the y-axis in fileInfoBase. This is a hack into the SiemensText standard to compensate for start locations not being known. To be Stored in the Funused2 variable.- Parameters:
fun- y start location- See Also:
-
setFunused3
public void setFunused3(float fun) Sets the start locations in the z-axis in fileInfoBase. This is a hack into the SiemensText standard to compensate for start locations not being known. To be Stored in the Funused3 variable.- Parameters:
fun- z start location
-
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 oMax) 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:
oMax- Value that omax is set to.
-
setOmin
public void setOmin(int oMin) 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:
oMin- Value that omin is set to.
-
setOrientation
public void setOrientation(byte orientation) Sets the image orientation converting from SiemensText 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(float[] stlocat) Sets start locations of each axis.- Overrides:
setOriginin classFileInfoBase- Parameters:
stlocat- axis start location array- See Also:
-
setOrigin
public void setOrigin(float fun, int axis) Sets the start location of the specified axis.- Overrides:
setOriginin classFileInfoBase- Parameters:
fun- origin coord.axis- axis of orientation; x is 0, y is 1, z is 2.- See Also:
-
setOriginator
Allows a maximum of 10 characters to set the originator string.- Parameters:
originator- Originator string.
-
setPatientID
Allows a maximum of 10 characters to set the patient ID string.- Parameters:
patIDnum- Patient ID string.
-
setRegular
public void setRegular(char ch) Supply the value of regular character.- Parameters:
ch- value of r indicates all images are of the same size which seems to always be the case.
-
setScanNum
Allows a maximum of 10 characters to set the scannum string.- Parameters:
scanNum- Scan number of the image.
-
setSessionErr
public void setSessionErr(short sessionError) Supply the value of session error.- Parameters:
sessionError- The session error.
-
setSizeOfHeader
public void setSizeOfHeader(int size) Sets the size of the header which is always 348.- Parameters:
size- The size of the header which is always 348 for SiemensText images.
-
setSmax
public void setSmax(int sMax) 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:
sMax- DOCUMENT ME!
-
setSmin
public void setSmin(int sMin) 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:
sMin- The sMin value.
-
setStartField
public void setStartField(int startField) Supplies the submitted value to the start_field variable.- Parameters:
startField- The start field value.
-
setVerified
public void setVerified(float verified) Supply the value to verified.- Parameters:
verified- The verified value
-
setViews
public void setViews(int view) Sets the views variable.- Parameters:
view- The view value.
-
setVolsAdded
public void setVolsAdded(int vols) Supplies a value to the vols_added valiable.- Parameters:
vols- DOCUMENT ME!
-
setVoxUnits
Allows no more than 4 characters for the string describing the vox units.- Parameters:
voxUnits- DOCUMENT ME!
-
updateFileInfos
Propogates the current file info to another FileInfoSiemensText 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- File info. object used to update values in this object.
-
setString
Verifies string is not larger than length; strings larger than length, are clipped before being returned.- Parameters:
str- The input string.length- The maximum length of the string.- Returns:
- String new substring
-