1#ifndef RenderAreaInteractive_H
2#define RenderAreaInteractive_H
4#include <Inventor/ViewerComponents/Qt/RenderArea.h>
5#include <Inventor/ViewerComponents/Qt/QtEventToSoEvent.h>
162 virtual void initializeGL();
172 virtual void mousePressEvent( QMouseEvent* event );
178 virtual void mouseReleaseEvent( QMouseEvent* event );
184 virtual void mouseMoveEvent( QMouseEvent* event );
190 virtual void wheelEvent( QWheelEvent* event );
195 virtual void keyPressEvent ( QKeyEvent * event );
200 virtual void keyReleaseEvent ( QKeyEvent * event );
205 virtual void enterEvent(QEvent * event);
210 virtual void leaveEvent(QEvent * event);
215 virtual void mouseDoubleClickEvent(QMouseEvent * event);
221 virtual bool event(QEvent * qevent);
226 void buildSceneGraph();
230 bool m_isAutoInteractive;
234 void init(
bool buildRootSceneGraph );
Class to render an OpenInventor scene in a Qt OpenGL window.
Class to render an OpenInventor scene in a Qt OpenGL window.
virtual SceneInteractor * getSceneInteractor() const
Return the root of the scene graph.
virtual SbBool processEvents(const std::vector< const SoEvent * > &eventList)
Processes the passed event to the scene graph managed here.
void setStereoCameraOffset(float offset)
Set the stereo offset.
ClippingPlanesAdjustMode getClippingPlanesAdjustMode()
Get the camera clipping planes adjustment mode.
SoDEPRECATED void setInteractiveMode(SoInteractiveComplexity::InteractiveMode mode)
Sets the current interactive mode.
void setStereoCameraBalance(float balance)
Set the stereo balance.
virtual void activateStereo(bool activated)
Activate/Deactivate stereo.
SoDEPRECATED SceneInteractor * getRootSceneGraph() const
Return the root of the scene graph.
virtual bool isStereoSupported() const
Returns true if stereo can be activated.
virtual ~RenderAreaInteractive()
Destructor.
void setClippingPlanesAdjustMode(ClippingPlanesAdjustMode mode)
Set the camera clipping planes adjustment mode.
virtual void viewAxis(const SbVec3f &direction, const SbVec3f &up)
Moves the camera to be aligned with the given direction vector while keeping the "up" direction of th...
virtual SbBool processEvent(const SoEvent *event)
Processes the passed event to the scene graph managed here.
virtual void setSceneGraph(SoNode *sceneGraph)
Sets the scene graph to render.
virtual SoDEPRECATED SoInteractiveComplexity::InteractiveMode getInteractiveMode() const
Gets the current interactive mode.
ClippingPlanesAdjustMode
Camera clipping planes adjustment mode.
virtual void viewAll(const SbViewportRegion &viewport)
Move the camera to view the scene defined by the given path.
RenderAreaInteractive(QWidget *parent)
This constructor initializes the QOpenGLWidget using the default QSurfaceFormat.
Class for representing a viewport.
Base class for building a basic OpenInventor application without using the classic viewer classes.
RenderStatus
Returned by the render method.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> RenderArea inter...
Abstract base class for all actions.
Base class for all events.
Base class for all group nodes.
InteractiveMode
Interactive mode.
Abstract base class for all database nodes.
Structure given when a start render event is raised.