RenderArea Class Reference
[Qt ViewerComponents]

Class to render an OpenInventor scene in a Qt OpenGL window. More...

#include <Inventor/ViewerComponents/Qt/RenderArea.h>

Inheritance diagram for RenderArea:
SiRenderArea SiRenderAreaStereo RenderAreaInteractive RenderAreaExaminer

List of all members.

Classes

struct  RenderAreaSaveRestore
 Store FBO information to provide save/restore mechanism.

Public Member Functions

 RenderArea (QWidget *parent)
virtual ~RenderArea ()
virtual void setSceneGraph (SoNode *sceneGraph)
virtual SoNodegetSceneGraph () const
virtual void setClearPolicy (ClearPolicy policy)
virtual ClearPolicy getClearPolicy () const
virtual void setClearColor (const SbColorRGBA &color)
virtual SbColorRGBA getClearColor () const
virtual void setClearDepth (float depth)
virtual float getClearDepth () const
virtual void setSize (const SbVec2i32 &size)
virtual SbVec2i32 getSize () const
virtual SbEventHandler
< RenderEventArg & > & 
onStartRender ()
virtual void activateStereo (bool activated)
virtual bool isStereoActivated () const
virtual void setStereoParameters (SoStereoParameters *parameters)
virtual SoStereoParametersgetStereoParameters () const
bool isRawStereoAvailable ()
QWidget * getContainerWidget ()

Detailed Description

Class to render an OpenInventor scene in a Qt OpenGL window.

RenderArea creates a 3D rendering window as a child of another widget. Use the setSceneGraph() method to specify the scene graph to be rendered.

A SceneExaminer node is typically used to allow the user to manipulate the scene camera.

SEE ALSO

RenderAreaInteractive, RenderAreaExaminer, SceneInteractor, SceneExaminer


Constructor & Destructor Documentation

RenderArea::RenderArea ( QWidget *  parent  ) 

This constructor initializes the QOpenGLWidget using the default QSurfaceFormat.

virtual RenderArea::~RenderArea (  )  [virtual]

Destructor.


Member Function Documentation

virtual void RenderArea::activateStereo ( bool  activated  )  [virtual]

Activate/Deactivate stereo.

Implements SiRenderAreaStereo.

Reimplemented in RenderAreaInteractive.

virtual SbColorRGBA RenderArea::getClearColor (  )  const [virtual]

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

Implements SiRenderArea.

virtual float RenderArea::getClearDepth (  )  const [virtual]

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

Implements SiRenderArea.

virtual ClearPolicy RenderArea::getClearPolicy (  )  const [virtual]

Gets the color buffer and depth buffer clear policy.

Implements SiRenderArea.

QWidget* RenderArea::getContainerWidget (  )  [inline]
virtual SoNode* RenderArea::getSceneGraph (  )  const [virtual]

Gets the scene graph to render.

Implements SiRenderArea.

virtual SbVec2i32 RenderArea::getSize (  )  const [virtual]

Gets the size used for rendering.

Implements SiRenderArea.

virtual SoStereoParameters* RenderArea::getStereoParameters (  )  const [virtual]
bool RenderArea::isRawStereoAvailable (  ) 

Returns true if stereo buffering is enabled.

virtual bool RenderArea::isStereoActivated (  )  const [virtual]
See also:
activateStereo().

Implements SiRenderAreaStereo.

virtual SbEventHandler<RenderEventArg&>& RenderArea::onStartRender (  )  [virtual]

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

Implements SiRenderArea.

virtual void RenderArea::setClearColor ( const SbColorRGBA color  )  [virtual]

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

Default is transparent black (0,0,0,0).

Implements SiRenderArea.

virtual void RenderArea::setClearDepth ( float  depth  )  [virtual]

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

Default is 1. Range is 0..1.

Implements SiRenderArea.

virtual void RenderArea::setClearPolicy ( ClearPolicy  policy  )  [virtual]

Defines the color buffer and depth buffer clear policy.

Use enum ClearPolicy Default is COLORBUFFER_AND_DEPTHBUFFER.

Implements SiRenderArea.

virtual void RenderArea::setSceneGraph ( SoNode sceneGraph  )  [virtual]

Sets the scene graph to render.

Implements SiRenderArea.

Reimplemented in RenderAreaInteractive.

virtual void RenderArea::setSize ( const SbVec2i32 size  )  [virtual]

Defines the size used for rendering.

Implements SiRenderArea.

virtual void RenderArea::setStereoParameters ( SoStereoParameters parameters  )  [virtual]

Defines the stereo parameters.

Implements SiRenderAreaStereo.


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

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/