00001 #ifndef MAINFRAME_H 00002 #define MAINFRAME_H 00003 00004 #include <Inventor/ViewerComponents/MFC/RenderAreaExaminer.h> 00005 #include "StereoPropertiesDialog.h" 00006 00010 class MainFrame : public CFrameWnd 00011 { 00012 00013 public: 00014 00015 virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 00016 00020 RenderAreaExaminer* getChildView() 00021 { 00022 return &m_renderAreaExaminer; 00023 } 00024 00028 void loadFile( const SbString& filename ); 00029 00033 void startIvTune(); 00034 00038 void viewAll(); 00039 00043 void setNavigationMode( SceneExaminer::NavigationMode mode ); 00044 00048 SceneExaminer::NavigationMode getNavigationMode(); 00049 00053 RenderAreaInteractive::ClippingPlanesAdjustMode getClippingPlanesAdjustMode(); 00054 00058 virtual void setClippingPlanesAdjustMode(RenderAreaInteractive::ClippingPlanesAdjustMode mode); 00059 00065 void viewAxis( const SbVec3f& direction, const SbVec3f& up ); 00066 00070 void saveCamera(); 00071 00075 void restoreCamera(); 00076 00080 void setSeekMode( bool onOrOff ); 00081 00085 void openStereoPreferences(); 00086 00090 void activateStereo( bool activated ); 00091 00095 bool isRawStereoAvailable(); 00096 00100 bool isStereoSupported(); 00101 00105 void setStereoCameraOffset( float offset ); 00106 00110 void setStereoCameraBalance( float balance ); 00111 00112 private: 00113 00114 RenderAreaExaminer m_renderAreaExaminer; 00115 00116 StereoPropertiesDialog m_stereoDialog; 00117 00118 SoRef<SoNode> m_sceneGraph; 00119 00120 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 00121 afx_msg BOOL OnMouseWheel(UINT flags, short zDelta, CPoint pt); 00122 afx_msg BOOL PreTranslateMessage(MSG* pMsg); 00123 00124 DECLARE_MESSAGE_MAP() 00125 00126 }; 00127 00128 #endif // MAINFRAME_H 00129