Class JDialogExtractSlices

All Implemented Interfaces:
AlgorithmInterface, ScriptableActionInterface, DialogDefaultsInterface, ActionListener, FocusListener, ItemListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class JDialogExtractSlices extends JDialogScriptableBase implements AlgorithmInterface
Dialog to call the extractSlices. This dialog will not be visible because it does not require user input at this time. It was made a dialog object to be consistent with the dialog/algorithm paradigm.
Version:
0.1 Nov 17, 1998
Author:
Lynne M. Pusanik
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • convert4Dto3D

      private boolean convert4Dto3D
      DOCUMENT ME!
    • extractList

      private Vector<String> extractList
      DOCUMENT ME!
    • extractSlicesAlgo

      private AlgorithmExtractSlices extractSlicesAlgo
      DOCUMENT ME!
    • resultImage

      private ModelImage resultImage
      DOCUMENT ME!
    • srcImage

      private ModelImage srcImage
      DOCUMENT ME!
  • Constructor Details

    • JDialogExtractSlices

      public JDialogExtractSlices()
      Empty constructor needed for dynamic instantiation (used during scripting).
    • JDialogExtractSlices

      public JDialogExtractSlices(Frame theParentFrame, ModelImage image, Vector<String> eList)
      Constructor.
      Parameters:
      theParentFrame - parent frame
      image - source image
      eList - DOCUMENT ME!
  • Method Details

    • algorithmPerformed

      public void algorithmPerformed(AlgorithmBase algorithm)
      This method is required if the AlgorithmPerformed interface is implemented. It is called by the algorithms when it has completed or failed to to complete, so that the dialog can be display the result image and/or clean up.
      Specified by:
      algorithmPerformed in interface AlgorithmInterface
      Parameters:
      algorithm - Algorithm that caused the event.
    • callAlgorithm

      public void callAlgorithm()
      Run the algorithm.
      Specified by:
      callAlgorithm in class JDialogScriptableBase
    • getResultImage

      public ModelImage getResultImage()
      Accessor that returns the result image.
      Returns:
      DOCUMENT ME!
    • isSuccessful

      public boolean isSuccessful()
      Accessor that returns the whether or not the algorithm completed successfully.
      Returns:
      DOCUMENT ME!
    • setConvert4Dto3D

      public void setConvert4Dto3D(boolean doConvert)
      DOCUMENT ME!
      Parameters:
      doConvert - DOCUMENT ME!
    • doPostAlgorithmActions

      protected void doPostAlgorithmActions()
      Store the result image in the script runner's image table now that the action execution is finished.
      Overrides:
      doPostAlgorithmActions in class JDialogScriptableBase
    • setGUIFromParams

      protected void setGUIFromParams()
      Set the dialog GUI using the script parameters while running this algorithm as part of a script.
      Specified by:
      setGUIFromParams in class JDialogScriptableBase
    • storeParamsFromGUI

      protected void storeParamsFromGUI() throws ParserException
      Record the parameters just used to run this algorithm in a script.
      Specified by:
      storeParamsFromGUI in class JDialogScriptableBase
      Throws:
      ParserException - If there is a problem creating/recording the new parameters.