Class ActionChangeTransformInfo
- java.lang.Object
-
- gov.nih.mipav.model.scripting.actions.ActionBase
-
- gov.nih.mipav.model.scripting.actions.ActionImageProcessorBase
-
- gov.nih.mipav.model.scripting.actions.ActionChangeTransformInfo
-
- All Implemented Interfaces:
ScriptableActionInterface
public class ActionChangeTransformInfo extends ActionImageProcessorBase
A script action which changes the image's resolutions
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
TRANSFORM_ID
The label to use for the parameter indicating the transform IDprivate static java.lang.String
TRANSFORM_MATRIX
The label to use for the parameter indicating the transform matrixprivate TransMatrix
transMatrix
-
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 ActionChangeTransformInfo()
Constructor for the dynamic instantiation and execution of the script action.ActionChangeTransformInfo(ModelImage image, TransMatrix tMat)
Main constructor with parameters for changing the transform information
-
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.-
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
-
TRANSFORM_MATRIX
private static final java.lang.String TRANSFORM_MATRIX
The label to use for the parameter indicating the transform matrix- See Also:
- Constant Field Values
-
TRANSFORM_ID
private static final java.lang.String TRANSFORM_ID
The label to use for the parameter indicating the transform ID- See Also:
- Constant Field Values
-
transMatrix
private TransMatrix transMatrix
-
-
Constructor Detail
-
ActionChangeTransformInfo
public ActionChangeTransformInfo()
Constructor for the dynamic instantiation and execution of the script action.
-
ActionChangeTransformInfo
public ActionChangeTransformInfo(ModelImage image, TransMatrix tMat)
Main constructor with parameters for changing the transform information- Parameters:
image
-
-
-
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.
-
-