Class to render an OpenInventor scene in a Qt OpenGL window. More...
#include <Inventor/ViewerComponents/Qt/RenderArea.h>
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 SoNode * | getSceneGraph () 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 SoStereoParameters * | getStereoParameters () const |
bool | isRawStereoAvailable () |
QWidget * | getContainerWidget () |
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.
RenderAreaInteractive, RenderAreaExaminer, SceneInteractor, SceneExaminer
RenderArea::RenderArea | ( | QWidget * | parent | ) |
This constructor initializes the QOpenGLWidget using the default QSurfaceFormat.
virtual RenderArea::~RenderArea | ( | ) | [virtual] |
Destructor.
virtual void RenderArea::activateStereo | ( | bool | activated | ) | [virtual] |
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] |
Implements SiRenderAreaStereo.
bool RenderArea::isRawStereoAvailable | ( | ) |
Returns true if stereo buffering is enabled.
virtual bool RenderArea::isStereoActivated | ( | ) | const [virtual] |
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] |
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.