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
A script action which saves all the VOI intensities in an image to disk.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe directory where the VOI intensities were saved to, which should be recorded in the script.private static final StringThe 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, recordingResultImageFields inherited from class gov.nih.mipav.model.scripting.actions.ActionBase
isScript -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the dynamic instantiation and execution of the SaveVOIIntensities script action.Constructor used to record the SaveVOIIntensities script action line.ActionSaveVOIIntensities(ModelImage input, String targetDir) Constructor used to record the SaveVOIIntensities script action line. -
Method Summary
Modifier and TypeMethodDescriptionvoidIf a script is being recorded and the action (read: algorithm) is done, add an entry for this action.voidscriptRun(ParameterTable parameters) Sets up the action dialog state and then executes it.voidsetTargetDirectory(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, storeImageInRunnerMethods inherited from class gov.nih.mipav.model.scripting.actions.ActionBase
getActionName, getActionName, isScript, setIsScript
-
Field Details
-
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:
-
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 Details
-
ActionSaveVOIIntensities
public ActionSaveVOIIntensities()Constructor for the dynamic instantiation and execution of the SaveVOIIntensities script action. -
ActionSaveVOIIntensities
Constructor used to record the SaveVOIIntensities script action line.- Parameters:
input- The image which had its VOI intensities saved.
-
ActionSaveVOIIntensities
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 Details
-
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:
insertScriptLinein interfaceScriptableActionInterface- Specified by:
insertScriptLinein classActionImageProcessorBase
-
scriptRun
Sets up the action dialog state and then executes it.- Specified by:
scriptRunin interfaceScriptableActionInterface- Specified by:
scriptRunin classActionImageProcessorBase- Parameters:
parameters- Table of parameters for the script to use.
-
setTargetDirectory
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.
-