SiRenderArea Class Reference
[Viewer Components]

VSG extension RenderArea interface. More...

#include <Inventor/ViewerComponents/SiRenderArea.h>

Inheritance diagram for SiRenderArea:
openinventor::inventor::viewercomponents::qt::qml::RenderArea RenderArea SoOffscreenRenderArea SoRenderAreaCore openinventor::inventor::viewercomponents::qt::qml::RenderAreaInteractive RenderAreaInteractive openinventor::inventor::viewercomponents::qt::qml::RenderAreaOrbiter RenderAreaExaminer RenderAreaOrbiter

List of all members.

Classes

struct  RenderEventArg
 Structure given when a start render event is raised. More...

Public Types

enum  ClearPolicy {
  NONE,
  COLORBUFFER,
  DEPTHBUFFER,
  COLORBUFFER_AND_DEPTHBUFFER
}
enum  RenderStatus {
  ABORTED,
  INTERACTIVE,
  STILL
}

Public Member Functions

virtual void setSceneGraph (SoNode *newScene)=0
virtual SoNodegetSceneGraph () const =0
virtual void setClearPolicy (ClearPolicy policy)=0
virtual ClearPolicy getClearPolicy () const =0
virtual void setClearColor (const SbColorRGBA &color)=0
virtual SbColorRGBA getClearColor () const =0
virtual void setClearDepth (float depth)=0
virtual float getClearDepth () const =0
virtual void setSize (const SbVec2i32 &size)=0
virtual SbVec2i32 getSize () const =0
virtual RenderStatus render ()=0
virtual SbEventHandler
< RenderEventArg & > & 
onStartRender ()=0

Detailed Description

VSG extension RenderArea interface.

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

SEE ALSO

RenderArea


Member Enumeration Documentation

Policy values to clear color and depth buffers beforing rendering.

Enumerator:
NONE 

Do not clear both color buffer and depth buffer beforing rendering.

COLORBUFFER 

Clear only color buffer beforing rendering.

DEPTHBUFFER 

Clear only depth buffer beforing rendering.

COLORBUFFER_AND_DEPTHBUFFER 

Clear both color buffer and depth buffer beforing rendering.

Returned by the render method.

Enumerator:
ABORTED 

The frame rendering has been ended before its completion.

INTERACTIVE 

The frame has been rendered in interactive mode (some shapes may have been rendered with low quality settings).

STILL 

The frame has been rendered in still mode.


Member Function Documentation

virtual SbColorRGBA SiRenderArea::getClearColor (  )  const [pure virtual]
virtual float SiRenderArea::getClearDepth (  )  const [pure virtual]
virtual ClearPolicy SiRenderArea::getClearPolicy (  )  const [pure virtual]
virtual SoNode* SiRenderArea::getSceneGraph (  )  const [pure virtual]
virtual SbVec2i32 SiRenderArea::getSize (  )  const [pure virtual]
virtual SbEventHandler<RenderEventArg&>& SiRenderArea::onStartRender (  )  [pure virtual]

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

Implemented in SoOffscreenRenderArea, RenderArea, and SoRenderAreaCore.

virtual RenderStatus SiRenderArea::render (  )  [pure virtual]

Render the managed scene graph (see setSceneGraph).

See RenderStatus documentation for details on the returned value.

Implemented in SoOffscreenRenderArea, and SoRenderAreaCore.

virtual void SiRenderArea::setClearColor ( const SbColorRGBA color  )  [pure virtual]

Defines the RGBA value used when the color buffer is cleared.

See also setClearPolicy.

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

Implemented in SoOffscreenRenderArea, openinventor::inventor::viewercomponents::qt::qml::RenderArea, RenderArea, and SoRenderAreaCore.

virtual void SiRenderArea::setClearDepth ( float  depth  )  [pure virtual]

Defines the depth value used when the depth buffer is cleared.

See also setClearPolicy.

Parameters:
depth value used to clear the depth buffer.

Implemented in SoOffscreenRenderArea, openinventor::inventor::viewercomponents::qt::qml::RenderArea, RenderArea, and SoRenderAreaCore.

virtual void SiRenderArea::setClearPolicy ( ClearPolicy  policy  )  [pure virtual]

Defines the color buffer and depth buffer clear policy.

See also setClearColor and setClearDepth.

Parameters:
policy color buffer and depth buffer clear policy.

Implemented in SoOffscreenRenderArea, openinventor::inventor::viewercomponents::qt::qml::RenderArea, RenderArea, and SoRenderAreaCore.

virtual void SiRenderArea::setSceneGraph ( SoNode newScene  )  [pure virtual]

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.

Implemented in SoOffscreenRenderArea, openinventor::inventor::viewercomponents::qt::qml::RenderArea, openinventor::inventor::viewercomponents::qt::qml::RenderAreaInteractive, RenderArea, RenderAreaInteractive, and SoRenderAreaCore.

virtual void SiRenderArea::setSize ( const SbVec2i32 size  )  [pure virtual]

The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/