Class VolumeCanvas3D

java.lang.Object
java.awt.Component
java.awt.Canvas
javax.media.j3d.Canvas3D
gov.nih.mipav.view.renderer.J3D.VolumeCanvas3D
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
PlaneRender, RenderViewBase

public class VolumeCanvas3D extends javax.media.j3d.Canvas3D
Extension of Canvas3D to allow for customization as needed.
See Also:
  • Field Details

    • serialVersionUID

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

      private boolean m_bTestFrameRate
    • m_dLastTime

      protected double m_dLastTime
      Framerate Performance parameters:
    • m_dAccumulatedTime

      protected double m_dAccumulatedTime
      Framerate Performance parameters:
    • m_dFrameRate

      protected double m_dFrameRate
      Framerate Performance parameters:
    • m_iFrameCount

      protected int m_iFrameCount
      Framerate Performance parameters:
    • m_iAccumulatedFrameCount

      protected int m_iAccumulatedFrameCount
      Framerate Performance parameters:
    • m_iTimer

      protected int m_iTimer
      Framerate Performance parameters:
    • m_iMaxTimer

      protected int m_iMaxTimer
      Framerate Performance parameters:
  • Constructor Details

    • VolumeCanvas3D

      public VolumeCanvas3D(GraphicsConfiguration kGraphicsConfiguration)
      Create extension of Canvas3D.
      Parameters:
      kGraphicsConfiguration - see the notes under Canvas3D for this parameter.
  • Method Details

    • paint

      public void paint(Graphics kGraphics)
      Override for Canvas3D method which uses the paint callback to track when it is possible to render into the canvas but makes sure that the default Toolkit's graphics state is synchronized just in case the window system has buffered graphics events.
      Overrides:
      paint in class javax.media.j3d.Canvas3D
      Parameters:
      kGraphics - the graphics context
    • supportsTexture3D

      public boolean supportsTexture3D()
      Check to see if 3D textures are supported by the graphics card.
      Returns:
      boolean true supported,false not support
    • update

      public void update(Graphics kGraphics)
      Override for Canvas3D method which uses the paint callback to track when it is possible to render into the canvas but makes sure that the default Toolkit's graphics state is synchronized just in case the window system has buffered graphics events.
      Overrides:
      update in class Canvas
      Parameters:
      kGraphics - the graphics context
    • ResetTime

      public void ResetTime()
      Resets time
    • MeasureTime

      protected void MeasureTime()
      Measure time
    • UpdateFrameCount

      protected void UpdateFrameCount()
      Update frame count
    • SetTestFrameRate

      public void SetTestFrameRate(boolean bTest)
    • GetTestFrameRate

      public boolean GetTestFrameRate()
    • postSwap

      public void postSwap()
      Overrides:
      postSwap in class javax.media.j3d.Canvas3D
    • queryBooleanProperty

      private boolean queryBooleanProperty(String kStrPropertyName)
      Query the boolean state of the specified property in a Canvas3D.
      Parameters:
      kStrPropertyName - name of the Boolean value property to query
      Returns:
      State of requested Canvas3D property
    • queryIntegerProperty

      private int queryIntegerProperty(String kStrPropertyName)
      Query the integer state of the specified property in a Canvas3D.
      Parameters:
      kStrPropertyName - name of the Integer value property to query
      Returns:
      State of requested Canvas3D property