[PREVIEW] More...
#include <Inventor/ViewerComponents/Qt/QML/RenderAreaInteractive.h>
Public Types | |
enum | ClippingPlanesAdjustMode { AUTO, MANUAL } |
Public Member Functions | |
RenderAreaInteractive () | |
virtual | ~RenderAreaInteractive () |
void | setSceneGraph (SoNode *sceneGraph) override |
void | setClippingPlanesAdjustMode (ClippingPlanesAdjustMode mode) |
ClippingPlanesAdjustMode | getClippingPlanesAdjustMode () |
virtual SceneInteractor * | getSceneInteractor () 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) |
Class to render an OpenInventor scene in a QML item. This class extends RenderArea to add mouse and keyboard interactions.
enum openinventor::inventor::viewercomponents::qt::qml::RenderAreaInteractive::ClippingPlanesAdjustMode |
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.
openinventor::inventor::viewercomponents::qt::qml::RenderAreaInteractive::RenderAreaInteractive | ( | ) |
Constructor.
virtual openinventor::inventor::viewercomponents::qt::qml::RenderAreaInteractive::~RenderAreaInteractive | ( | ) | [virtual] |
Destructor.
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.
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.
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] |
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.