Interface SiRenderArea

All Known Implementing Classes:
SoOffscreenRenderArea, SoRenderAreaCore

public interface SiRenderArea
RenderArea interface. This interface provides the list of methods that a renderArea classs must define.

RenderArea

  • Method Details

    • onStartRender

      Returns the event handler that raises when a new render starts.
    • setClearPolicy

      void setClearPolicy(SiRenderArea.ClearPolicies policy)
      Defines the color buffer and depth buffer clear policy. See also setClearColor and setClearDepth.

      Parameters:
      policy - color buffer and depth buffer clear policy.
    • getSize

      SbVec2i32 getSize()
      See Also:
    • render

      Render the managed scene graph (see setSceneGraph). See RenderStatus documentation for details on the returned value.
    • setSceneGraph

      void setSceneGraph(SoNode newScene)
      Defines the scene graph which is managed here. This is the Open Inventor scene which will be traversed for rendering and event processing.

      Parameters:
      newScene - scene graph.
    • getSceneGraph

      SoNode getSceneGraph()
      See Also:
    • getClearDepth

      float getClearDepth()
      See Also:
    • getClearColor

      SbColorRGBA getClearColor()
      See Also:
    • setClearDepth

      void setClearDepth(float depth)
      Defines the depth value used when the depth buffer is cleared. See also setClearPolicy.

      Parameters:
      depth - value used to clear the depth buffer.
    • getClearPolicy

      SiRenderArea.ClearPolicies getClearPolicy()
      See Also:
    • setSize

      void setSize(SbVec2i32 size)
      Defines the size to use for rendering.
    • setClearColor

      void setClearColor(SbColorRGBA color)
      Defines the RGBA value used when the color buffer is cleared. See also setClearPolicy.

      Parameters:
      color - RGBA value used to clear the color buffer.