Class to render an OpenInventor scene in a Qt OpenGL window. More...
#include <Inventor/ViewerComponents/Qt/RenderAreaInteractive.h>
Class to render an OpenInventor scene in a Qt OpenGL window.
This class extends RenderArea to add mouse and keyboard interactions.
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.
RenderAreaInteractive::RenderAreaInteractive | ( | QWidget * | parent | ) |
This constructor initializes the QOpenGLWidget using the default QSurfaceFormat.
virtual RenderAreaInteractive::~RenderAreaInteractive | ( | ) | [virtual] |
Destructor.
virtual void RenderAreaInteractive::activateStereo | ( | bool | activated | ) | [virtual] |
Activate/Deactivate stereo.
Reimplemented from RenderArea.
ClippingPlanesAdjustMode RenderAreaInteractive::getClippingPlanesAdjustMode | ( | ) |
Get the camera clipping planes adjustment mode.
virtual SoDEPRECATED SoInteractiveComplexity::InteractiveMode RenderAreaInteractive::getInteractiveMode | ( | ) | const [virtual] |
Gets the current interactive mode.
Implements SiRenderAreaInteractive.
SoDEPRECATED SceneInteractor* RenderAreaInteractive::getRootSceneGraph | ( | ) | const |
Return the root of the scene graph.
virtual SceneInteractor* RenderAreaInteractive::getSceneInteractor | ( | ) | const [virtual] |
Return the root of the scene graph.
Reimplemented in RenderAreaExaminer, and RenderAreaOrbiter.
virtual bool RenderAreaInteractive::isStereoSupported | ( | ) | const [virtual] |
Returns true if stereo can be activated.
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.
SoDEPRECATED 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] |
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.