Class ActionSaveVOIIntensities
- java.lang.Object
-
- gov.nih.mipav.model.scripting.actions.ActionBase
-
- gov.nih.mipav.model.scripting.actions.ActionImageProcessorBase
-
- gov.nih.mipav.model.scripting.actions.ActionSaveVOIIntensities
-
- All Implemented Interfaces:
ScriptableActionInterface
public class ActionSaveVOIIntensities extends ActionImageProcessorBase
A script action which saves all the VOI intensities in an image to disk.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
recordingTargetDir
The directory where the VOI intensities were saved to, which should be recorded in the script.private static java.lang.String
SAVE_VOI_INTENSITIES_TO_DIR
The label to use for the VOI Intensities save destination directory parameter (leave empty for the default directory).-
Fields inherited from class gov.nih.mipav.model.scripting.actions.ActionImageProcessorBase
INPUT_IMAGE_LABEL, recordingInputImage, recordingResultImage
-
Fields inherited from class gov.nih.mipav.model.scripting.actions.ActionBase
isScript
-
-
Constructor Summary
Constructors Constructor Description ActionSaveVOIIntensities()
Constructor for the dynamic instantiation and execution of the SaveVOIIntensities script action.ActionSaveVOIIntensities(ModelImage input)
Constructor used to record the SaveVOIIntensities script action line.ActionSaveVOIIntensities(ModelImage input, java.lang.String targetDir)
Constructor used to record the SaveVOIIntensities script action line.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
insertScriptLine()
If a script is being recorded and the action (read: algorithm) is done, add an entry for this action.void
scriptRun(ParameterTable parameters)
Sets up the action dialog state and then executes it.void
setTargetDirectory(java.lang.String targetDir)
Changes the target directory where the VOI intensities were saved, which should be recorded in the script.-
Methods inherited from class gov.nih.mipav.model.scripting.actions.ActionImageProcessorBase
createInputImageParameter, isImageStoredInRecorder, setInputImage, setResultImage, storeImageInRecorder, storeImageInRunner
-
Methods inherited from class gov.nih.mipav.model.scripting.actions.ActionBase
getActionName, getActionName, isScript, setIsScript
-
-
-
-
Field Detail
-
SAVE_VOI_INTENSITIES_TO_DIR
private static final java.lang.String SAVE_VOI_INTENSITIES_TO_DIR
The label to use for the VOI Intensities save destination directory parameter (leave empty for the default directory).- See Also:
- Constant Field Values
-
recordingTargetDir
private java.lang.String recordingTargetDir
The directory where the VOI intensities were saved to, which should be recorded in the script. Leave empty or null to save in the current default directory.
-
-
Constructor Detail
-
ActionSaveVOIIntensities
public ActionSaveVOIIntensities()
Constructor for the dynamic instantiation and execution of the SaveVOIIntensities script action.
-
ActionSaveVOIIntensities
public ActionSaveVOIIntensities(ModelImage input)
Constructor used to record the SaveVOIIntensities script action line.- Parameters:
input
- The image which had its VOI intensities saved.
-
ActionSaveVOIIntensities
public ActionSaveVOIIntensities(ModelImage input, java.lang.String targetDir)
Constructor used to record the SaveVOIIntensities script action line.- Parameters:
input
- The image which had its VOI intensities saved.targetDir
- The directory where the VOI intensities were saved (leave empty or null for the default directory).
-
-
Method Detail
-
insertScriptLine
public void insertScriptLine()
If a script is being recorded and the action (read: algorithm) is done, add an entry for this action.- Specified by:
insertScriptLine
in interfaceScriptableActionInterface
- Specified by:
insertScriptLine
in classActionImageProcessorBase
-
scriptRun
public void scriptRun(ParameterTable parameters)
Sets up the action dialog state and then executes it.- Specified by:
scriptRun
in interfaceScriptableActionInterface
- Specified by:
scriptRun
in classActionImageProcessorBase
- Parameters:
parameters
- Table of parameters for the script to use.
-
setTargetDirectory
public void setTargetDirectory(java.lang.String targetDir)
Changes the target directory where the VOI intensities were saved, which should be recorded in the script. Use empty or null string to indicate that the default directory should be used.- Parameters:
targetDir
- The directory where the VOI intensities were saved.
-
-