Class ActionSaveAllVOIs
- java.lang.Object
- 
- gov.nih.mipav.model.scripting.actions.ActionBase
- 
- gov.nih.mipav.model.scripting.actions.ActionImageProcessorBase
- 
- gov.nih.mipav.model.scripting.actions.ActionSaveAllVOIs
 
 
 
- 
- All Implemented Interfaces:
- ScriptableActionInterface
 
 public class ActionSaveAllVOIs extends ActionImageProcessorBase A script action which saves all the VOIs in an image to disk.
- 
- 
Field SummaryFields Modifier and Type Field Description private java.lang.StringrecordingTargetDirThe directory where the VOIs were saved to, which should be recorded in the script.private static java.lang.StringSAVE_VOIS_TO_DIRThe label to use for the VOI-save destination directory parameter (leave empty for the default directory).- 
Fields inherited from class gov.nih.mipav.model.scripting.actions.ActionImageProcessorBaseINPUT_IMAGE_LABEL, recordingInputImage, recordingResultImage
 - 
Fields inherited from class gov.nih.mipav.model.scripting.actions.ActionBaseisScript
 
- 
 - 
Constructor SummaryConstructors Constructor Description ActionSaveAllVOIs()Constructor for the dynamic instantiation and execution of the SaveAllVOIs script action.ActionSaveAllVOIs(ModelImage input)Constructor used to record the SaveAllVOIs script action line.ActionSaveAllVOIs(ModelImage input, java.lang.String targetDir)Constructor used to record the SaveAllVOIs script action line.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinsertScriptLine()If 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(java.lang.String targetDir)Changes the target directory where the VOIs were saved, which should be recorded in the script.- 
Methods inherited from class gov.nih.mipav.model.scripting.actions.ActionImageProcessorBasecreateInputImageParameter, isImageStoredInRecorder, setInputImage, setResultImage, storeImageInRecorder, storeImageInRunner
 - 
Methods inherited from class gov.nih.mipav.model.scripting.actions.ActionBasegetActionName, getActionName, isScript, setIsScript
 
- 
 
- 
- 
- 
Field Detail- 
SAVE_VOIS_TO_DIRprivate static final java.lang.String SAVE_VOIS_TO_DIR The label to use for the VOI-save destination directory parameter (leave empty for the default directory).- See Also:
- Constant Field Values
 
 - 
recordingTargetDirprivate java.lang.String recordingTargetDir The directory where the VOIs were saved to, which should be recorded in the script. Leave empty or null to save in the current default directory.
 
- 
 - 
Constructor Detail- 
ActionSaveAllVOIspublic ActionSaveAllVOIs() Constructor for the dynamic instantiation and execution of the SaveAllVOIs script action.
 - 
ActionSaveAllVOIspublic ActionSaveAllVOIs(ModelImage input) Constructor used to record the SaveAllVOIs script action line.- Parameters:
- input- The image which had its VOIs saved.
 
 - 
ActionSaveAllVOIspublic ActionSaveAllVOIs(ModelImage input, java.lang.String targetDir) Constructor used to record the SaveAllVOIs script action line.- Parameters:
- input- The image which had its VOIs saved.
- targetDir- The directory where the VOIs were saved (leave empty or null for the default directory).
 
 
- 
 - 
Method Detail- 
insertScriptLinepublic void insertScriptLine() If a script is being recorded and the action (read: algorithm) is done, add an entry for this action.- Specified by:
- insertScriptLinein interface- ScriptableActionInterface
- Specified by:
- insertScriptLinein class- ActionImageProcessorBase
 
 - 
scriptRunpublic void scriptRun(ParameterTable parameters) Sets up the action dialog state and then executes it.- Specified by:
- scriptRunin interface- ScriptableActionInterface
- Specified by:
- scriptRunin class- ActionImageProcessorBase
- Parameters:
- parameters- Table of parameters for the script to use.
 
 - 
setTargetDirectorypublic void setTargetDirectory(java.lang.String targetDir) Changes the target directory where the VOIs 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 VOIs were saved.
 
 
- 
 
-