RenderAreaInteractive Class Reference
[Qt ViewerComponents]

Class to render an OpenInventor scene in a Qt OpenGL window. More...

#include <Inventor/ViewerComponents/Qt/RenderAreaInteractive.h>

Inheritance diagram for RenderAreaInteractive:
RenderArea SiRenderAreaInteractive SiRenderArea SiRenderAreaStereo RenderAreaExaminer

List of all members.

Public Types

enum  ClippingPlanesAdjustMode {
  AUTO,
  MANUAL
}

Public Member Functions

 RenderAreaInteractive (QWidget *parent)
virtual ~RenderAreaInteractive ()
virtual void setSceneGraph (SoNode *sceneGraph)
void setClippingPlanesAdjustMode (ClippingPlanesAdjustMode mode)
ClippingPlanesAdjustMode getClippingPlanesAdjustMode ()
SceneInteractorgetRootSceneGraph () const
virtual void viewAll (const SbViewportRegion &viewport)
virtual void viewAxis (const SbVec3f &direction, const SbVec3f &up)
virtual void activateStereo (bool activated)
virtual bool isStereoSupported () const
void setStereoCameraOffset (float offset)
void setStereoCameraBalance (float balance)
void setInteractiveMode (SoInteractiveComplexity::InteractiveMode mode)
virtual
SoInteractiveComplexity::InteractiveMode 
getInteractiveMode () const
virtual SbBool processEvent (const SoEvent *event)
virtual SbBool processEvents (const std::vector< const SoEvent * > &eventList)

Detailed Description

Class to render an OpenInventor scene in a Qt OpenGL window.

This class extends RenderArea to add mouse and keyboard interactions.


Member Enumeration Documentation

Camera clipping planes adjustment mode.

When adjustment mode is set to AUTO, the camera near and far planes are dynamically adjusted to be as tight as possible (least amount of stuff is clipped) before each render traversal. When adjustment mode is set to MANUAL, the user is expected to manually set the camera near and far planes.

Enumerator:
AUTO 
MANUAL 

Constructor & Destructor Documentation

RenderAreaInteractive::RenderAreaInteractive ( QWidget *  parent  ) 

This constructor initializes the QOpenGLWidget using the default QSurfaceFormat.

virtual RenderAreaInteractive::~RenderAreaInteractive (  )  [virtual]

Destructor.


Member Function Documentation

virtual void RenderAreaInteractive::activateStereo ( bool  activated  )  [virtual]

Activate/Deactivate stereo.

Reimplemented from RenderArea.

ClippingPlanesAdjustMode RenderAreaInteractive::getClippingPlanesAdjustMode (  ) 

Get the camera clipping planes adjustment mode.

virtual SoInteractiveComplexity::InteractiveMode RenderAreaInteractive::getInteractiveMode (  )  const [virtual]

Gets the current interactive mode.

Implements SiRenderAreaInteractive.

SceneInteractor* RenderAreaInteractive::getRootSceneGraph (  )  const

Return the root of the scene graph.

virtual bool RenderAreaInteractive::isStereoSupported (  )  const [virtual]

Returns true if stereo can be activated.

virtual SbBool RenderAreaInteractive::processEvent ( const SoEvent event  )  [virtual]

Processes the passed event to the scene graph managed here.

Returns TRUE if the event was handled by a node.

Implements SiRenderAreaInteractive.

virtual SbBool RenderAreaInteractive::processEvents ( const std::vector< const SoEvent * > &  eventList  )  [virtual]

Processes the passed event to the scene graph managed here.

Returns TRUE if at least one event was handled by a node.

Implements SiRenderAreaInteractive.

void RenderAreaInteractive::setClippingPlanesAdjustMode ( ClippingPlanesAdjustMode  mode  ) 

Set the camera clipping planes adjustment mode.

When adjustment mode is set to AUTO, the camera near and far planes are dynamically adjusted to be as tight as possible (least amount of stuff is clipped) before each render traversal. When adjustment mode is set to MANUAL, the user is expected to manually set those planes. Updating clipping planes after a camera move is not enough, if a dragger or a rendered shape is moved, they can disappear or become partially clipped. Default is AUTO.

void RenderAreaInteractive::setInteractiveMode ( SoInteractiveComplexity::InteractiveMode  mode  )  [virtual]

Sets the current interactive mode.

Implements SiRenderAreaInteractive.

virtual void RenderAreaInteractive::setSceneGraph ( SoNode sceneGraph  )  [virtual]

Sets the scene graph to render.

Reimplemented from RenderArea.

void RenderAreaInteractive::setStereoCameraBalance ( float  balance  ) 

Set the stereo balance.

void RenderAreaInteractive::setStereoCameraOffset ( float  offset  ) 

Set the stereo offset.

virtual void RenderAreaInteractive::viewAll ( const SbViewportRegion viewport  )  [virtual]

Move the camera to view the scene defined by the given path.

Equivalent to calling the SoCamera method viewAll(). Camera position is changed, but not orientation.

virtual void RenderAreaInteractive::viewAxis ( const SbVec3f direction,
const SbVec3f up 
) [virtual]

Moves the camera to be aligned with the given direction vector while keeping the "up" direction of the camera parallel to the specified up vector.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/