Class JPanelVolOpacityBase

All Implemented Interfaces:
ActionListener, FocusListener, ItemListener, KeyListener, MouseListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener
Direct Known Subclasses:
JPanelVolOpacity, JPanelVolOpacityRGB

public abstract class JPanelVolOpacityBase extends JPanelRendererJ3D implements ChangeListener, MouseListener
Deprecated.
Simple panel containing the volume renderer opacity controls.
Version:
0.1 August, 2005
See Also:
  • Field Details

    • serialVersionUID

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

      public static final int COMP_A
      Deprecated.
      Component tag indicator.
      See Also:
    • COMP_B

      public static final int COMP_B
      Deprecated.
      Component tag indicator.
      See Also:
    • COMP_GM_A

      public static final int COMP_GM_A
      Deprecated.
      Component tag indicator.
      See Also:
    • COMP_GM_B

      public static final int COMP_GM_B
      Deprecated.
      Component tag indicator.
      See Also:
    • OPACITY_COMPONENT_TAB_A

      protected static final String OPACITY_COMPONENT_TAB_A
      Deprecated.
      DOCUMENT ME!
      See Also:
    • OPACITY_COMPONENT_TAB_B

      protected static final String OPACITY_COMPONENT_TAB_B
      Deprecated.
      DOCUMENT ME!
      See Also:
    • OPACITY_COMPONENT_TAB_A_GM

      protected static final String OPACITY_COMPONENT_TAB_A_GM
      Deprecated.
      DOCUMENT ME!
      See Also:
    • OPACITY_COMPONENT_TAB_B_GM

      protected static final String OPACITY_COMPONENT_TAB_B_GM
      Deprecated.
      DOCUMENT ME!
      See Also:
    • RED

      public static final int RED
      Deprecated.
      Component tag indicator.
      See Also:
    • GREEN

      public static final int GREEN
      Deprecated.
      Component tag indicator.
      See Also:
    • BLUE

      public static final int BLUE
      Deprecated.
      Component tag indicator.
      See Also:
    • blendSlider

      protected JSlider blendSlider
      Deprecated.
      Opacity slider of texture 3D volume opacity changes.
    • componentOpacityA

      protected ViewJComponentVolOpacityBase componentOpacityA
      Deprecated.
      Reference to compoment opacity control A.
    • componentOpacityB

      protected ViewJComponentVolOpacityBase componentOpacityB
      Deprecated.
      Reference to compoment opacity control B.
    • componentOpacityGM_A

      protected ViewJComponentVolOpacityBase componentOpacityGM_A
      Deprecated.
      Reference to compoment opacity control A GM Rescale.
    • componentOpacityGM_B

      protected ViewJComponentVolOpacityBase componentOpacityGM_B
      Deprecated.
      Reference to compoment opacity control B GM Rescale.
    • GMCheckBox

      protected JCheckBox GMCheckBox
      Deprecated.
      Gradient Magnitude Check box of the grey scale image.
    • gradMagRescale_A

      protected ModelImage gradMagRescale_A
      Deprecated.
      Model image of the gradient magnitude of image A rescaled to have value in the range [0:255].
    • gradMagRescale_B

      protected ModelImage gradMagRescale_B
      Deprecated.
      Model image of the gradient magnitude of image B rescaled to have value in the range [0:255].
    • imageA

      protected ModelImage imageA
      Deprecated.
      Model image A.
    • imageB

      protected ModelImage imageB
      Deprecated.
      Model image B.
    • labelsTable

      protected Hashtable labelsTable
      Deprecated.
      Historgram dialog slider labels of the imageA, B and GM imageA, B.
    • labelsTableB

      protected Hashtable labelsTableB
      Deprecated.
      Historgram dialog slider labels of the imageA, B and GM imageA, B.
    • labelsTableGM_A

      protected Hashtable labelsTableGM_A
      Deprecated.
      Historgram dialog slider labels of the imageA, B and GM imageA, B.
    • labelsTableGM_B

      protected Hashtable labelsTableGM_B
      Deprecated.
      Historgram dialog slider labels of the imageA, B and GM imageA, B.
    • middleLabelValueA

      protected float middleLabelValueA
      Deprecated.
      DOCUMENT ME!
    • middleLabelValueB

      protected float middleLabelValueB
      Deprecated.
      DOCUMENT ME!
    • middleLabelValueGM_A

      protected float middleLabelValueGM_A
      Deprecated.
      DOCUMENT ME!
    • middleLabelValueGM_B

      protected float middleLabelValueGM_B
      Deprecated.
      DOCUMENT ME!
    • mouseSlider

      protected JSlider mouseSlider
      Deprecated.
      DOCUMENT ME!
    • mouseSliderB

      protected JSlider mouseSliderB
      Deprecated.
      DOCUMENT ME!
    • mouseSliderGM_A

      protected JSlider mouseSliderGM_A
      Deprecated.
      DOCUMENT ME!
    • mouseSliderGM_B

      protected JSlider mouseSliderGM_B
      Deprecated.
      DOCUMENT ME!
    • opacitySliderLabelsA

      protected JLabel[] opacitySliderLabelsA
      Deprecated.
      The labels below the opacity slider.
    • opacitySliderLabelsB

      protected JLabel[] opacitySliderLabelsB
      Deprecated.
      The labels below the opacity slider.
    • opacitySliderLabelsGM_A

      protected JLabel[] opacitySliderLabelsGM_A
      Deprecated.
      DOCUMENT ME!
    • opacitySliderLabelsGM_B

      protected JLabel[] opacitySliderLabelsGM_B
      Deprecated.
      DOCUMENT ME!
    • panelOpacityA

      protected JPanel panelOpacityA
      Deprecated.
      Panels that hold the the control components (opacity maps).
    • panelOpacityB

      protected JPanel panelOpacityB
      Deprecated.
      DOCUMENT ME!
    • panelOpacityGM_A

      protected JPanel panelOpacityGM_A
      Deprecated.
      DOCUMENT ME!
    • panelOpacityGM_B

      protected JPanel panelOpacityGM_B
      Deprecated.
      DOCUMENT ME!
    • rangeText

      protected JTextField rangeText
      Deprecated.
      X range text field in the imageA, B histogram dialog.
    • rangeTextB

      protected JTextField rangeTextB
      Deprecated.
      X range text field in the imageA, B histogram dialog.
    • rangeTextGM_A

      protected JTextField rangeTextGM_A
      Deprecated.
      X range text field in the Gradient Magnitude imageA, B histogram dialog.
    • rangeTextGM_B

      protected JTextField rangeTextGM_B
      Deprecated.
      X range text field in the Gradient Magnitude imageA, B histogram dialog.
    • scaleRangeA

      protected float scaleRangeA
      Deprecated.
      Scale range value according to the image min and max.
    • scaleRangeB

      protected float scaleRangeB
      Deprecated.
      Scale range value according to the image min and max.
    • scaleRangeGM_A

      protected float scaleRangeGM_A
      Deprecated.
      Scale range value according to the image min and max.
    • scaleRangeGM_B

      protected float scaleRangeGM_B
      Deprecated.
      Scale range value according to the image min and max.
    • tabbedPane

      protected JTabbedPane tabbedPane
      Deprecated.
      Tabbed pane that contains the list of opacity functions.
    • xRangeTextA

      protected JTextField xRangeTextA
      Deprecated.
      X range text field in the imageA, B and GM image A, B histogram dialog. Following text fields are used by the tri-planar volume view.
    • xRangeTextB

      protected JTextField xRangeTextB
      Deprecated.
      X range text field in the imageA, B and GM image A, B histogram dialog. Following text fields are used by the tri-planar volume view.
    • xRangeTextGM_A

      protected JTextField xRangeTextGM_A
      Deprecated.
      X range text field in the imageA, B and GM image A, B histogram dialog. Following text fields are used by the tri-planar volume view.
    • xRangeTextGM_B

      protected JTextField xRangeTextGM_B
      Deprecated.
      X range text field in the imageA, B and GM image A, B histogram dialog. Following text fields are used by the tri-planar volume view.
    • yRangeTextA

      protected JTextField yRangeTextA
      Deprecated.
      Y range text field in the imageA, B and GM image A, B histogram dialog. Following text fields are used by the tri-planar volume view.
    • yRangeTextB

      protected JTextField yRangeTextB
      Deprecated.
      Y range text field in the imageA, B and GM image A, B histogram dialog. Following text fields are used by the tri-planar volume view.
    • yRangeTextGM_A

      protected JTextField yRangeTextGM_A
      Deprecated.
      Y range text field in the imageA, B and GM image A, B histogram dialog. Following text fields are used by the tri-planar volume view.
    • yRangeTextGM_B

      protected JTextField yRangeTextGM_B
      Deprecated.
      Y range text field in the imageA, B and GM image A, B histogram dialog. Following text fields are used by the tri-planar volume view.
    • m_kVolumeViewer

      protected VolumeTriPlanarInterface m_kVolumeViewer
      Deprecated.
      Render base.
  • Constructor Details

  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Deprecated.
      Action performed method required when extending JPanelRendererBase.
      Specified by:
      actionPerformed in interface ActionListener
      Specified by:
      actionPerformed in class JPanelRendererBase
      Parameters:
      event - DOCUMENT ME!
    • disposeLocal

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

      public abstract void addGM()
      Deprecated.
    • removeGM

      public abstract void removeGM()
      Deprecated.
    • getAlphaBlendSliderValue

      public int getAlphaBlendSliderValue()
      Deprecated.
      This function returns the value of the blending slider.
      Returns:
      int the value of the slider, or a default of 50 (the median value) if the slider has not been initialized
    • setAlphaBlendSliderValue

      public void setAlphaBlendSliderValue(int iValue)
      Deprecated.
      Sets the blendSlider value.
      Parameters:
      iValue - new slider value.
    • getCompA

      public ViewJComponentVolOpacityBase getCompA()
      Deprecated.
      Return the opacity histrogram component of the imageA.
      Returns:
      componentOpacityA opacity component A.
    • getCompA_GM

      public ViewJComponentVolOpacityBase getCompA_GM()
      Deprecated.
      Return the opacity histrogram component of the Gradient Magnitude imageA.
      Returns:
      componentOpacityGM_A gradient magnitude component A.
    • getCompB

      public ViewJComponentVolOpacityBase getCompB()
      Deprecated.
      Return the opacity histrogram component of the imageB.
      Returns:
      componentOpacityB opacity component B.
    • getCompB_GM

      public ViewJComponentVolOpacityBase getCompB_GM()
      Deprecated.
      Return the opacity histrogram component of the Gradient Magnitude imageB.
      Returns:
      componentOpacityGM_B gradient magnitude component B.
    • getGradMagA

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

      public ModelImage getGradMagB()
      Deprecated.
      Get the gradient magnitude imageB.
      Returns:
      ModelImage GM imageB
    • getImageA

      public ModelImage getImageA()
      Deprecated.
      Accessor that returns the imageA.
      Returns:
      image
    • getImageB

      public ModelImage getImageB()
      Deprecated.
      Accessor that returns the image.
      Returns:
      image
    • getMainPanel

      public JPanel getMainPanel()
      Deprecated.
      Sets up the GUI (panels, buttons, etc) and displays it on the screen. Change the layout of the volume opacity change diagram.
      Specified by:
      getMainPanel in class JPanelRendererBase
      Returns:
      DOCUMENT ME!
    • getParentFrame

      public RenderViewBase getParentFrame()
      Deprecated.
      Return the parent frame.
      Returns:
      myParent ViewJFrameSurfaceRender frame
    • getSelectedComponent

      public ViewJComponentVolOpacityBase getSelectedComponent()
      Deprecated.
      Return the selected tabbbed pane component. Should be overridden in JPanelVolOpacity and JPanelVolOpacityRGB
      Returns:
      ViewJComponentHLUTBase the opacity component.
    • getSelectedTabIndex

      public int getSelectedTabIndex()
      Deprecated.
    • setSelectedTabIndex

      public void setSelectedTabIndex(int i)
      Deprecated.
    • getSelectedComponent

      public ViewJComponentVolOpacityBase getSelectedComponent(int _whichComp)
      Deprecated.
      Return the active image component.
      Parameters:
      _whichComp - true = imageA, false = imageB
      Returns:
      componentOpacity A or B.
    • getTabbedPane

      public JTabbedPane getTabbedPane()
      Deprecated.
      Accessor to the tabbed pane.
      Returns:
      JTabbedPane
    • isGradientMagnitudeOpacityEnabled

      public boolean isGradientMagnitudeOpacityEnabled()
      Deprecated.
      Return whether or not the opacity mapping based on gradient magnitude is enabled.
      Returns:
      boolean True if using gradient magnitude-based opacity mapping.
    • setGradientMagnitudeOpacityEnabled

      public void setGradientMagnitudeOpacityEnabled(boolean value)
      Deprecated.
      Return whether or not the opacity mapping based on gradient magnitude is enabled.
    • mouseClicked

      public void mouseClicked(MouseEvent event)
      Deprecated.
      Not used method.
      Specified by:
      mouseClicked in interface MouseListener
      Parameters:
      event - MouseEvent
    • mouseEntered

      public void mouseEntered(MouseEvent event)
      Deprecated.
      Not used method.
      Specified by:
      mouseEntered in interface MouseListener
      Parameters:
      event - MouseEvent
    • mouseExited

      public void mouseExited(MouseEvent event)
      Deprecated.
      Not used method.
      Specified by:
      mouseExited in interface MouseListener
      Parameters:
      event - MouseEvent
    • mousePressed

      public void mousePressed(MouseEvent event)
      Deprecated.
      Not used method.
      Specified by:
      mousePressed in interface MouseListener
      Parameters:
      event - MouseEvent
    • mouseReleased

      public void mouseReleased(MouseEvent event)
      Deprecated.
      Mouse release event.
      Specified by:
      mouseReleased in interface MouseListener
      Parameters:
      event - MouseEvent
    • setAdjustersEnabled

      public void setAdjustersEnabled(boolean enabled)
      Deprecated.
      This method will enable or disable the opacity panel's slider component and input text fields, based on the value of the boolean parameter passed into it.
      Parameters:
      enabled - boolean whether the adjusters should be enabled or disabled
    • stateChanged

      public void stateChanged(ChangeEvent event)
      Deprecated.
      ChangeListener for opacity slider changes.
      Specified by:
      stateChanged in interface ChangeListener
      Parameters:
      event - The change event.
    • updateSlider

      public void updateSlider(ViewJComponentVolOpacityBase childComponent)
      Deprecated.
      Adjust the opacity slider for the minor opacity changes.
      Parameters:
      childComponent - ViewJComponentVolOpacityBase reference
    • buildBlendPanel

      protected JPanel buildBlendPanel()
      Deprecated.
      Build the blend slider control panel.
      Returns:
      blendPanel built blend panel.
    • finalize

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

      protected Hashtable getLabelTableA()
      Deprecated.
      Build the hash table for the imageA opacity slider.
      Returns:
      labels built label hash table.
    • getLabelTableB

      protected Hashtable getLabelTableB()
      Deprecated.
      Build the hash table for the imageB opacity slider.
      Returns:
      labels built label hash table.
    • getLabelTableGM_A

      protected Hashtable getLabelTableGM_A()
      Deprecated.
      Build the hash table for the imageA GM opacity slider.
      Returns:
      labels built label hash table.
    • getLabelTableGM_B

      protected Hashtable getLabelTableGM_B()
      Deprecated.
      Build the hash table for the imageA GM opacity slider.
      Returns:
      labels built label hash table.
    • initBlendSliderLabels

      protected void initBlendSliderLabels()
      Deprecated.
      Initialize the blend slider labels.
    • loadGMImage

      protected boolean loadGMImage(String dName, String fName, boolean isImageA)
      Deprecated.
      Loads the gradient magnitude image instead of recalculating the image.
      Parameters:
      dName - String User specified directory name.
      fName - String GM image file name.
      isImageA - boolean Indicates GM imageA or GM imageB
      Returns:
      boolean Indicates loading GM image successful or not.
    • update

      public void update()
      Deprecated.