ViewerExaminer Class Reference
[Qt ViewerComponents]

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

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

List of all members.

Public Slots

virtual void viewAll ()

Public Member Functions

 ViewerExaminer ()
virtual ~ViewerExaminer ()
RenderAreaExaminergetChildView ()
void loadFile (const SbString &filename)
void viewAll ()
void setNavigationMode (SceneExaminer::NavigationMode mode)
SceneExaminer::NavigationMode getNavigationMode ()
RenderAreaInteractive::ClippingPlanesAdjustMode getClippingPlanesAdjustMode ()
virtual void setClippingPlanesAdjustMode (RenderAreaInteractive::ClippingPlanesAdjustMode mode)
void viewAxis (const SbVec3f &direction, const SbVec3f &up)
void saveCamera ()
void restoreCamera ()
void setSeekMode (bool onOrOff)
void openStereoPreferences ()
void activateStereo (bool activated)
bool isRawStereoAvailable ()
bool isStereoSupported ()
void setStereoCameraOffset (float offset)
void setStereoCameraBalance (float balance)
 ViewerExaminer (QWidget *parent)
 ~ViewerExaminer ()
void loadFile (QString filename)
void setSceneGraph (SoNode *sceneGraph)
RenderAreaExaminergetRenderArea ()
virtual void setNavigationMode (SceneExaminer::NavigationMode mode)
virtual
SceneExaminer::NavigationMode 
getNavigationMode ()
virtual
RenderAreaInteractive::ClippingPlanesAdjustMode 
getClippingPlanesAdjustMode ()
virtual void setClippingPlanesAdjustMode (RenderAreaInteractive::ClippingPlanesAdjustMode mode)
virtual void viewAxis (const SbVec3f &direction, const SbVec3f &up)
virtual void setCameraType (SoType type)
void activateStereo (bool activated)
bool isRawStereoAvailable ()
bool isStereoSupported ()
void setStereoCameraOffset (float offset)
void setStereoCameraBalance (float balance)

Protected Slots

virtual void setYZView ()
virtual void setXZView ()
virtual void setXYView ()
virtual void saveCamera ()
virtual void restoreCamera ()
virtual void setCameraPerspective ()
virtual void setCameraOrtho ()
virtual void setSeekMode ()
virtual void openPreferences ()

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.


Constructor & Destructor Documentation

ViewerExaminer::ViewerExaminer (  ) 

Constructor.

virtual ViewerExaminer::~ViewerExaminer (  )  [virtual]

Destructor.

ViewerExaminer::ViewerExaminer ( QWidget *  parent  ) 

Constructor.

ViewerExaminer::~ViewerExaminer (  ) 

Member Function Documentation

void ViewerExaminer::activateStereo ( bool  activated  ) 
void ViewerExaminer::activateStereo ( bool  activated  ) 

Activate/Deactivate stereo.

RenderAreaExaminer* ViewerExaminer::getChildView (  )  [inline]

Get the child view.

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

Get the camera clipping planes adjustment mode.

RenderAreaInteractive::ClippingPlanesAdjustMode ViewerExaminer::getClippingPlanesAdjustMode (  ) 

Get the camera clipping planes adjustment mode.

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

Returns the current navigation mode.

SceneExaminer::NavigationMode ViewerExaminer::getNavigationMode (  ) 

Returns the current navigation mode.

RenderAreaExaminer* ViewerExaminer::getRenderArea (  ) 

Gets the render area examiner.

bool ViewerExaminer::isRawStereoAvailable (  ) 
bool ViewerExaminer::isRawStereoAvailable (  ) 

Returns true if stereo buffering is enabled.

bool ViewerExaminer::isStereoSupported (  ) 
bool ViewerExaminer::isStereoSupported (  ) 

Returns true if stereo can be activated.

void ViewerExaminer::loadFile ( QString  filename  ) 

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

Parameters:
filename This argument is the fullpath to an iv file.
void ViewerExaminer::loadFile ( const SbString filename  ) 

Load an iv file.

virtual void ViewerExaminer::openPreferences (  )  [protected, virtual, slot]

Open preferences dialog.

void ViewerExaminer::openStereoPreferences (  ) 

Open stereo preferences dialog.

virtual void ViewerExaminer::restoreCamera (  )  [protected, virtual, slot]

Restore the camera position.

void ViewerExaminer::restoreCamera (  ) 

Restore the camera parameters.

virtual void ViewerExaminer::saveCamera (  )  [protected, virtual, slot]

Save the camera position.

void ViewerExaminer::saveCamera (  ) 

Save the camera parameters.

virtual void ViewerExaminer::setCameraOrtho (  )  [protected, virtual, slot]

Select the orthographic camera.

virtual void ViewerExaminer::setCameraPerspective (  )  [protected, virtual, slot]

Select the perspective camera.

virtual void ViewerExaminer::setCameraType ( SoType  type  )  [virtual]

Select the camera type.

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

Set the camera clipping planes adjustment mode.

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

Set the camera clipping planes adjustment mode.

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

Set navigation mode.

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

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.

virtual void ViewerExaminer::setSeekMode (  )  [protected, virtual, slot]

Activate/Deactivate seek mode.

void ViewerExaminer::setSeekMode ( bool  onOrOff  ) 

Set the interaction into or out off seek mode.

void ViewerExaminer::setStereoCameraBalance ( float  balance  ) 
void ViewerExaminer::setStereoCameraBalance ( float  balance  ) 

Set the stereo balance.

void ViewerExaminer::setStereoCameraOffset ( float  offset  ) 
void ViewerExaminer::setStereoCameraOffset ( float  offset  ) 

Set the stereo offset.

virtual void ViewerExaminer::setXYView (  )  [protected, virtual, slot]

Set XY view.

virtual void ViewerExaminer::setXZView (  )  [protected, virtual, slot]

Set XZ view.

virtual void ViewerExaminer::setYZView (  )  [protected, virtual, slot]

Set YZ view.

virtual void ViewerExaminer::viewAll (  )  [virtual, slot]

Set the camera in order to see the whole scene.

void ViewerExaminer::viewAll (  ) 

Recenter camera on the scene.

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.

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.


The documentation for this class was generated from the following files:

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/