openinventor::inventor::viewercomponents::qt::qml::RenderAreaInteractive Class Reference
[Qt ViewerComponents]

[PREVIEW] More...

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

Inheritance diagram for openinventor::inventor::viewercomponents::qt::qml::RenderAreaInteractive:
openinventor::inventor::viewercomponents::qt::qml::RenderArea SiRenderArea openinventor::inventor::viewercomponents::qt::qml::RenderAreaOrbiter

List of all members.

Public Types

enum  ClippingPlanesAdjustMode {
  AUTO,
  MANUAL
}

Public Member Functions

 RenderAreaInteractive ()
virtual ~RenderAreaInteractive ()
void setSceneGraph (SoNode *sceneGraph) override
void setClippingPlanesAdjustMode (ClippingPlanesAdjustMode mode)
ClippingPlanesAdjustMode getClippingPlanesAdjustMode ()
virtual SceneInteractorgetSceneInteractor () 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)
SbBool processEvent (const SoEvent *event)
SbBool processEvents (const std::vector< const SoEvent * > &eventList)

Detailed Description

[PREVIEW]

Class to render an OpenInventor scene in a QML item. This class extends RenderArea to add mouse and keyboard interactions.

SEE ALSO

RenderArea, RenderAreaOrbiter

What is a Preview Feature ?:

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

openinventor::inventor::viewercomponents::qt::qml::RenderAreaInteractive::RenderAreaInteractive (  ) 

Constructor.

virtual openinventor::inventor::viewercomponents::qt::qml::RenderAreaInteractive::~RenderAreaInteractive (  )  [virtual]

Destructor.


Member Function Documentation

virtual void openinventor::inventor::viewercomponents::qt::qml::RenderAreaInteractive::activateStereo ( bool  activated  )  [virtual]

Activate/Deactivate stereo.

Reimplemented from openinventor::inventor::viewercomponents::qt::qml::RenderArea.

ClippingPlanesAdjustMode openinventor::inventor::viewercomponents::qt::qml::RenderAreaInteractive::getClippingPlanesAdjustMode (  ) 

Get the camera clipping planes adjustment mode.

virtual SceneInteractor* openinventor::inventor::viewercomponents::qt::qml::RenderAreaInteractive::getSceneInteractor (  )  const [virtual]

Return the root of the scene graph.

Reimplemented in openinventor::inventor::viewercomponents::qt::qml::RenderAreaOrbiter.

virtual bool openinventor::inventor::viewercomponents::qt::qml::RenderAreaInteractive::isStereoSupported (  )  const [virtual]

Returns true if stereo can be activated.

SbBool openinventor::inventor::viewercomponents::qt::qml::RenderAreaInteractive::processEvent ( const SoEvent event  ) 

Processes the passed event to the scene graph managed here.

Returns TRUE if the event was handled by a node.

NOTES

    Events can only be processed once rendering area is initialized.

SbBool openinventor::inventor::viewercomponents::qt::qml::RenderAreaInteractive::processEvents ( const std::vector< const SoEvent * > &  eventList  ) 

Processes the passed event to the scene graph managed here.

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

NOTES

    Events can only be processed once rendering area is initialized.

void openinventor::inventor::viewercomponents::qt::qml::RenderAreaInteractive::setClippingPlanesAdjustMode ( ClippingPlanesAdjustMode  mode  ) 

Sets 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 openinventor::inventor::viewercomponents::qt::qml::RenderAreaInteractive::setSceneGraph ( SoNode sceneGraph  )  [override, virtual]

Sets the scene graph to render.

Reimplemented from openinventor::inventor::viewercomponents::qt::qml::RenderArea.

void openinventor::inventor::viewercomponents::qt::qml::RenderAreaInteractive::setStereoCameraBalance ( float  balance  ) 

Set the stereo balance.

void openinventor::inventor::viewercomponents::qt::qml::RenderAreaInteractive::setStereoCameraOffset ( float  offset  ) 

Set the stereo offset.

virtual void openinventor::inventor::viewercomponents::qt::qml::RenderAreaInteractive::viewAll ( const SbViewportRegion viewport  )  [virtual]

Moves 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 openinventor::inventor::viewercomponents::qt::qml::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 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/