Class ActionChangeResolutions
- java.lang.Object
-
- gov.nih.mipav.model.scripting.actions.ActionBase
-
- gov.nih.mipav.model.scripting.actions.ActionImageProcessorBase
-
- gov.nih.mipav.model.scripting.actions.ActionChangeResolutions
-
- All Implemented Interfaces:
ScriptableActionInterface
public class ActionChangeResolutions extends ActionImageProcessorBase
A script action which changes the image's resolutions.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
changeAll
Whether or not to change all fileinfos/slices.private static java.lang.String
IMAGE_RESOLUTIONS
The label to use for the parameter indicating the new resolutions.private static java.lang.String
RESOLUTIONS_ALL
The label to use for the parameter indicating whether to change all slices.private static java.lang.String
SLICE_INDEX
The label to use for the parameter indicating the index of the slice from which to set/retrieve the resolutions.private static java.lang.String
SLICE_THICKNESS
The label to use for the parameter indicating the slice thickness.private int
sliceIndex
index of the slice from which to retrieve the resolutions.private float
sliceThickness
the slice thickness.-
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 ActionChangeResolutions()
Constructor for the dynamic instantiation and execution of the script action.ActionChangeResolutions(ModelImage image, boolean change_all, int slice_index, float slice_thickness)
Main constructor with parameters for changing the resolution/slice thickness.
-
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
-
IMAGE_RESOLUTIONS
private static final java.lang.String IMAGE_RESOLUTIONS
The label to use for the parameter indicating the new resolutions.- See Also:
- Constant Field Values
-
RESOLUTIONS_ALL
private static final java.lang.String RESOLUTIONS_ALL
The label to use for the parameter indicating whether to change all slices.- See Also:
- Constant Field Values
-
SLICE_INDEX
private static final java.lang.String SLICE_INDEX
The label to use for the parameter indicating the index of the slice from which to set/retrieve the resolutions.- See Also:
- Constant Field Values
-
SLICE_THICKNESS
private static final java.lang.String SLICE_THICKNESS
The label to use for the parameter indicating the slice thickness.- See Also:
- Constant Field Values
-
changeAll
private boolean changeAll
Whether or not to change all fileinfos/slices.
-
sliceIndex
private int sliceIndex
index of the slice from which to retrieve the resolutions.
-
sliceThickness
private float sliceThickness
the slice thickness.
-
-
Constructor Detail
-
ActionChangeResolutions
public ActionChangeResolutions()
Constructor for the dynamic instantiation and execution of the script action.
-
ActionChangeResolutions
public ActionChangeResolutions(ModelImage image, boolean change_all, int slice_index, float slice_thickness)
Main constructor with parameters for changing the resolution/slice thickness.- Parameters:
image
- DOCUMENT ME!change_all
- change for all slicesslice_index
- index of slice from which to get resolution changeslice_thickness
- the slice thickness
-
-
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.
-
-