java.lang.Object
java.awt.Component
java.awt.Canvas
com.jogamp.newt.awt.NewtCanvasAWT
com.openinventor.inventor.viewercomponents.awt.newt.renderareas.RenderArea
All Implemented Interfaces:
com.jogamp.nativewindow.awt.AWTPrintLifecycle, com.jogamp.nativewindow.NativeSurfaceHolder, com.jogamp.nativewindow.NativeWindowHolder, com.jogamp.nativewindow.OffscreenLayerOption, com.jogamp.nativewindow.WindowClosingProtocol, com.jogamp.opengl.GLEventListener, IRenderArea, ImageObserver, MenuContainer, Serializable, EventListener, Accessible
Direct Known Subclasses:
RenderAreaInteractive

public class RenderArea extends com.jogamp.newt.awt.NewtCanvasAWT implements com.jogamp.opengl.GLEventListener, IRenderArea
See Also:
  • Constructor Details

    • RenderArea

      public RenderArea()
    • RenderArea

      public RenderArea(boolean enableStereo)
  • Method Details

    • setTransparencyType

      public void setTransparencyType(SoGLRenderAction.TransparencyTypes type)
      Description copied from interface: IRenderArea
      Sets the global transparency algorithm to use when rendering.
      Specified by:
      setTransparencyType in interface IRenderArea
      Parameters:
      type - the global transparency algorithm
    • getTransparencyType

      public SoGLRenderAction.TransparencyTypes getTransparencyType()
      Description copied from interface: IRenderArea
      Gets the global transparency algorithm to use when rendering.
      Specified by:
      getTransparencyType in interface IRenderArea
      Returns:
      the global transparency algorithm
    • setGLRenderAction

      public void setGLRenderAction(SoGLRenderAction ra)
      Description copied from interface: IRenderArea
      Sets the GLRenderAction used for rendering.
      Specified by:
      setGLRenderAction in interface IRenderArea
      Parameters:
      ra - the GLRenderAction used for rendering
    • getGLRenderAction

      public SoGLRenderAction getGLRenderAction()
      Description copied from interface: IRenderArea
      Gets the GLRenderAction used for rendering.
      Specified by:
      getGLRenderAction in interface IRenderArea
      Returns:
      the GLRenderAction used for rendering
    • getAntialiasingQuality

      public float getAntialiasingQuality()
      Description copied from interface: IRenderArea
      Gets the antialiasing quality value.
      Specified by:
      getAntialiasingQuality in interface IRenderArea
      Returns:
      the antialiasing quality, factor in the range [0.0,1.0].
    • setAntialiasingQuality

      public void setAntialiasingQuality(float quality)
      Description copied from interface: IRenderArea
      Sets the antialiasing quality value.

      Default value is 0.0. The value 0.0 turns off antialiasing.

      Specified by:
      setAntialiasingQuality in interface IRenderArea
      Parameters:
      quality - The quality is a factor in the range [0.0,1.0].
    • getAntialiasingMode

      public SoSceneManager.AntialiasingModes getAntialiasingMode()
      Description copied from interface: IRenderArea
      Gets the antialiasing mode.
      Specified by:
      getAntialiasingMode in interface IRenderArea
      Returns:
      the antialiasing algorithm
    • setAntialiasingMode

      public void setAntialiasingMode(SoSceneManager.AntialiasingModes mode)
      Description copied from interface: IRenderArea
      Sets the antialiasing mode.

      Default value is NO_ANTIALIASING which turns off antialiasing.

      Specified by:
      setAntialiasingMode in interface IRenderArea
      Parameters:
      mode - the antialiasing algorithm.
    • getStillSuperSamplingQuality

      public float getStillSuperSamplingQuality()
      Description copied from interface: IRenderArea
      Gets quality for supersampling when "still" (not interacting).
      Specified by:
      getStillSuperSamplingQuality in interface IRenderArea
      Returns:
      the quality for supersampling, factor in the range [0.0,1.0].
    • setStillSuperSamplingQuality

      public void setStillSuperSamplingQuality(float quality)
      Description copied from interface: IRenderArea
      Sets quality for supersampling when "still" (not interacting).

      When quality is greater than 0, still images will be automatically supersampled. Default value is 0.0. Use the value 0.0 to turn off still supersampling. 0.5 is a typical value.

      Specified by:
      setStillSuperSamplingQuality in interface IRenderArea
      Parameters:
      quality - The quality is a factor in the range [0.0,1.0].
    • getStillSuperSamplingDelay

      public int getStillSuperSamplingDelay()
      Description copied from interface: IRenderArea
      Gets delay for supersampling when "still" (not interacting).
      Specified by:
      getStillSuperSamplingDelay in interface IRenderArea
      Returns:
      the delay for supersampling in milliseconds.
    • setStillSuperSamplingDelay

      public void setStillSuperSamplingDelay(int delay)
      Description copied from interface: IRenderArea
      Sets delay for supersampling when "still" (not interacting).

      If greater than 0, images will be supersampled after the specified delay. Default value is 0. The delay is in milliseconds.

      Specified by:
      setStillSuperSamplingDelay in interface IRenderArea
      Parameters:
      delay - The delay for supersampling in milliseconds.
    • getComponent

      public Canvas getComponent()
      Description copied from interface: IRenderArea
      Gets the parent component of this render area.
      Specified by:
      getComponent in interface IRenderArea
      Returns:
      the parent component
    • activateStereo

      public void activateStereo(boolean activated)
      Description copied from interface: IRenderArea
      Activates or deactivates raw stereo.
      Specified by:
      activateStereo in interface IRenderArea
      Parameters:
      activated - true to activate raw stereo
    • isRawStereoAvailable

      public boolean isRawStereoAvailable()
      Description copied from interface: IRenderArea
      Gets availability of raw stereo.
      Specified by:
      isRawStereoAvailable in interface IRenderArea
      Returns:
      true if the raw stereo is available
    • setSceneGraph

      public void setSceneGraph(SoNode sceneGraph)
      Description copied from interface: IRenderArea
      Sets the scene graph. This is the Open Inventor scene which will be traversed for rendering and event processing.
      Specified by:
      setSceneGraph in interface IRenderArea
      Parameters:
      sceneGraph - the scene graph
    • scheduleRedraw

      public void scheduleRedraw()
      Description copied from interface: IRenderArea
      Schedules a redraw for some time in the near future.
      Specified by:
      scheduleRedraw in interface IRenderArea
    • init

      public void init(com.jogamp.opengl.GLAutoDrawable drawable)
      Specified by:
      init in interface com.jogamp.opengl.GLEventListener
    • dispose

      public void dispose(com.jogamp.opengl.GLAutoDrawable drawable)
      Specified by:
      dispose in interface com.jogamp.opengl.GLEventListener
    • dispose

      public void dispose()
      Description copied from interface: IRenderArea
      Dispose area resources.
      Specified by:
      dispose in interface IRenderArea
    • display

      public void display(com.jogamp.opengl.GLAutoDrawable drawable)
      Specified by:
      display in interface com.jogamp.opengl.GLEventListener
    • reshape

      public void reshape(com.jogamp.opengl.GLAutoDrawable drawable, int x, int y, int width, int height)
      Specified by:
      reshape in interface com.jogamp.opengl.GLEventListener