Class ActionChangeOrientations
java.lang.Object
gov.nih.mipav.model.scripting.actions.ActionBase
gov.nih.mipav.model.scripting.actions.ActionImageProcessorBase
gov.nih.mipav.model.scripting.actions.ActionChangeOrientations
- All Implemented Interfaces:
ScriptableActionInterface
A script action which changes the image's orientations
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringThe label to use for the parameter indicating the new axis orientationsprivate static final StringThe label to use for the parameter indicating the new orientationFields 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 script action.Main constructor with parameters for changing the orientations -
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.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
-
IMAGE_ORIENTATION
The label to use for the parameter indicating the new orientation- See Also:
-
AXIS_ORIENTATIONS
The label to use for the parameter indicating the new axis orientations- See Also:
-
-
Constructor Details
-
ActionChangeOrientations
public ActionChangeOrientations()Constructor for the dynamic instantiation and execution of the script action. -
ActionChangeOrientations
Main constructor with parameters for changing the orientations- Parameters:
image- the input image
-
-
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.
-