Class JDialogMask3D4D

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

public class JDialogMask3D4D extends JDialogBase
Dialog to get user input, then call the algorithm. The user has the option to generate a new image or replace the source image. In addition the user can indicate if you wishes to have the algorithm applied to whole image or to the VOI regions. In should be noted, that the algorithms are executed in their own thread.
See Also:
  • Field Details

    • serialVersionUID

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

      private JRadioButton threeD
      Radio button indicating that the image should only be masked in 3D
    • fourD

      private JRadioButton fourD
      Radio button indicating that the image should be masked in 4D
    • saveMasksAs4D

      private boolean saveMasksAs4D
  • Constructor Details

    • JDialogMask3D4D

      public JDialogMask3D4D(Frame theParentFrame)
      Creates a new JDialogMask3D4D object.
      Parameters:
      theParentFrame - Parent frame.
      im - Source image.
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Closes dialog box when the OK button is pressed and calls the algorithm.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      event - Event that triggers function.
    • init

      private void init()
      Sets up the GUI (panels, buttons, etc) and displays it on the screen.
    • isSaveMasksAs4D

      public boolean isSaveMasksAs4D()