Class VolumeCanvas3D

  • All Implemented Interfaces:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.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:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.awt.Canvas

        java.awt.Canvas.AccessibleAWTCanvas
      • Nested classes/interfaces inherited from class java.awt.Component

        java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean m_bTestFrameRate  
      protected double m_dAccumulatedTime
      Framerate Performance parameters:
      protected double m_dFrameRate
      Framerate Performance parameters:
      protected double m_dLastTime
      Framerate Performance parameters:
      protected int m_iAccumulatedFrameCount
      Framerate Performance parameters:
      protected int m_iFrameCount
      Framerate Performance parameters:
      protected int m_iMaxTimer
      Framerate Performance parameters:
      protected int m_iTimer
      Framerate Performance parameters:
      private static long serialVersionUID
      Use serialVersionUID for interoperability.
      • Fields inherited from class javax.media.j3d.Canvas3D

        FIELD_ALL, FIELD_LEFT, FIELD_RIGHT
      • Fields inherited from class java.awt.Component

        accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
      • Fields inherited from interface java.awt.image.ImageObserver

        ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
    • Constructor Summary

      Constructors 
      Constructor Description
      VolumeCanvas3D​(java.awt.GraphicsConfiguration kGraphicsConfiguration)
      Create extension of Canvas3D.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean GetTestFrameRate()  
      protected void MeasureTime()
      Measure time
      void paint​(java.awt.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.
      void postSwap()  
      private boolean queryBooleanProperty​(java.lang.String kStrPropertyName)
      Query the boolean state of the specified property in a Canvas3D.
      private int queryIntegerProperty​(java.lang.String kStrPropertyName)
      Query the integer state of the specified property in a Canvas3D.
      void ResetTime()
      Resets time
      void SetTestFrameRate​(boolean bTest)  
      boolean supportsTexture3D()
      Check to see if 3D textures are supported by the graphics card.
      void update​(java.awt.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.
      protected void UpdateFrameCount()
      Update frame count
      • Methods inherited from class javax.media.j3d.Canvas3D

        addNotify, getCenterEyeInImagePlate, getDoubleBufferAvailable, getDoubleBufferEnable, getGraphics2D, getGraphicsContext3D, getImagePlateToVworld, getInverseVworldProjection, getLeftEyeInImagePlate, getLeftManualEyeInImagePlate, getLocationOnScreen, getMonoscopicViewPolicy, getOffScreenBuffer, getOffScreenLocation, getOffScreenLocation, getPhysicalHeight, getPhysicalWidth, getPixelLocationFromImagePlate, getPixelLocationInImagePlate, getPixelLocationInImagePlate, getRightEyeInImagePlate, getRightManualEyeInImagePlate, getSceneAntialiasingAvailable, getScreen3D, getStereoAvailable, getStereoEnable, getView, getVworldProjection, getVworldToImagePlate, isOffScreen, isRendererRunning, isShadingLanguageSupported, postRender, preRender, queryProperties, removeNotify, renderField, renderOffScreenBuffer, setDoubleBufferEnable, setLeftManualEyeInImagePlate, setMonoscopicViewPolicy, setOffScreenBuffer, setOffScreenLocation, setOffScreenLocation, setRightManualEyeInImagePlate, setStereoEnable, startRenderer, stopRenderer, swap, waitForOffScreenRendering
      • Methods inherited from class java.awt.Canvas

        createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy
      • Methods inherited from class java.awt.Component

        action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setMixingCutoutShape, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Use serialVersionUID for interoperability.
        See Also:
        Constant Field Values
      • 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 Detail

      • VolumeCanvas3D

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

      • paint

        public void paint​(java.awt.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​(java.awt.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 java.awt.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​(java.lang.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​(java.lang.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