Class ActionSaveAllVOIs

All Implemented Interfaces:
ScriptableActionInterface

public class ActionSaveAllVOIs extends ActionImageProcessorBase
A script action which saves all the VOIs in an image to disk.
  • Field Details

    • SAVE_VOIS_TO_DIR

      private static final String SAVE_VOIS_TO_DIR
      The label to use for the VOI-save destination directory parameter (leave empty for the default directory).
      See Also:
    • recordingTargetDir

      private 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 Details

    • ActionSaveAllVOIs

      public ActionSaveAllVOIs()
      Constructor for the dynamic instantiation and execution of the SaveAllVOIs script action.
    • ActionSaveAllVOIs

      public ActionSaveAllVOIs(ModelImage input)
      Constructor used to record the SaveAllVOIs script action line.
      Parameters:
      input - The image which had its VOIs saved.
    • ActionSaveAllVOIs

      public ActionSaveAllVOIs(ModelImage input, 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 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:
      insertScriptLine in interface ScriptableActionInterface
      Specified by:
      insertScriptLine in class ActionImageProcessorBase
    • scriptRun

      public void scriptRun(ParameterTable parameters)
      Sets up the action dialog state and then executes it.
      Specified by:
      scriptRun in interface ScriptableActionInterface
      Specified by:
      scriptRun in class ActionImageProcessorBase
      Parameters:
      parameters - Table of parameters for the script to use.
    • setTargetDirectory

      public void setTargetDirectory(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.