Base class to have a MFC viewer with the OpenInventor OpenGL rendering. More...
#include <Inventor/ViewerComponents/MFC/Viewers/ViewerExaminer.h>
Public Slots | |
virtual void | viewAll () |
Set the camera in order to see the whole scene. | |
Public Member Functions | |
ViewerExaminer () | |
Constructor. | |
virtual | ~ViewerExaminer () |
Destructor. | |
RenderAreaExaminer * | getChildView () |
Get the child view. | |
void | loadFile (const SbString &filename) |
Load an iv file. | |
void | viewAll () |
Recenter camera on the scene. | |
void | setNavigationMode (SceneExaminer::NavigationMode mode) |
Set navigation mode. | |
SceneExaminer::NavigationMode | getNavigationMode () |
Returns the current navigation mode. | |
RenderAreaInteractive::ClippingPlanesAdjustMode | getClippingPlanesAdjustMode () |
Get the camera clipping planes adjustment mode. | |
virtual void | setClippingPlanesAdjustMode (RenderAreaInteractive::ClippingPlanesAdjustMode mode) |
Set the camera clipping planes adjustment mode. | |
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 the camera parallel to the specified up vector. | |
void | saveCamera () |
Save the camera parameters. | |
void | restoreCamera () |
Restore the camera parameters. | |
void | setSeekMode (bool onOrOff) |
Set the interaction into or out off seek mode. | |
void | openStereoPreferences () |
Open stereo preferences dialog. | |
void | activateStereo (bool activated) |
Activate/Deactivate stereo. | |
bool | isRawStereoAvailable () |
Returns true if stereo buffering is enabled. | |
bool | isStereoSupported () |
Returns true if stereo can be activated. | |
void | setStereoCameraOffset (float offset) |
Set the stereo offset. | |
void | setStereoCameraBalance (float balance) |
Set the stereo balance. | |
ViewerExaminer (QWidget *parent) | |
Constructor. | |
~ViewerExaminer () | |
void | loadFile (QString filename) |
This method loads an IV file using SoInput::openFile and SoDB::readAll. | |
void | setSceneGraph (SoNode *sceneGraph) |
Sets the scene graph. | |
RenderAreaExaminer * | getRenderArea () |
Gets the render area examiner. | |
virtual void | setNavigationMode (SceneExaminer::NavigationMode mode) |
Set navigation mode. | |
virtual SceneExaminer::NavigationMode | getNavigationMode () |
Returns the current navigation mode. | |
virtual RenderAreaInteractive::ClippingPlanesAdjustMode | getClippingPlanesAdjustMode () |
Get the camera clipping planes adjustment mode. | |
virtual void | setClippingPlanesAdjustMode (RenderAreaInteractive::ClippingPlanesAdjustMode mode) |
Set the camera clipping planes adjustment mode. | |
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 the camera parallel to the specified up vector. | |
virtual void | setCameraType (SoType type) |
Select the camera type. | |
void | activateStereo (bool activated) |
bool | isRawStereoAvailable () |
bool | isStereoSupported () |
void | setStereoCameraOffset (float offset) |
void | setStereoCameraBalance (float balance) |
Protected Slots | |
virtual void | setYZView () |
Set YZ view. | |
virtual void | setXZView () |
Set XZ view. | |
virtual void | setXYView () |
Set XY view. | |
virtual void | saveCamera () |
Save the camera position. | |
virtual void | restoreCamera () |
Restore the camera position. | |
virtual void | setCameraPerspective () |
Select the perspective camera. | |
virtual void | setCameraOrtho () |
Select the orthographic camera. | |
virtual void | setSeekMode () |
Activate/Deactivate seek mode. | |
virtual void | openPreferences () |
Open preferences dialog. | |
Base class to have a MFC viewer with the OpenInventor OpenGL rendering.
Class to render an OpenInventor scene graph in a Qt widget, with navigation tools.
This class is designed to be used as main widget of an application. See MFCRenderAreaGuiIntegration example for more details.
This class extends QWidget.
Definition at line 17 of file ViewerExaminer.h.
ViewerExaminer::ViewerExaminer | ( | ) |
Constructor.
|
virtual |
Destructor.
ViewerExaminer::ViewerExaminer | ( | QWidget * | parent | ) |
Constructor.
ViewerExaminer::~ViewerExaminer | ( | ) |
void ViewerExaminer::activateStereo | ( | bool | activated | ) |
Activate/Deactivate stereo.
void ViewerExaminer::activateStereo | ( | bool | activated | ) |
|
inline |
Get the child view.
Definition at line 34 of file ViewerExaminer.h.
RenderAreaInteractive::ClippingPlanesAdjustMode ViewerExaminer::getClippingPlanesAdjustMode | ( | ) |
Get the camera clipping planes adjustment mode.
|
virtual |
Get the camera clipping planes adjustment mode.
SceneExaminer::NavigationMode ViewerExaminer::getNavigationMode | ( | ) |
Returns the current navigation mode.
|
virtual |
Returns the current navigation mode.
RenderAreaExaminer * ViewerExaminer::getRenderArea | ( | ) |
Gets the render area examiner.
bool ViewerExaminer::isRawStereoAvailable | ( | ) |
Returns true if stereo buffering is enabled.
bool ViewerExaminer::isRawStereoAvailable | ( | ) |
bool ViewerExaminer::isStereoSupported | ( | ) |
Returns true if stereo can be activated.
bool ViewerExaminer::isStereoSupported | ( | ) |
void ViewerExaminer::loadFile | ( | const SbString & | filename | ) |
Load an iv file.
void ViewerExaminer::loadFile | ( | QString | filename | ) |
This method loads an IV file using SoInput::openFile and SoDB::readAll.
filename | This argument is the fullpath to an iv file. |
|
protectedvirtualslot |
Open preferences dialog.
void ViewerExaminer::openStereoPreferences | ( | ) |
Open stereo preferences dialog.
void ViewerExaminer::restoreCamera | ( | ) |
Restore the camera parameters.
|
protectedvirtualslot |
Restore the camera position.
void ViewerExaminer::saveCamera | ( | ) |
Save the camera parameters.
|
protectedvirtualslot |
Save the camera position.
|
protectedvirtualslot |
Select the orthographic camera.
|
protectedvirtualslot |
Select the perspective camera.
|
virtual |
Select the camera type.
|
virtual |
Set the camera clipping planes adjustment mode.
|
virtual |
Set the camera clipping planes adjustment mode.
void ViewerExaminer::setNavigationMode | ( | SceneExaminer::NavigationMode | mode | ) |
Set navigation mode.
|
virtual |
Set navigation mode.
void ViewerExaminer::setSceneGraph | ( | SoNode * | sceneGraph | ) |
Sets the scene graph.
This is the Open Inventor scene which will be traversed for rendering and event processing.
|
protectedvirtualslot |
Activate/Deactivate seek mode.
void ViewerExaminer::setSeekMode | ( | bool | onOrOff | ) |
Set the interaction into or out off seek mode.
void ViewerExaminer::setStereoCameraBalance | ( | float | balance | ) |
Set the stereo balance.
void ViewerExaminer::setStereoCameraBalance | ( | float | balance | ) |
void ViewerExaminer::setStereoCameraOffset | ( | float | offset | ) |
Set the stereo offset.
void ViewerExaminer::setStereoCameraOffset | ( | float | offset | ) |
|
protectedvirtualslot |
Set XY view.
|
protectedvirtualslot |
Set XZ view.
|
protectedvirtualslot |
Set YZ view.
void ViewerExaminer::viewAll | ( | ) |
Recenter camera on the scene.
|
virtualslot |
Set the camera in order to see the whole scene.
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.
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.