Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
ViewerExaminer.h
1#ifndef VIEWEREXAMINER_H
2#define VIEWEREXAMINER_H
3
4#include <Inventor/ViewerComponents/MFC/RenderAreaExaminer.h>
5
6#include <Inventor/sys/port.h>
7
8class StereoPropertiesDialog;
9
17class MFCVIEWERCOMPONENTS_API ViewerExaminer : public CFrameWnd
18{
19
20public:
25
29 virtual ~ViewerExaminer();
30
35 {
36 return &m_renderAreaExaminer;
37 }
38
42 void loadFile( const SbString& filename );
43
47 void viewAll();
48
53
58
63
68
74 void viewAxis( const SbVec3f& direction, const SbVec3f& up );
75
79 void saveCamera();
80
85
89 void setSeekMode( bool onOrOff );
90
95
99 void activateStereo( bool activated );
100
105
110
114 void setStereoCameraOffset( float offset );
115
119 void setStereoCameraBalance( float balance );
120
121private:
122
123 RenderAreaExaminer m_renderAreaExaminer;
124
125 StereoPropertiesDialog* m_stereoDialog;
126
127 SoRef<SoNode> m_sceneGraph;
128
129 afx_msg int OnCreate( LPCREATESTRUCT lpCreateStruct );
130 afx_msg BOOL OnMouseWheel( UINT flags, short zDelta, CPoint pt );
131 afx_msg BOOL PreTranslateMessage( MSG* pMsg );
132 afx_msg BOOL PreCreateWindow( CREATESTRUCT& cs );
133
134 DECLARE_MESSAGE_MAP()
135
136};
137
138#endif // VIEWEREXAMINER_H
Class to render an OpenInventor scene graph in a Qt OpenGL window.
ClippingPlanesAdjustMode
Camera clipping planes adjustment mode.
Class for smart character strings.
Definition SbString.h:202
3D vector class.
Definition SbVec.h:932
NavigationMode
Navigation Mode.
Smart pointer for any class inheriting SoRefCounter.
Definition SoRef.h:90
Base class to have a MFC viewer with the OpenInventor OpenGL rendering.
virtual ~ViewerExaminer()
Destructor.
void loadFile(const SbString &filename)
Load an iv file.
virtual void setClippingPlanesAdjustMode(RenderAreaInteractive::ClippingPlanesAdjustMode mode)
Set the camera clipping planes adjustment mode.
ViewerExaminer()
Constructor.
void openStereoPreferences()
Open stereo preferences dialog.
RenderAreaExaminer * getChildView()
Get the child view.
bool isRawStereoAvailable()
Returns true if stereo buffering is enabled.
void setNavigationMode(SceneExaminer::NavigationMode mode)
Set navigation mode.
void setStereoCameraOffset(float offset)
Set the stereo offset.
void setSeekMode(bool onOrOff)
Set the interaction into or out off seek 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 th...
void viewAll()
Recenter camera on the scene.
void restoreCamera()
Restore the camera parameters.
RenderAreaInteractive::ClippingPlanesAdjustMode getClippingPlanesAdjustMode()
Get the camera clipping planes adjustment mode.
void saveCamera()
Save the camera parameters.
bool isStereoSupported()
Returns true if stereo can be activated.
void activateStereo(bool activated)
Activate/Deactivate stereo.
void setStereoCameraBalance(float balance)
Set the stereo balance.
SceneExaminer::NavigationMode getNavigationMode()
Returns the current navigation mode.