Class JDialogGVF

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

public class JDialogGVF extends JDialogBase implements AlgorithmInterface, ItemListener
Dialog to get user input, then call the algorithm. The user is able to control the degree of blurring in x and y dimensions. It 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:
    • boundaryIterations

      private int boundaryIterations
      DOCUMENT ME!
    • checkboxDisplay

      private JCheckBox checkboxDisplay
      DOCUMENT ME!
    • do25D

      private boolean do25D
      DOCUMENT ME!
    • do25DCheckBox

      private JCheckBox do25DCheckBox
      DOCUMENT ME!
    • extents

      private int[] extents
      DOCUMENT ME!
    • groupNum

      private int groupNum
      DOCUMENT ME!
    • gvfAlgo

      private AlgorithmGVF gvfAlgo
      DOCUMENT ME!
    • gvfIterations

      private int gvfIterations
      DOCUMENT ME!
    • image

      private ModelImage image
      DOCUMENT ME!
    • kValue

      private float kValue
      DOCUMENT ME!
    • labelGaussZ

      private JLabel labelGaussZ
      DOCUMENT ME!
    • propagate

      private JRadioButton propagate
      DOCUMENT ME!
    • propagationFlag

      private boolean propagationFlag
      DOCUMENT ME!
    • removeOriginal

      private boolean removeOriginal
      DOCUMENT ME!
    • removeOriginalCheckBox

      private JCheckBox removeOriginalCheckBox
      DOCUMENT ME!
    • resultImage

      private ModelImage resultImage
      DOCUMENT ME!
    • scaleX

      private float scaleX
      DOCUMENT ME!
    • scaleY

      private float scaleY
      DOCUMENT ME!
    • scaleZ

      private float scaleZ
      DOCUMENT ME!
    • singleSlice

      private JRadioButton singleSlice
      DOCUMENT ME!
    • srcVOI

      private VOI srcVOI
      DOCUMENT ME!
    • textBoundaryIterations

      private JTextField textBoundaryIterations
      DOCUMENT ME!
    • textGaussX

      private JTextField textGaussX
      DOCUMENT ME!
    • textGaussY

      private JTextField textGaussY
      DOCUMENT ME!
    • textGaussZ

      private JTextField textGaussZ
      DOCUMENT ME!
    • textGVFIterations

      private JTextField textGVFIterations
      DOCUMENT ME!
    • textK

      private JTextField textK
      DOCUMENT ME!
    • titles

      private String[] titles
      DOCUMENT ME!
    • voiColor

      private Color voiColor
      DOCUMENT ME!
    • VOIs

      private ViewVOIVector VOIs
      DOCUMENT ME!
  • Constructor Details

    • JDialogGVF

      public JDialogGVF(Frame theParentFrame, ModelImage im)
      Creates new dialog for finding the GVF.
      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
    • algorithmPerformed

      public void algorithmPerformed(AlgorithmBase algorithm)
      This method is required if the AlgorithmPerformed interface is implemented. It is called by the algorithm 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.
    • init

      private void init()
      Initializes GUI variables and displays dialog.