Package gov.nih.mipav.model.file
Class FileWriteOptions
java.lang.Object
gov.nih.mipav.model.file.FileWriteOptions
This structure contains information to direct file writing.
- Version:
- 0.1 June 21, 2001
- Author:
- Neva Cherniavsky
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatDOCUMENT ME!private intDOCUMENT ME!private int[]DOCUMENT ME!private int3D options.private int4D options.private intDOCUMENT ME!private booleanDOCUMENT ME!private booleanWhether dicom files are saved in enhanced format.private booleanUsed for stamping DICOM images with MIPAV reference.private intDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!private StringDOCUMENT ME!private StringAll file options.private intDOCUMENT ME!private intA FileUtility.Typeprivate booleanprivate intDOCUMENT ME!private ModelImageDOCUMENT ME!private booleanAVI option.private booleanprivate booleanprivate booleanFor Scripts.private booleanprivate ModelLUTDOCUMENT ME!private ModelLUTDOCUMENT ME!private intDOCUMENT ME!private floatDOCUMENT ME!private booleanDOCUMENT ME!private NDARWriteDataprivate Stringprivate floatDOCUMENT ME!private booleanDOCUMENT ME!private booleanDOCUMENT ME!private BitSetDOCUMENT ME!private HashMap<?, ?> private booleanTells FileIO whether or not to insert the saved image into the Quicklist (recently used image list) after successful savingprivate booleanrecalculate the Instance Number (0020,0013).private intDOCUMENT ME!private ModelRGBDOCUMENT ME!private ModelRGBDOCUMENT ME!private booleanDOCUMENT ME!private booleanDOCUMENT ME!private booleanTo save the image file in a subdirectory of image-name (without extension) when true.private intDOCUMENT ME!private floatDOCUMENT ME!private floatDOCUMENT ME!private booleanTells the FileBase (FileImageXML only now) to write only the header (.xml) if trueprivate booleanTIFF options.private StringXML option.private floatDOCUMENT ME!private floatDOCUMENT ME!private floatDOCUMENT ME!private floatDOCUMENT ME!private floatDOCUMENT ME!private floatDOCUMENT ME! -
Constructor Summary
ConstructorsConstructorDescriptionFileWriteOptions(boolean saveAs) Constructs an options structure with the given saveAs value.FileWriteOptions(String fileName, String directory, boolean saveAs) Constructs an options structure with the given file name, directory, and saveAs values. -
Method Summary
Modifier and TypeMethodDescriptionvoidDOCUMENT ME!booleanWhether to save dicom files in enhanced format.voiddoEnhanced(boolean doSaveEnhancedDicom) Sets the flag for saving dicom files in enhanced format.booleanWhether or not to put the file into the recently used image list after savingvoiddoPutInQuicklist(boolean doPut) Sets the flag for putting the image into the recently used image listbooleandoStamp()Whether or not to stamp DICOM images.voiddoStamp(boolean doStamp) Sets the flag for stamping DICOM images with a reference to MIPAV as a secondary processor.floatDOCUMENT ME!intGets the AVI compression.int[]Returns the orientations of the 3 axes.intAccessor that returns the slice to begin saving at.intAccessor that returns the time slice to begin saving at.intgetBlue()DOCUMENT ME!intAccessor that returns the number of digits to use when appending to the multi file save (i.e., if you want test00.tif to be the first file, 0 is the start number and 2 is the digit number).intAccessor that returns the slice to stop saving at.intAccessor that returns the time slice to stop saving at.Accessor that returns the directory to be written to.Accessor that returns the file name to be written to.intAccessor to get what type of file this is, such as analyze, raw, DICOM, etc.booleanintgetGreen()DOCUMENT ME!DOCUMENT ME!getLUTa()DOCUMENT ME!getLUTb()DOCUMENT ME!intDOCUMENT ME!floatDOCUMENT ME!Retrieves the NDAR data for use in populating XML fieldsfloatDOCUMENT ME!DOCUMENT ME!HashMap<?, ?> gets the psets hashmapintgetRed()DOCUMENT ME!getRGBTa()DOCUMENT ME!getRGBTb()DOCUMENT ME!intAccessor that returns the number to append to the multi file save (i.e., if you want test00.tif to be the first file, 0 is the start number and 2 is the digit number).intAccessor that returns the time slice to save at; for TIFF, because TIFF only saves to 3D.floatAccessor that returns value of T Space text field.floatAccessor that returns value of T Start text field.Gets the filename for the linked file for the XML header.floatAccessor that returns value of X Space text field.floatAccessor that returns value of X Start text field.floatAccessor that returns value of Y Space text field.floatAccessor that returns value of Y Start text field.floatAccessor that returns value of Z Space text field.floatAccessor that returns value of Z Start text field.booleanisAVI()DOCUMENT ME!booleanisBz2zip()booleanAccessor that returns whether or not this is the default save.booleanisGzip()booleanAccessor that returns whether or not the Instance Number (0020,0013) should be recalculated before saving.booleanAccessor that returns whether or not this is an image to be stored as multiple files.booleanAccessor that returns whether or not it is possible to write with packed bits compression (only possible with TIFF byte images).booleanDOCUMENT ME!booleanisSaveAs()Accessor that returns whether or not this is a Save or SaveAs operation.booleanAccessor that returns whether or not the save should be into a subdirectory of imagename (without extension).booleanisScript()Checks to see if this is being run from a script.booleanisSet()Accessor that returns whether all of the options have been previously set (usually by the script parser).booleanAccessor that returns whether or not to write with packed bits compression (only possible with TIFF byte images).booleanisZip()voidsetAlphaBlend(float alphaBlend) DOCUMENT ME!voidsetAVICompression(int AVICompression) Accessor that sets the AVI compression.voidsetAxisOrientation(int[] ori) Accessor that sets the orientations of the 3 axes.voidsetBeginSlice(int slice) Accessor that sets the slice to begin writing at (3D).voidsetBeginTime(int slice) Accessor that sets the time slice to begin writing at (4D).voidsetBlue(int blue) DOCUMENT ME!voidsetBz2zip(boolean isBz2zip) voidsetDefault(boolean flag) Accessor that sets the "default" flag.voidsetDigitNumber(int digit) /** Accessor that sets the number of digits to use when appending to the multi file save (i.e., if you want test00.tif to be the first file, 0 is the start number and 2 is the digit number).voidsetEndSlice(int slice) Accessor that sets the slice to stop writing at (3D).voidsetEndTime(int slice) Accessor that sets the time slice to stop writing at (4D).voidsetFileDirectory(String dir) Accessor that sets the file directory.voidsetFileName(String name) Accessor that sets the file name to write out.voidsetFileType(int type) Accessor that sets the file type (analyze, raw, TIFF, DICOM, etc.).voidsetFloatToShort(boolean floatToShort) voidsetGreen(int green) DOCUMENT ME!voidsetGzip(boolean isGzip) voidsetImageB(ModelImage imageB) DOCUMENT ME!voidsetIsAVI(boolean isAVI) DOCUMENT ME!voidsetIsScript(boolean isScript) Accessor that sets the options to be run in a script.voidDOCUMENT ME!voidDOCUMENT ME!voidsetMicroSecPerFrame(int microSec) DOCUMENT ME!voidsetMJPEGQuality(float mjpegQuality) DOCUMENT ME!voidsetMultiFile(boolean flag) Accessor that sets whether or not to write the image as multiple files, one 2D slice per file.voidsetNDARData(NDARWriteData data) Sets the NDAR Data that will be used to populate XML header fieldsvoidsetNIFTIExtension(String niftiExtension) Accessor that sets whether or not nifti should be written as a combined .nii file or as separate .hdr and .img files.voidsetOpacity(float opacity) DOCUMENT ME!voidsetOptionsSet(boolean set) Accessor that sets whether all of the options have been previously set (usually by the script parser).voidsetPackBitEnabled(boolean flag) Accessor that sets whether it is possible to write with packed bits compression.voidsetPaintBitmap(BitSet paintBitmap) DOCUMENT ME!voidsetPSetsHashMap(HashMap<?, ?> setsHashMap) sets the pset hasmapvoidsetRecalculateInstanceNumber(boolean flag) Accessor that sets whether or not the Instance Number (0020,0013) should be recalculated before saving.voidsetRed(int red) DOCUMENT ME!voidDOCUMENT ME!voidDOCUMENT ME!voidsetRunningInSeparateThread(boolean isActive) DOCUMENT ME!voidsetSaveAs(boolean flag) Accessor that sets the "save as" flag.voidsetSaveInSubdirectory(boolean flag) Accessor that sets the "save as" flag.voidsetStartNumber(int num) Accessor that sets the number to append to the multi file save (i.e., if you want test00.tif to be the first file, 0 is the start number and 2 is the digit number).voidsetTimeSlice(int slice) Accessor that sets the time slice to record (4D TIFF).voidsetTSpace(float value) Accessor that sets t space (used for MINC images).voidsetTStart(float value) Accessor that sets t start (used for MINC images).voidsetWriteHeaderOnly(boolean headerOnly) Sets the options to write only the .xml header if truevoidsetWritePackBit(boolean flag) Accessor that sets whether to write with packed bits compression.voidsetXMLLinkedFilename(String xmlfilename) Accessor that sets the xml linked filename (for XML files).voidsetXSpace(float value) Accessor that sets x space (used for MINC images).voidsetXStart(float value) Accessor that sets x start (used for MINC images).voidsetYSpace(float value) Accessor that sets y space (used for MINC images).voidsetYStart(float value) Accessor that sets y start (used for MINC images).voidsetZip(boolean isZip) voidsetZSpace(float value) Accessor that sets z space (used for MINC images).voidsetZStart(float value) Accessor that sets z start (used for MINC images).toString()Shows these options as a string, useful for debugging.booleanDetermines whether to write only the header (for now, .xml files) and no raw file...for NDAR SRB transfer
-
Field Details
-
runningInSeparateThread
private boolean runningInSeparateThreadDOCUMENT ME! -
alphaBlend
private float alphaBlendDOCUMENT ME! -
AVICompression
private int AVICompressionDOCUMENT ME! -
axisOrientation
private int[] axisOrientationDOCUMENT ME! -
beginSlice
private int beginSlice3D options. -
beginTimePeriod
private int beginTimePeriod4D options. -
blue
private int blueDOCUMENT ME! -
defaults
private boolean defaultsDOCUMENT ME! -
endSlice
private int endSliceDOCUMENT ME! -
endTimePeriod
private int endTimePeriodDOCUMENT ME! -
fileDigitNumber
private int fileDigitNumberDOCUMENT ME! -
fileDirectory
DOCUMENT ME! -
fileName
All file options. -
fileStartNumber
private int fileStartNumberDOCUMENT ME! -
fileType
private int fileTypeA FileUtility.Type -
green
private int greenDOCUMENT ME! -
imageB
DOCUMENT ME! -
isAVI
private boolean isAVIAVI option. -
isScript
private boolean isScriptFor Scripts. -
LUTa
DOCUMENT ME! -
LUTb
DOCUMENT ME! -
microSecPerFrame
private int microSecPerFrameDOCUMENT ME! -
mjpegQuality
private float mjpegQualityDOCUMENT ME! -
multiFile
private boolean multiFileDOCUMENT ME! -
doStamp
private boolean doStampUsed for stamping DICOM images with MIPAV reference. -
doEnhanced
private boolean doEnhancedWhether dicom files are saved in enhanced format. -
niftiExtension
-
opacity
private float opacityDOCUMENT ME! -
optionsSet
private boolean optionsSetDOCUMENT ME! -
packBitEnable
private boolean packBitEnableDOCUMENT ME! -
paintBitmap
DOCUMENT ME! -
recalculateInstanceNumber
private boolean recalculateInstanceNumberrecalculate the Instance Number (0020,0013). Defaulttrue -
red
private int redDOCUMENT ME! -
RGBTa
DOCUMENT ME! -
RGBTb
DOCUMENT ME! -
saveAs
private boolean saveAsDOCUMENT ME! -
saveInSubdirectory
private boolean saveInSubdirectoryTo save the image file in a subdirectory of image-name (without extension) when true. Implementation elsewhere, obviously. -
timeSlice
private int timeSliceDOCUMENT ME! -
writePackBit
private boolean writePackBitTIFF options. -
xmlLinkedFilename
XML option. -
xSpace
private float xSpaceDOCUMENT ME! -
xStart
private float xStartDOCUMENT ME! -
ySpace
private float ySpaceDOCUMENT ME! -
yStart
private float yStartDOCUMENT ME! -
zSpace
private float zSpaceDOCUMENT ME! -
zStart
private float zStartDOCUMENT ME! -
tSpace
private float tSpaceDOCUMENT ME! -
tStart
private float tStartDOCUMENT ME! -
putInQuicklist
private boolean putInQuicklistTells FileIO whether or not to insert the saved image into the Quicklist (recently used image list) after successful saving -
writeHeaderOnly
private boolean writeHeaderOnlyTells the FileBase (FileImageXML only now) to write only the header (.xml) if true -
ndarData
-
pSetsHashMap
-
isGzip
private boolean isGzip -
isZip
private boolean isZip -
isBz2zip
private boolean isBz2zip -
floatToShort
private boolean floatToShort
-
-
Constructor Details
-
FileWriteOptions
public FileWriteOptions(boolean saveAs) Constructs an options structure with the given saveAs value. The file name and directory will need to be set later.- Parameters:
saveAs-trueindicates this is a file with a new file name.
-
FileWriteOptions
Constructs an options structure with the given file name, directory, and saveAs values. The image is written to this file name and directory, under the preference of saveAs.- Parameters:
fileName- File name to save the image at.directory- Directory to save the image at.saveAs-trueindicates this is a file with a new file name.
-
-
Method Details
-
disposeLocal
public void disposeLocal()DOCUMENT ME! -
doPutInQuicklist
public boolean doPutInQuicklist()Whether or not to put the file into the recently used image list after saving- Returns:
- if the image should be put into the quicklist
-
doPutInQuicklist
public void doPutInQuicklist(boolean doPut) Sets the flag for putting the image into the recently used image list- Parameters:
doPut- true = do put into quicklist
-
doEnhanced
public boolean doEnhanced()Whether to save dicom files in enhanced format.- Returns:
-
doStamp
public boolean doStamp()Whether or not to stamp DICOM images.- Returns:
-
doEnhanced
public void doEnhanced(boolean doSaveEnhancedDicom) Sets the flag for saving dicom files in enhanced format.- Parameters:
doSaveEnhancedDicom-
-
doStamp
public void doStamp(boolean doStamp) Sets the flag for stamping DICOM images with a reference to MIPAV as a secondary processor.- Parameters:
doStamp-
-
writeHeaderOnly
public boolean writeHeaderOnly()Determines whether to write only the header (for now, .xml files) and no raw file...for NDAR SRB transfer- Returns:
- write header only
-
setWriteHeaderOnly
public void setWriteHeaderOnly(boolean headerOnly) Sets the options to write only the .xml header if true- Parameters:
headerOnly- write header only flag
-
getPSetsHashMap
gets the psets hashmap- Returns:
-
setPSetsHashMap
sets the pset hasmap- Parameters:
setsHashMap-
-
setNDARData
Sets the NDAR Data that will be used to populate XML header fields- Parameters:
data- NDAR data generated from JDialogNDAR
-
getNDARData
Retrieves the NDAR data for use in populating XML fields- Returns:
- the ndar data
-
getAlphaBlend
public float getAlphaBlend()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getAVICompression
public int getAVICompression()Gets the AVI compression.- Returns:
- AVICompression
-
getAxisOrientation
public int[] getAxisOrientation()Returns the orientations of the 3 axes.- Returns:
- DOCUMENT ME!
-
getBeginSlice
public int getBeginSlice()Accessor that returns the slice to begin saving at.- Returns:
- The first slice to save at.
-
getBeginTime
public int getBeginTime()Accessor that returns the time slice to begin saving at.- Returns:
- The first time slice to save at.
-
getBlue
public int getBlue()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getDigitNumber
public int getDigitNumber()Accessor that returns the number of digits to use when appending to the multi file save (i.e., if you want test00.tif to be the first file, 0 is the start number and 2 is the digit number).- Returns:
- The number of digits to append to the multi file save.
-
getEndSlice
public int getEndSlice()Accessor that returns the slice to stop saving at.- Returns:
- The last slice to save at.
-
getEndTime
public int getEndTime()Accessor that returns the time slice to stop saving at.- Returns:
- The last time slice to save at.
-
getFileDirectory
Accessor that returns the directory to be written to.- Returns:
- The directory to write this image to.
-
getFileName
Accessor that returns the file name to be written to.- Returns:
- The file name to write this image to.
-
getFileType
public int getFileType()Accessor to get what type of file this is, such as analyze, raw, DICOM, etc.- Returns:
- The file type of this image.
- See Also:
-
getGreen
public int getGreen()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getImageB
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getLUTa
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getLUTb
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getMicroSecPerFrame
public int getMicroSecPerFrame()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getMJPEGQuality
public float getMJPEGQuality()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getNIFTIExtension
-
getOpacity
public float getOpacity()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getPaintBitmap
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getRed
public int getRed()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getRGBTa
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getRGBTb
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getStartNumber
public int getStartNumber()Accessor that returns the number to append to the multi file save (i.e., if you want test00.tif to be the first file, 0 is the start number and 2 is the digit number).- Returns:
- The number to append to the multi file save.
-
getTimeSlice
public int getTimeSlice()Accessor that returns the time slice to save at; for TIFF, because TIFF only saves to 3D.- Returns:
- The time slice to save at.
-
getXMLLinkedFilename
Gets the filename for the linked file for the XML header.- Returns:
- xml linked filename
-
getXSpace
public float getXSpace()Accessor that returns value of X Space text field.- Returns:
- Value typed in field.
-
getXStart
public float getXStart()Accessor that returns value of X Start text field.- Returns:
- Value typed in field.
-
getYSpace
public float getYSpace()Accessor that returns value of Y Space text field.- Returns:
- Value typed in field.
-
getYStart
public float getYStart()Accessor that returns value of Y Start text field.- Returns:
- Value typed in field.
-
getZSpace
public float getZSpace()Accessor that returns value of Z Space text field.- Returns:
- Value typed in field.
-
getZStart
public float getZStart()Accessor that returns value of Z Start text field.- Returns:
- Value typed in field.
-
getTSpace
public float getTSpace()Accessor that returns value of T Space text field.- Returns:
- Value typed in field.
-
getTStart
public float getTStart()Accessor that returns value of T Start text field.- Returns:
- Value typed in field.
-
isRunningInSeparateThread
public boolean isRunningInSeparateThread()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
isAVI
public boolean isAVI()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
isDefault
public boolean isDefault()Accessor that returns whether or not this is the default save. So if a user just hits the "OK" button in the dialog without changing anything, it is default. However, if something needs to be recorded, all necessary information is recorded.- Returns:
trueindicates default,falseotherwise.
-
isInstanceNumberRecalculated
public boolean isInstanceNumberRecalculated()Accessor that returns whether or not the Instance Number (0020,0013) should be recalculated before saving.- Returns:
trueindicates recalculate the Instance number,falsedon't modify the Instance Number.
-
isMultiFile
public boolean isMultiFile()Accessor that returns whether or not this is an image to be stored as multiple files. (Used primarily for TIFF images).- Returns:
trueindicates multiple file save,falseotherwise.
-
isPackBitEnabled
public boolean isPackBitEnabled()Accessor that returns whether or not it is possible to write with packed bits compression (only possible with TIFF byte images).- Returns:
trueindicates possible,falseotherwise.
-
isSaveAs
public boolean isSaveAs()Accessor that returns whether or not this is a Save or SaveAs operation.- Returns:
trueindicates save as,falsesave.
-
isSaveInSubdirectory
public boolean isSaveInSubdirectory()Accessor that returns whether or not the save should be into a subdirectory of imagename (without extension).- Returns:
trueindicates save should be into a subdirectory as,falsesave.
-
isScript
public boolean isScript()Checks to see if this is being run from a script.- Returns:
- is it a script?
-
isSet
public boolean isSet()Accessor that returns whether all of the options have been previously set (usually by the script parser).- Returns:
trueindicates the options are already set,falseotherwise.
-
isWritePackBit
public boolean isWritePackBit()Accessor that returns whether or not to write with packed bits compression (only possible with TIFF byte images).- Returns:
trueindicates w/compression,falseotherwise.
-
setRunningInSeparateThread
public void setRunningInSeparateThread(boolean isActive) DOCUMENT ME!- Parameters:
isActive- DOCUMENT ME!
-
setAlphaBlend
public void setAlphaBlend(float alphaBlend) DOCUMENT ME!- Parameters:
alphaBlend- DOCUMENT ME!
-
setAVICompression
public void setAVICompression(int AVICompression) Accessor that sets the AVI compression.- Parameters:
AVICompression- DOCUMENT ME!
-
setAxisOrientation
public void setAxisOrientation(int[] ori) Accessor that sets the orientations of the 3 axes.- Parameters:
ori- DOCUMENT ME!
-
setBeginSlice
public void setBeginSlice(int slice) Accessor that sets the slice to begin writing at (3D).- Parameters:
slice- First slice to begin writing at.
-
setBeginTime
public void setBeginTime(int slice) Accessor that sets the time slice to begin writing at (4D).- Parameters:
slice- Time slice to begin writing at.
-
setBlue
public void setBlue(int blue) DOCUMENT ME!- Parameters:
blue- DOCUMENT ME!
-
setDefault
public void setDefault(boolean flag) Accessor that sets the "default" flag.- Parameters:
flag-trueindicates default options,falseotherwise.
-
setDigitNumber
public void setDigitNumber(int digit) /** Accessor that sets the number of digits to use when appending to the multi file save (i.e., if you want test00.tif to be the first file, 0 is the start number and 2 is the digit number).- Parameters:
digit- Number of digits to write out.
-
setEndSlice
public void setEndSlice(int slice) Accessor that sets the slice to stop writing at (3D).- Parameters:
slice- Last slice to stop writing at.
-
setEndTime
public void setEndTime(int slice) Accessor that sets the time slice to stop writing at (4D).- Parameters:
slice- Time slice to stop writing at.
-
setFileDirectory
Accessor that sets the file directory.- Parameters:
dir- File directory to write to.
-
setFileName
Accessor that sets the file name to write out.- Parameters:
name- File name to write to.
-
setFileType
public void setFileType(int type) Accessor that sets the file type (analyze, raw, TIFF, DICOM, etc.).- Parameters:
type- File type to set to.
-
setGreen
public void setGreen(int green) DOCUMENT ME!- Parameters:
green- DOCUMENT ME!
-
setImageB
DOCUMENT ME!- Parameters:
imageB- DOCUMENT ME!
-
setIsAVI
public void setIsAVI(boolean isAVI) DOCUMENT ME!- Parameters:
isAVI- DOCUMENT ME!
-
setIsScript
public void setIsScript(boolean isScript) Accessor that sets the options to be run in a script.- Parameters:
isScript- whether the options are being used as part of a script
-
setLUTa
DOCUMENT ME!- Parameters:
LUTa- DOCUMENT ME!
-
setLUTb
DOCUMENT ME!- Parameters:
LUTb- DOCUMENT ME!
-
setMicroSecPerFrame
public void setMicroSecPerFrame(int microSec) DOCUMENT ME!- Parameters:
microSec- DOCUMENT ME!
-
setMJPEGQuality
public void setMJPEGQuality(float mjpegQuality) DOCUMENT ME!- Parameters:
mjpegQuality- DOCUMENT ME!
-
setMultiFile
public void setMultiFile(boolean flag) Accessor that sets whether or not to write the image as multiple files, one 2D slice per file. Used primarily for TIFF images.- Parameters:
flag-trueindicates write this as multiple files,falseotherwise.
-
setNIFTIExtension
Accessor that sets whether or not nifti should be written as a combined .nii file or as separate .hdr and .img files.- Parameters:
niftiExtension-
-
setOpacity
public void setOpacity(float opacity) DOCUMENT ME!- Parameters:
opacity- DOCUMENT ME!
-
setOptionsSet
public void setOptionsSet(boolean set) Accessor that sets whether all of the options have been previously set (usually by the script parser).- Parameters:
set-trueindicates the options are already set,falseotherwise.
-
setPackBitEnabled
public void setPackBitEnabled(boolean flag) Accessor that sets whether it is possible to write with packed bits compression. It is only an options for TIFF files that are byte images.- Parameters:
flag-trueindicates it is possible to write with packed bits compression,falseotherwise.
-
setPaintBitmap
DOCUMENT ME!- Parameters:
paintBitmap- DOCUMENT ME!
-
setRecalculateInstanceNumber
public void setRecalculateInstanceNumber(boolean flag) Accessor that sets whether or not the Instance Number (0020,0013) should be recalculated before saving.- Parameters:
flag- DOCUMENT ME!
-
setRed
public void setRed(int red) DOCUMENT ME!- Parameters:
red- DOCUMENT ME!
-
setRGBTa
DOCUMENT ME!- Parameters:
RGBTa- DOCUMENT ME!
-
setRGBTb
DOCUMENT ME!- Parameters:
RGBTb- DOCUMENT ME!
-
setSaveAs
public void setSaveAs(boolean flag) Accessor that sets the "save as" flag.- Parameters:
flag-trueindicates save as,falseindicates regular save.
-
setSaveInSubdirectory
public void setSaveInSubdirectory(boolean flag) Accessor that sets the "save as" flag.- Parameters:
flag-trueindicates image should be saved in a subdirectory (imagename without extension)falseindicates regular save.
-
setStartNumber
public void setStartNumber(int num) Accessor that sets the number to append to the multi file save (i.e., if you want test00.tif to be the first file, 0 is the start number and 2 is the digit number).- Parameters:
num- Start number to write out.
-
setTimeSlice
public void setTimeSlice(int slice) Accessor that sets the time slice to record (4D TIFF). This would have the same functionality as setting the begin time slice and end time slice to the same number. With TIFF images, we do not allow the user to specify a range of time slices, so we will save a 4D image to a 3D TIFF but not to a 4D TIFF.- Parameters:
slice- Time slice to write.
-
setWritePackBit
public void setWritePackBit(boolean flag) Accessor that sets whether to write with packed bits compression. Only possible for TIFF files that are byte images.- Parameters:
flag-trueindicates write with packed bits compression,falseotherwise.
-
setXMLLinkedFilename
Accessor that sets the xml linked filename (for XML files).- Parameters:
xmlfilename- the linked xml filename
-
setXSpace
public void setXSpace(float value) Accessor that sets x space (used for MINC images).- Parameters:
value- Value to set the x space to.- See Also:
-
setXStart
public void setXStart(float value) Accessor that sets x start (used for MINC images).- Parameters:
value- Value to set the x start to.- See Also:
-
setYSpace
public void setYSpace(float value) Accessor that sets y space (used for MINC images).- Parameters:
value- Value to set the y space to.- See Also:
-
setYStart
public void setYStart(float value) Accessor that sets y start (used for MINC images).- Parameters:
value- Value to set the y start to.- See Also:
-
setZSpace
public void setZSpace(float value) Accessor that sets z space (used for MINC images).- Parameters:
value- Value to set the z space to.- See Also:
-
setZStart
public void setZStart(float value) Accessor that sets z start (used for MINC images).- Parameters:
value- Value to set the z start to.- See Also:
-
setTSpace
public void setTSpace(float value) Accessor that sets t space (used for MINC images).- Parameters:
value- Value to set the t space to.- See Also:
-
setTStart
public void setTStart(float value) Accessor that sets t start (used for MINC images).- Parameters:
value- Value to set the t start to.- See Also:
-
isGzip
public boolean isGzip() -
setGzip
public void setGzip(boolean isGzip) -
isZip
public boolean isZip() -
setZip
public void setZip(boolean isZip) -
isBz2zip
public boolean isBz2zip() -
setBz2zip
public void setBz2zip(boolean isBz2zip) -
setFloatToShort
public void setFloatToShort(boolean floatToShort) -
getFloatToShort
public boolean getFloatToShort() -
toString
Shows these options as a string, useful for debugging.
-