00001 #ifndef VIEWEREXAMINER_H 00002 #define VIEWEREXAMINER_H 00003 00004 #include <Inventor/ViewerComponents/MFC/RenderAreaExaminer.h> 00005 00006 class StereoPropertiesDialog; 00007 00015 class MFCVIEWERCOMPONENTS_API ViewerExaminer : public CFrameWnd 00016 { 00017 00018 public: 00022 ViewerExaminer(); 00023 00027 virtual ~ViewerExaminer(); 00028 00029 00033 virtual BOOL PreCreateWindow( CREATESTRUCT& cs ); 00034 00038 RenderAreaExaminer* getChildView() 00039 { 00040 return &m_renderAreaExaminer; 00041 } 00042 00046 void loadFile( const SbString& filename ); 00047 00051 void viewAll(); 00052 00056 void setNavigationMode( SceneExaminer::NavigationMode mode ); 00057 00061 SceneExaminer::NavigationMode getNavigationMode(); 00062 00066 RenderAreaInteractive::ClippingPlanesAdjustMode getClippingPlanesAdjustMode(); 00067 00071 virtual void setClippingPlanesAdjustMode( RenderAreaInteractive::ClippingPlanesAdjustMode mode ); 00072 00078 void viewAxis( const SbVec3f& direction, const SbVec3f& up ); 00079 00083 void saveCamera(); 00084 00088 void restoreCamera(); 00089 00093 void setSeekMode( bool onOrOff ); 00094 00098 void openStereoPreferences(); 00099 00103 void activateStereo( bool activated ); 00104 00108 bool isRawStereoAvailable(); 00109 00113 bool isStereoSupported(); 00114 00118 void setStereoCameraOffset( float offset ); 00119 00123 void setStereoCameraBalance( float balance ); 00124 00125 private: 00126 00127 RenderAreaExaminer m_renderAreaExaminer; 00128 00129 StereoPropertiesDialog* m_stereoDialog; 00130 00131 SoRef<SoNode> m_sceneGraph; 00132 00133 afx_msg int OnCreate( LPCREATESTRUCT lpCreateStruct ); 00134 afx_msg BOOL OnMouseWheel( UINT flags, short zDelta, CPoint pt ); 00135 afx_msg BOOL PreTranslateMessage( MSG* pMsg ); 00136 00137 DECLARE_MESSAGE_MAP() 00138 00139 }; 00140 00141 #endif // VIEWEREXAMINER_H 00142