Class JPanelRenderOptionsRayCast

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

public class JPanelRenderOptionsRayCast extends JPanelRendererJ3D
Dialog to turn bounding box of surface renderer on and off, and to change the color of the frame.
See Also:
  • Field Details

    • serialVersionUID

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

      private JCheckBox blurBox
      Blur image check box.
    • buttonPanel

      private JPanel buttonPanel
      Button Panel.
    • colorButton

      private JButton colorButton
      Color button for changing color.
    • colorButtonBackground

      private JButton colorButtonBackground
      Color button for changing z color.
    • colorChooser

      private ViewJColorChooser colorChooser
      Color chooser dialog.
    • diffuseButton

      private JButton diffuseButton
      Diffuse color button for vertex material.
    • m_kRadioGroupMaxRenExtent

      private ButtonGroup m_kRadioGroupMaxRenExtent
      DOCUMENT ME!
    • m_kRadioMaxRenExtent_1024

      private JRadioButton m_kRadioMaxRenExtent_1024
      DOCUMENT ME!
    • m_kRadioMaxRenExtent_128

      private JRadioButton m_kRadioMaxRenExtent_128
      DOCUMENT ME!
    • m_kRadioMaxRenExtent_256

      private JRadioButton m_kRadioMaxRenExtent_256
      DOCUMENT ME!
    • m_kRadioMaxRenExtent_512

      private JRadioButton m_kRadioMaxRenExtent_512
      DOCUMENT ME!
    • m_kRadioMaxRenExtent_64

      private JRadioButton m_kRadioMaxRenExtent_64
      Radio Button Group for the Render Image Target size of the raycast rendered image. Target sizes options are preset to be typical texture sizes:
    • myParent

      private VolumeRendererRayCast myParent
      Volume rendering parent frame.
    • radioButtonGroupProjections

      private ButtonGroup radioButtonGroupProjections
      Button group for projections.
    • radioButtonOrthographic

      private JRadioButton radioButtonOrthographic
      Radio Button for Orthographic rendering.
    • radioButtonPerspective

      private JRadioButton radioButtonPerspective
      Radio Button for Perspective rendering.
    • scroller

      private JScrollPane scroller
      Scroll pane.
    • scrollPanel

      Scroll panel that holding the all the control components.
    • spaceText

      private JTextField spaceText
      Text field of the ray trace space size.
    • specularButton

      private JButton specularButton
      Specular color button for vertex material.
    • stepText

      private JTextField stepText
      Text field of the ray trace step size.
  • Constructor Details

    • JPanelRenderOptionsRayCast

      public JPanelRenderOptionsRayCast(VolumeRendererRayCast parent)
      Creates new dialog for turning bounding box frame on and off.
      Parameters:
      parent - parent reference
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Changes color of box frame and button if color button was pressed; turns bounding box on and off if checkbox was pressed; and closes dialog if "Close" button was pressed.
      Specified by:
      actionPerformed in interface ActionListener
      Specified by:
      actionPerformed in class JPanelRendererBase
      Parameters:
      event - Event that triggered function.
    • disposeLocal

      public void disposeLocal(boolean flag)
      Dispose global variables.
      Parameters:
      flag - dispose super or not.
    • getMainPanel

      public JPanel getMainPanel()
      Get the main control panel.
      Specified by:
      getMainPanel in class JPanelRendererBase
      Returns:
      JPanel main panel
    • itemStateChanged

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

      public void resizePanel(int panelWidth, int frameHeight)
      Resizig the control panel with ViewJFrameVolumeView's frame width and height.
      Overrides:
      resizePanel in class JPanelRendererBase
      Parameters:
      panelWidth - DOCUMENT ME!
      frameHeight - DOCUMENT ME!
    • setRenderPerspective

      public void setRenderPerspective(boolean bEnable)
      Enable perspective projection rendering; otherwise use orthographic projection.
      Parameters:
      bEnable - true to enable perspective projection
    • setSpaceSize

      public void setSpaceSize()
      Enable perspective projection rendering; otherwise use orthographic projection.
    • setStepSize

      public void setStepSize()
      Enable perspective projection rendering; otherwise use orthographic projection.
    • setVisible

      public void setVisible(boolean status)
      Makes the dialog visible next to the parent frame. If this makes it go off the screen, puts the dialog in the center of the screen.
      Overrides:
      setVisible in class JPanelRendererBase
      Parameters:
      status - Flag indicating if the dialog should be visible.
    • finalize

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

      protected void setBoxColor(JButton button, Color color)
      Calls the appropriate method in the parent frame.
      Parameters:
      button - color button reference.
      color - Color to set box frame to.
    • init

      private void init()
      Initializes GUI components.