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 Detail

      • 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.
      • render

        SiRenderArea.RenderStatus 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.
      • 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.
      • 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.