Class JDialogSaveMergedVOIs

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

public class JDialogSaveMergedVOIs extends JDialogBase
Simple dialog to save the 3 VOIs ( Sagittal, Coronal, Axial ) for each view, and merge them into one cloud points. The cloud points is written as a .ply file, which can be read from MeshLab software.
Version:
09 Jan, 2009
Author:
Ruida Cheng
See Also:
  • Field Details

    • labelAxialVOI

      public JLabel labelAxialVOI
    • labelSagittalVOI

      public JLabel labelSagittalVOI
    • labelCoronalVOI

      public JLabel labelCoronalVOI
    • labelPlyFile

      public JLabel labelPlyFile
    • textFieldAxialVOI

      public JTextField textFieldAxialVOI
      Text field for each VOI and ply file.
    • textFieldSagittalVOI

      public JTextField textFieldSagittalVOI
      Text field for each VOI and ply file.
    • textFieldCoronalVOI

      public JTextField textFieldCoronalVOI
      Text field for each VOI and ply file.
    • textFieldPlyFile

      public JTextField textFieldPlyFile
      Text field for each VOI and ply file.
    • buttonAxial

      public JButton buttonAxial
      Choose button for each VOI and ply file.
    • buttonSagittal

      public JButton buttonSagittal
      Choose button for each VOI and ply file.
    • buttonCoronal

      public JButton buttonCoronal
      Choose button for each VOI and ply file.
    • buttonPly

      public JButton buttonPly
      Choose button for each VOI and ply file.
    • VOIsPanel

      public JPanel VOIsPanel
    • buttonPanel

      public JPanel buttonPanel
      Button panel to hold the OK button, Cancel button, and Help button.
    • msgPanel

      public JPanel msgPanel
      Msg box to show the Prostate surface analysis related info.
    • AxialVOIs

      private InstanceVOI AxialVOIs
      Axial VOI instance
    • SagittalVOIs

      private InstanceVOI SagittalVOIs
      Sagittal VOI instance
    • CoronalVOIs

      private InstanceVOI CoronalVOIs
      Coronal VOI instance
    • PlyInstance

      private InstanceVOI PlyInstance
      Ply file instance. This instance only uses the file dir and file name.
  • Constructor Details

    • JDialogSaveMergedVOIs

      public JDialogSaveMergedVOIs(Frame theParentFrame)
      Constructor for Merging the 3 VOIs and save into one cloudy points file.
      Parameters:
      theParentFrame -
    • JDialogSaveMergedVOIs

      public JDialogSaveMergedVOIs(Frame theParentFrame, String axialName, String sagittalName, String coronalName, String plyName)
    • JDialogSaveMergedVOIs

      public JDialogSaveMergedVOIs(Frame theParentFrame, boolean modal)
      Constructor that sets the parent frame of the dialog and whether or not the dialog is modal. Also adds this as a window listener to all dialogs.
      Parameters:
      modal - Modality of the dialog; true means the user can't do anything until this dialog is diposed of.
      parent - Parent frame.
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      handler the button click evens.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
    • saveFile

      public void saveFile()
    • writePlyFile

      public void writePlyFile()
      Write the cloud points from the 3 VOIs into one .ply file. The .ply file is readable for MeshLab.
    • init

      private void init()
      Sets up GUI and displays the dialog.
    • buildButtons

      protected JPanel buildButtons()
      Builds button panel consisting of OK, Cancel and Help buttons.
      Overrides:
      buildButtons in class JDialogBase
      Returns:
      JPanel that has ok, cancel, and help buttons
    • buildOKButton

      protected JButton buildOKButton()
      Builds the OK button. Sets it internally as well return the just-built button.
      Overrides:
      buildOKButton in class JDialogBase
      Returns:
      JButton ok button
    • buildCancelButton

      protected JButton buildCancelButton()
      Builds the cancel button. Sets it internally as well return the just-built button.
      Overrides:
      buildCancelButton in class JDialogBase
      Returns:
      JButton cancel button
    • buildHelpButton

      protected JButton buildHelpButton()
      Builds the help button. Sets it internally as well return the just-built button.
      Overrides:
      buildHelpButton in class JDialogBase
      Returns:
      JButton help button