Class to render an OpenInventor scene in a Qt OpenGL window. More...
#include <Inventor/ViewerComponents/Qt/RenderArea.h>
Inheritance diagram for RenderArea:Public Member Functions | |
| RenderArea (QWidget *parent) | |
| This constructor initializes the QOpenGLWidget using the default QSurfaceFormat. | |
| virtual | ~RenderArea () |
| Destructor. | |
| virtual void | setSceneGraph (SoNode *sceneGraph) |
| Sets the scene graph to render. | |
| virtual SoNode * | getSceneGraph () const |
| Gets the scene graph to render. | |
| virtual void | setClearPolicy (ClearPolicy policy) |
| Defines the color buffer and depth buffer clear policy. | |
| virtual ClearPolicy | getClearPolicy () const |
| Gets the color buffer and depth buffer clear policy. | |
| virtual void | setClearColor (const SbColorRGBA &color) |
| Defines the RGBA value used when the color buffer is cleared. | |
| virtual SbColorRGBA | getClearColor () const |
| Gets the RGBA value used when the color buffer is cleared. | |
| virtual void | setClearDepth (float depth) |
| Defines the depth value used when the depth buffer is cleared. | |
| virtual float | getClearDepth () const |
| Gets the depth value used when the depth buffer is cleared. | |
| virtual void | setSize (const SbVec2i32 &size) |
| Defines the size used for rendering. | |
| virtual SbVec2i32 | getSize () const |
| Gets the size used for rendering. | |
| virtual void | setGLRenderAction (SoGLRenderAction *glAction) |
| Defines the render action used for rendering. | |
| virtual SoGLRenderAction * | getGLRenderAction () const |
| Returns the render action used for rendering. | |
| virtual void | setTransparencyType (SoGLRenderAction::TransparencyType type) |
| Sets the global transparency algorithm to use when rendering. | |
| virtual SoGLRenderAction::TransparencyType | getTransparencyType () const |
| Gets the global transparency algorithm to use when rendering. | |
| virtual void | setAntialiasingMode (SoSceneManager::AntialiasingMode mode) override |
| Define the antialiasing mode. | |
| virtual SoSceneManager::AntialiasingMode | getAntialiasingMode () const override |
| virtual void | setAntialiasingQuality (float quality) override |
| Define the antialiasing quality value. | |
| virtual float | getAntialiasingQuality () const override |
| virtual void | setStillSuperSamplingQuality (float quality) override |
| Set quality for supersampling when "still" (not interacting). | |
| virtual float | getStillSuperSamplingQuality () const override |
| virtual void | setStillSuperSamplingDelay (unsigned int delay) override |
| Set delay for supersampling when "still" (not interacting). | |
| virtual unsigned int | getStillSuperSamplingDelay () const override |
| virtual SbEventHandler< RenderEventArg & > & | onStartRender () |
| Returns the event handler that raises when a new render starts. | |
| virtual void | activateStereo (bool activated) |
| Activate/Deactivate stereo. | |
| virtual bool | isStereoActivated () const |
| Returns true if stereo rendering is currently activated. | |
| virtual void | setStereoParameters (SoStereoParameters *parameters) |
| Defines the stereo parameters. | |
| virtual SoStereoParameters * | getStereoParameters () const |
| bool | isRawStereoAvailable () |
| Returns true if stereo buffering is enabled. | |
| QWidget * | getContainerWidget () |
Additional Inherited Members | |
Public Types inherited from SiRenderArea | |
| enum | ClearPolicy { NONE , COLORBUFFER , DEPTHBUFFER , COLORBUFFER_AND_DEPTHBUFFER } |
| Policy values to clear color and depth buffers beforing rendering. More... | |
| enum | RenderStatus { ABORTED , INTERACTIVE , STILL } |
| Returned by the render method. More... | |
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
Definition at line 45 of file RenderArea.h.
| RenderArea::RenderArea | ( | QWidget * | parent | ) |
This constructor initializes the QOpenGLWidget using the default QSurfaceFormat.
|
virtual |
Destructor.
|
virtual |
|
overridevirtual |
Implements SiRenderAreaAntialiasing.
|
overridevirtual |
Implements SiRenderAreaAntialiasing.
|
virtual |
Gets the RGBA value used when the color buffer is cleared.
Implements SiRenderArea.
|
virtual |
Gets the depth value used when the depth buffer is cleared.
Implements SiRenderArea.
|
virtual |
Gets the color buffer and depth buffer clear policy.
Implements SiRenderArea.
|
inline |
Definition at line 219 of file RenderArea.h.
|
virtual |
Returns the render action used for rendering.
This method returns nullptr if the show() of the main window is not done.
|
virtual |
Gets the scene graph to render.
Implements SiRenderArea.
|
virtual |
Gets the size used for rendering.
Implements SiRenderArea.
|
virtual |
Implements SiRenderAreaStereo.
|
overridevirtual |
Implements SiRenderAreaStillSuperSampling.
|
overridevirtual |
Implements SiRenderAreaStillSuperSampling.
|
virtual |
Gets the global transparency algorithm to use when rendering.
| bool RenderArea::isRawStereoAvailable | ( | ) |
Returns true if stereo buffering is enabled.
|
virtual |
Returns true if stereo rendering is currently activated.
Implements SiRenderAreaStereo.
|
virtual |
Returns the event handler that raises when a new render starts.
Implements SiRenderArea.
|
overridevirtual |
Define the antialiasing mode.
| mode | The antialiasing algorithm. Default is NO_ANTIALIASING which turns off antialiasing. |
Implements SiRenderAreaAntialiasing.
|
overridevirtual |
Define the antialiasing quality value.
| quality | The quality is a factor in the range [0.0,1.0]. Default is 0.0. The value 0.0 turns off antialiasing. |
Implements SiRenderAreaAntialiasing.
|
virtual |
Defines the RGBA value used when the color buffer is cleared.
Default is transparent black (0,0,0,0).
Implements SiRenderArea.
|
virtual |
Defines the depth value used when the depth buffer is cleared.
Default is 1. Range is 0..1.
Implements SiRenderArea.
|
virtual |
Defines the color buffer and depth buffer clear policy.
Use enum ClearPolicy Default is COLORBUFFER_AND_DEPTHBUFFER.
Implements SiRenderArea.
|
virtual |
Defines the render action used for rendering.
|
virtual |
|
virtual |
Defines the size used for rendering.
Implements SiRenderArea.
|
virtual |
Defines the stereo parameters.
Implements SiRenderAreaStereo.
|
overridevirtual |
Set delay for supersampling when "still" (not interacting).
If greater than 0, images will be supersampled after the specified delay.
| delay | The delay is in milliseconds. If greater than 0, images will be supersampled after the specified delay See also setStillSuperSamplingQuality. |
Implements SiRenderAreaStillSuperSampling.
|
overridevirtual |
Set quality for supersampling when "still" (not interacting).
When quality is greater than 0, still images will be automatically supersampled.
| quality | The quality is a factor in the range [0.0,1.0]. Default value is 0.0. Use the value 0.0 to turn off still supersampling. 0.5 is a typical value. See also setStillSuperSamplingDelay. |
Implements SiRenderAreaStillSuperSampling.
|
virtual |
Sets the global transparency algorithm to use when rendering.
| type | The global transparency algorithm |