Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
ViewerExaminer Class Reference

Base class to have a MFC viewer with the OpenInventor OpenGL rendering. More...

#include <Inventor/ViewerComponents/MFC/Viewers/ViewerExaminer.h>

+ Inheritance diagram for ViewerExaminer:

Public Slots

virtual void viewAll ()
 Set the camera in order to see the whole scene.
 

Public Member Functions

 ViewerExaminer ()
 Constructor.
 
virtual ~ViewerExaminer ()
 Destructor.
 
RenderAreaExaminergetChildView ()
 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.
 
RenderAreaExaminergetRenderArea ()
 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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ViewerExaminer() [1/2]

ViewerExaminer::ViewerExaminer ( )

Constructor.

◆ ~ViewerExaminer() [1/2]

virtual ViewerExaminer::~ViewerExaminer ( )
virtual

Destructor.

◆ ViewerExaminer() [2/2]

ViewerExaminer::ViewerExaminer ( QWidget *  parent)

Constructor.

◆ ~ViewerExaminer() [2/2]

ViewerExaminer::~ViewerExaminer ( )

Member Function Documentation

◆ activateStereo() [1/2]

void ViewerExaminer::activateStereo ( bool  activated)

Activate/Deactivate stereo.

◆ activateStereo() [2/2]

void ViewerExaminer::activateStereo ( bool  activated)

◆ getChildView()

RenderAreaExaminer * ViewerExaminer::getChildView ( )
inline

Get the child view.

Definition at line 34 of file ViewerExaminer.h.

◆ getClippingPlanesAdjustMode() [1/2]

RenderAreaInteractive::ClippingPlanesAdjustMode ViewerExaminer::getClippingPlanesAdjustMode ( )

Get the camera clipping planes adjustment mode.

◆ getClippingPlanesAdjustMode() [2/2]

virtual RenderAreaInteractive::ClippingPlanesAdjustMode ViewerExaminer::getClippingPlanesAdjustMode ( )
virtual

Get the camera clipping planes adjustment mode.

◆ getNavigationMode() [1/2]

SceneExaminer::NavigationMode ViewerExaminer::getNavigationMode ( )

Returns the current navigation mode.

◆ getNavigationMode() [2/2]

virtual SceneExaminer::NavigationMode ViewerExaminer::getNavigationMode ( )
virtual

Returns the current navigation mode.

◆ getRenderArea()

RenderAreaExaminer * ViewerExaminer::getRenderArea ( )

Gets the render area examiner.

◆ isRawStereoAvailable() [1/2]

bool ViewerExaminer::isRawStereoAvailable ( )

Returns true if stereo buffering is enabled.

◆ isRawStereoAvailable() [2/2]

bool ViewerExaminer::isRawStereoAvailable ( )

◆ isStereoSupported() [1/2]

bool ViewerExaminer::isStereoSupported ( )

Returns true if stereo can be activated.

◆ isStereoSupported() [2/2]

bool ViewerExaminer::isStereoSupported ( )

◆ loadFile() [1/2]

void ViewerExaminer::loadFile ( const SbString filename)

Load an iv file.

◆ loadFile() [2/2]

void ViewerExaminer::loadFile ( QString  filename)

This method loads an IV file using SoInput::openFile and SoDB::readAll.

Parameters
filenameThis argument is the fullpath to an iv file.

◆ openPreferences

virtual void ViewerExaminer::openPreferences ( )
protectedvirtualslot

Open preferences dialog.

◆ openStereoPreferences()

void ViewerExaminer::openStereoPreferences ( )

Open stereo preferences dialog.

◆ restoreCamera() [1/2]

void ViewerExaminer::restoreCamera ( )

Restore the camera parameters.

◆ restoreCamera [2/2]

virtual void ViewerExaminer::restoreCamera ( )
protectedvirtualslot

Restore the camera position.

◆ saveCamera() [1/2]

void ViewerExaminer::saveCamera ( )

Save the camera parameters.

◆ saveCamera [2/2]

virtual void ViewerExaminer::saveCamera ( )
protectedvirtualslot

Save the camera position.

◆ setCameraOrtho

virtual void ViewerExaminer::setCameraOrtho ( )
protectedvirtualslot

Select the orthographic camera.

◆ setCameraPerspective

virtual void ViewerExaminer::setCameraPerspective ( )
protectedvirtualslot

Select the perspective camera.

◆ setCameraType()

virtual void ViewerExaminer::setCameraType ( SoType  type)
virtual

Select the camera type.

◆ setClippingPlanesAdjustMode() [1/2]

virtual void ViewerExaminer::setClippingPlanesAdjustMode ( RenderAreaInteractive::ClippingPlanesAdjustMode  mode)
virtual

Set the camera clipping planes adjustment mode.

◆ setClippingPlanesAdjustMode() [2/2]

virtual void ViewerExaminer::setClippingPlanesAdjustMode ( RenderAreaInteractive::ClippingPlanesAdjustMode  mode)
virtual

Set the camera clipping planes adjustment mode.

◆ setNavigationMode() [1/2]

void ViewerExaminer::setNavigationMode ( SceneExaminer::NavigationMode  mode)

Set navigation mode.

◆ setNavigationMode() [2/2]

virtual void ViewerExaminer::setNavigationMode ( SceneExaminer::NavigationMode  mode)
virtual

Set navigation mode.

◆ setSceneGraph()

void ViewerExaminer::setSceneGraph ( SoNode sceneGraph)

Sets the scene graph.

This is the Open Inventor scene which will be traversed for rendering and event processing.

◆ setSeekMode [1/2]

virtual void ViewerExaminer::setSeekMode ( )
protectedvirtualslot

Activate/Deactivate seek mode.

◆ setSeekMode() [2/2]

void ViewerExaminer::setSeekMode ( bool  onOrOff)

Set the interaction into or out off seek mode.

◆ setStereoCameraBalance() [1/2]

void ViewerExaminer::setStereoCameraBalance ( float  balance)

Set the stereo balance.

◆ setStereoCameraBalance() [2/2]

void ViewerExaminer::setStereoCameraBalance ( float  balance)

◆ setStereoCameraOffset() [1/2]

void ViewerExaminer::setStereoCameraOffset ( float  offset)

Set the stereo offset.

◆ setStereoCameraOffset() [2/2]

void ViewerExaminer::setStereoCameraOffset ( float  offset)

◆ setXYView

virtual void ViewerExaminer::setXYView ( )
protectedvirtualslot

Set XY view.

◆ setXZView

virtual void ViewerExaminer::setXZView ( )
protectedvirtualslot

Set XZ view.

◆ setYZView

virtual void ViewerExaminer::setYZView ( )
protectedvirtualslot

Set YZ view.

◆ viewAll() [1/2]

void ViewerExaminer::viewAll ( )

Recenter camera on the scene.

◆ viewAll [2/2]

virtual void ViewerExaminer::viewAll ( )
virtualslot

Set the camera in order to see the whole scene.

◆ viewAxis() [1/2]

void ViewerExaminer::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.

◆ viewAxis() [2/2]

virtual void ViewerExaminer::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 files: