00001 #ifndef VIEWEREXAMINER_H 00002 #define VIEWEREXAMINER_H 00003 00004 #include <Inventor/ViewerComponents/MFC/RenderAreaExaminer.h> 00005 00006 #include <Inventor/sys/port.h> 00007 00008 class StereoPropertiesDialog; 00009 00017 class MFCVIEWERCOMPONENTS_API ViewerExaminer : public CFrameWnd 00018 { 00019 00020 public: 00024 ViewerExaminer(); 00025 00029 virtual ~ViewerExaminer(); 00030 00034 RenderAreaExaminer* getChildView() 00035 { 00036 return &m_renderAreaExaminer; 00037 } 00038 00042 void loadFile( const SbString& filename ); 00043 00047 void viewAll(); 00048 00052 void setNavigationMode( SceneExaminer::NavigationMode mode ); 00053 00057 SceneExaminer::NavigationMode getNavigationMode(); 00058 00062 RenderAreaInteractive::ClippingPlanesAdjustMode getClippingPlanesAdjustMode(); 00063 00067 virtual void setClippingPlanesAdjustMode( RenderAreaInteractive::ClippingPlanesAdjustMode mode ); 00068 00074 void viewAxis( const SbVec3f& direction, const SbVec3f& up ); 00075 00079 void saveCamera(); 00080 00084 void restoreCamera(); 00085 00089 void setSeekMode( bool onOrOff ); 00090 00094 void openStereoPreferences(); 00095 00099 void activateStereo( bool activated ); 00100 00104 bool isRawStereoAvailable(); 00105 00109 bool isStereoSupported(); 00110 00114 void setStereoCameraOffset( float offset ); 00115 00119 void setStereoCameraBalance( float balance ); 00120 00121 private: 00122 00123 RenderAreaExaminer m_renderAreaExaminer; 00124 00125 StereoPropertiesDialog* m_stereoDialog; 00126 00127 SoRef<SoNode> m_sceneGraph; 00128 00129 afx_msg int OnCreate( LPCREATESTRUCT lpCreateStruct ); 00130 afx_msg BOOL OnMouseWheel( UINT flags, short zDelta, CPoint pt ); 00131 afx_msg BOOL PreTranslateMessage( MSG* pMsg ); 00132 afx_msg BOOL PreCreateWindow( CREATESTRUCT& cs ); 00133 00134 DECLARE_MESSAGE_MAP() 00135 00136 }; 00137 00138 #endif // VIEWEREXAMINER_H 00139