Class JPanelVolOpacity

All Implemented Interfaces:
ActionListener, FocusListener, ItemListener, KeyListener, MouseListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener

public class JPanelVolOpacity extends JPanelVolOpacityBase
Deprecated.
Simple panel containing the volume renderer opacity controls.
Version:
0.1 May, 2003
See Also:
  • Field Details

    • serialVersionUID

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

      private ModelHistogram histogramA
      Deprecated.
      Histogram reference for image A.
    • histogramB

      private ModelHistogram histogramB
      Deprecated.
      Histogram reference for image B.
    • histogramGM_A

      private ModelHistogram histogramGM_A
      Deprecated.
      Histogram reference for imageA GM.
    • histogramGM_B

      private ModelHistogram histogramGM_B
      Deprecated.
      Histogram reference for imageB GM.
    • rendererProgressBar

      private JProgressBar rendererProgressBar
      Deprecated.
      A reference to the volume renderer frame's progress bar.
  • Constructor Details

    • JPanelVolOpacity

      public JPanelVolOpacity(RenderViewBase theParentFrame, ModelImage _imgA, ModelImage _imgB)
      Deprecated.
      Creates new dialog for converting type of image.
      Parameters:
      theParentFrame - Parent frame.
      _imgA - Source imageA.
      _imgB - Source imageB.
      See Also:
    • JPanelVolOpacity

      public JPanelVolOpacity(VolumeTriPlanarInterface theParentFrame, ModelImage _imgA, ModelImage _imgB)
      Deprecated.
      Creates new dialog for converting type of image.
      Parameters:
      theParentFrame - Parent frame.
      _imgA - Source imageA.
      _imgB - Source imageB.
      See Also:
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Deprecated.
      Closes dialog box when the OK button is pressed and sets the variables.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JPanelVolOpacityBase
      Parameters:
      event - Event that triggers this function
    • addGM

      public void addGM()
      Deprecated.
      Add the gradient magnitude histogram to the opacity control panel.
      Specified by:
      addGM in class JPanelVolOpacityBase
    • disposeLocal

      public void disposeLocal()
      Deprecated.
      Clear memory and garbage collection.
      Overrides:
      disposeLocal in class JPanelVolOpacityBase
    • getGradMagA

      public ModelImage getGradMagA()
      Deprecated.
      Get the gradient magnitude imageA.
      Overrides:
      getGradMagA in class JPanelVolOpacityBase
      Returns:
      ModelImage GM imageA
    • getGradMagB

      public ModelImage getGradMagB()
      Deprecated.
      Get the gradient magnitude imageB.
      Overrides:
      getGradMagB in class JPanelVolOpacityBase
      Returns:
      ModelImage GM imageB
    • itemStateChanged

      public void itemStateChanged(ItemEvent event)
      Deprecated.
      Sets the flags for the checkboxes.
      Specified by:
      itemStateChanged in interface ItemListener
      Overrides:
      itemStateChanged in class JPanelRendererBase
      Parameters:
      event - event that triggered this function
    • removeGM

      public void removeGM()
      Deprecated.
      Add the gradient magnitude hitogram to the opacity control panel.
      Specified by:
      removeGM in class JPanelVolOpacityBase
    • finalize

      protected void finalize() throws Throwable
      Deprecated.
      Calls dispose.
      Overrides:
      finalize in class JPanelVolOpacityBase
      Throws:
      Throwable - DOCUMENT ME!
    • buildPanelA

      private void buildPanelA()
      Deprecated.
      Method that displays the histogram and controls to manipulate the opacity. Panel for image A.
    • buildPanelB

      private void buildPanelB()
      Deprecated.
      Method that displays the histogram and controls to manipulate the opacity. Panel for image B. Reset the layout.
    • buildPanelGM_A

      private void buildPanelGM_A()
      Deprecated.
      Method that displays the histogram and controls to manipulate the opacity. Panel for image GM_A.
    • buildPanelGM_B

      private void buildPanelGM_B()
      Deprecated.
      Method that displays the histogram and controls to manipulate the opacity. Panel for image GM_B.
    • calcHistograms

      private void calcHistograms()
      Deprecated.
      Calculates histogram for the imageA, B.
    • calcHistogramsGM

      private void calcHistogramsGM()
      Deprecated.
      Calculates histogram for the gradient magnitude imageA, B.
    • initialize

      private void initialize()
      Deprecated.
      Sets up the GUI (panels, buttons, etc) and displays it on the screen. Change the layout of the volume opacity change diagram.