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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Policy values to clear color and depth buffers beforing rendering.static class
Structure given when a start render event is raised.static enum
Returned by the render method. -
Method Summary
Modifier and TypeMethodDescriptionfloat
getSize()
Returns the event handler that raises when a new render starts.render()
Render the managed scene graph (see setSceneGraph).void
setClearColor
(SbColorRGBA color) Defines the RGBA value used when the color buffer is cleared.void
setClearDepth
(float depth) Defines the depth value used when the depth buffer is cleared.void
Defines the color buffer and depth buffer clear policy.void
setSceneGraph
(SoNode newScene) Defines the scene graph which is managed here.void
Defines the size to use for rendering.
-
Method Details
-
onStartRender
SbEventHandler<SiRenderArea.RenderEventArg> onStartRender()Returns the event handler that raises when a new render starts. -
setClearPolicy
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
SiRenderArea.RenderStatus render()Render the managed scene graph (see setSceneGraph). See RenderStatus documentation for details on the returned value. -
setSceneGraph
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
Defines the size to use for rendering. -
setClearColor
Defines the RGBA value used when the color buffer is cleared. See also setClearPolicy.- Parameters:
color
- RGBA value used to clear the color buffer.
-