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 SummaryFields Modifier and Type Field Description private booleanchangeAllWhether or not to change all fileinfos/slices.private static java.lang.StringIMAGE_RESOLUTIONSThe label to use for the parameter indicating the new resolutions.private static java.lang.StringRESOLUTIONS_ALLThe label to use for the parameter indicating whether to change all slices.private static java.lang.StringSLICE_INDEXThe label to use for the parameter indicating the index of the slice from which to set/retrieve the resolutions.private static java.lang.StringSLICE_THICKNESSThe label to use for the parameter indicating the slice thickness.private intsliceIndexindex of the slice from which to retrieve the resolutions.private floatsliceThicknessthe slice thickness.- 
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 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 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.- 
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- 
IMAGE_RESOLUTIONSprivate static final java.lang.String IMAGE_RESOLUTIONS The label to use for the parameter indicating the new resolutions.- See Also:
- Constant Field Values
 
 - 
RESOLUTIONS_ALLprivate 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_INDEXprivate 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_THICKNESSprivate static final java.lang.String SLICE_THICKNESS The label to use for the parameter indicating the slice thickness.- See Also:
- Constant Field Values
 
 - 
changeAllprivate boolean changeAll Whether or not to change all fileinfos/slices.
 - 
sliceIndexprivate int sliceIndex index of the slice from which to retrieve the resolutions.
 - 
sliceThicknessprivate float sliceThickness the slice thickness.
 
- 
 - 
Constructor Detail- 
ActionChangeResolutionspublic ActionChangeResolutions() Constructor for the dynamic instantiation and execution of the script action.
 - 
ActionChangeResolutionspublic 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 slices
- slice_index- index of slice from which to get resolution change
- slice_thickness- the slice thickness
 
 
- 
 - 
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.
 
 
- 
 
-