4#include <Inventor/sys/port.h>
6#if defined(_WIN32) && !defined(OIV_DISABLE_AUTOLINK) && !defined(QtViewerComponents_EXPORTS)
7# if !defined(__QT_VIEWER_COMPONENTS_LIB)
9# define __QT_VIEWER_COMPONENTS_LIB "fei_inventor_QtViewerComponentsD.lib"
11# define __QT_VIEWER_COMPONENTS_LIB "fei_inventor_QtViewerComponents.lib"
14# pragma comment(lib, __QT_VIEWER_COMPONENTS_LIB)
19#include <Inventor/misc/SoRef.h>
20#include <Inventor/sys/SoGL.h>
21#include <Inventor/ViewerComponents/SoRenderAreaCore.h>
22#include <Inventor/actions/SoAction.h>
23#include <Inventor/SbColorRGBA.h>
25#include <Inventor/sys/port.h>
28class QOpenGLPaintDevice;
221 return m_containerWidget;
231 virtual RenderStatus
render();
236 virtual bool event( QEvent* e );
243 virtual void initializeGL();
252 virtual void resizeEvent( QResizeEvent* e );
257 virtual void exposeEvent( QExposeEvent* e );
268 ClearPolicy m_clearPolicy;
291 float m_antialiasingQuality;
296 unsigned int m_stillAntialiasingDelay;
301 float m_stillAntialiasingQuality;
304 QWidget* m_containerWidget;
307 struct RenderAreaSaveRestore
309 RenderAreaSaveRestore();
310 virtual ~RenderAreaSaveRestore();
318 GLuint m_depthStencilTextureId;
326 void saveRenderArea() {}
330 void restoreRenderArea() {}
338 QOpenGLContext* m_qtContext;
339 QOpenGLPaintDevice* m_device;
Class to render an OpenInventor scene in a Qt OpenGL window.
virtual SbColorRGBA getClearColor() const
Gets the RGBA value used when the color buffer is cleared.
virtual void setAntialiasingMode(SoSceneManager::AntialiasingMode mode) override
Define the antialiasing mode.
virtual void setAntialiasingQuality(float quality) override
Define the antialiasing quality value.
bool isRawStereoAvailable()
Returns true if stereo buffering is enabled.
virtual void setStillSuperSamplingDelay(unsigned int delay) override
Set delay for supersampling when "still" (not interacting).
virtual void setGLRenderAction(SoGLRenderAction *glAction)
Defines the render action used for rendering.
virtual void setSceneGraph(SoNode *sceneGraph)
Sets the scene graph to render.
QWidget * getContainerWidget()
virtual void setStillSuperSamplingQuality(float quality) override
Set quality for supersampling when "still" (not interacting).
virtual void setTransparencyType(SoGLRenderAction::TransparencyType type)
Sets the global transparency algorithm to use when rendering.
RenderArea(QWidget *parent)
This constructor initializes the QOpenGLWidget using the default QSurfaceFormat.
virtual void activateStereo(bool activated)
Activate/Deactivate stereo.
virtual SbEventHandler< RenderEventArg & > & onStartRender()
Returns the event handler that raises when a new render starts.
virtual SoGLRenderAction::TransparencyType getTransparencyType() const
Gets the global transparency algorithm to use when rendering.
virtual SoNode * getSceneGraph() const
Gets the scene graph to render.
virtual unsigned int getStillSuperSamplingDelay() const override
virtual ClearPolicy getClearPolicy() const
Gets the color buffer and depth buffer clear policy.
virtual SbVec2i32 getSize() const
Gets the size used for rendering.
virtual SoGLRenderAction * getGLRenderAction() const
Returns the render action used for rendering.
virtual SoSceneManager::AntialiasingMode getAntialiasingMode() const override
virtual void setClearColor(const SbColorRGBA &color)
Defines the RGBA value used when the color buffer is cleared.
virtual float getStillSuperSamplingQuality() const override
virtual void setClearPolicy(ClearPolicy policy)
Defines the color buffer and depth buffer clear policy.
virtual float getAntialiasingQuality() const override
virtual SoStereoParameters * getStereoParameters() const
virtual void setClearDepth(float depth)
Defines the depth value used when the depth buffer is cleared.
virtual ~RenderArea()
Destructor.
virtual void setStereoParameters(SoStereoParameters *parameters)
Defines the stereo parameters.
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 bool isStereoActivated() const
Returns true if stereo rendering is currently activated.
Class representing an event.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> RenderArea antia...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> RenderArea inter...
ClearPolicy
Policy values to clear color and depth buffers beforing rendering.
virtual RenderStatus render()=0
Render the managed scene graph (see setSceneGraph).
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> RenderArea stere...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> RenderArea still...
Renders a scene graph using Open Inventor's Render Engine.
TransparencyType
Transparency rendering algorithm.
Abstract base class for all database nodes.
Smart pointer for any class inheriting SoRefCounter.
AntialiasingMode
Enum which indicates the desired antialiasing algorithm.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Stereo parameter...