9namespace viewercomponents {
150 void mousePressEvent( QMouseEvent* event )
override;
156 void mouseReleaseEvent( QMouseEvent* event )
override;
162 void mouseMoveEvent( QMouseEvent* event )
override;
167 void hoverMoveEvent( QHoverEvent* event )
override;
173 void wheelEvent( QWheelEvent* event )
override;
178 void keyPressEvent( QKeyEvent* event )
override;
183 void keyReleaseEvent( QKeyEvent* event )
override;
188 virtual void enterEvent( QEvent* event );
193 virtual void leaveEvent( QEvent* event );
198 void mouseDoubleClickEvent( QMouseEvent* event )
override;
204 bool event( QEvent* qevent )
override;
209 void buildSceneGraph();
211 void createRenderAreaCore(
SbVec2i32 region )
override;
216 void init(
bool buildRootSceneGraph );
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.
Abstract base class for all actions.
Base class for all events.
Base class for all group nodes.
Abstract base class for all database nodes.
void setClippingPlanesAdjustMode(ClippingPlanesAdjustMode mode)
Sets the camera clipping planes adjustment mode.
void setStereoCameraBalance(float balance)
Set the stereo balance.
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 bool isStereoSupported() const
Returns true if stereo can be activated.
ClippingPlanesAdjustMode getClippingPlanesAdjustMode()
Get the camera clipping planes adjustment mode.
void setSceneGraph(SoNode *sceneGraph) override
Sets the scene graph to render.
RenderAreaInteractive()
Constructor.
SbBool processEvent(const SoEvent *event)
Processes the passed event to the scene graph managed here.
void setStereoCameraOffset(float offset)
Set the stereo offset.
ClippingPlanesAdjustMode
Camera clipping planes adjustment mode.
SbBool processEvents(const std::vector< const SoEvent * > &eventList)
Processes the passed event to the scene graph managed here.
virtual void viewAll(const SbViewportRegion &viewport)
Moves the camera to view the scene defined by the given path.
virtual void activateStereo(bool activated)
Activate/Deactivate stereo.
virtual SceneInteractor * getSceneInteractor() const
Return the root of the scene graph.
virtual ~RenderAreaInteractive()
Destructor.
#define QTVIEWERCOMPONENTS_API
Structure given when a start render event is raised.