00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef SO_WX_STEREO_DIALOG
00025 #define SO_WX_STEREO_DIALOG
00026
00028
00029
00030
00032
00033 #include <Inventor/Wx/SoWxComponent.h>
00034
00035 #include <wx/combobox.h>
00036 #include <wx/checkbox.h>
00037 #include <wx/event.h>
00038
00039 #include <Inventor/components/stereo/SoWinXt2Stereo.h>
00040
00041 class SoStereoViewer;
00042 class SoBaseStereo;
00043 class SoDEPRECATED SoStereoDialog : public SoWxComponent
00061 {
00062 public:
00063
00067 SoStereoDialog( wxWindow* parent = wxTheApp->GetTopWindow(), SoStereoViewer* viewer = NULL,
00068 const char* name = NULL, SbBool buildInsideParent = TRUE );
00072 ~SoStereoDialog();
00073
00077 virtual void update();
00078
00079 private:
00080
00081
00082
00083
00084
00085 SoEXTENDER SoStereoDialog( wxWindow* parent, SoStereoViewer* viewer,
00086 const char* name, SbBool buildInsideParent, SbBool buildNow);
00087
00088
00089 virtual SbString getDefaultWidgetName() const;
00090 virtual SbString getDefaultTitle() const;
00091 virtual SbString getDefaultIconTitle() const;
00092
00093 void sliderCallback( wxCommandEvent& ce ) ;
00094
00095 static SoBaseStereo* getStereoViewType( int stereoTypeListIndex = 0 ) ;
00096
00097
00098 wxWindow* mgrWidget;
00099
00100
00101 SoStereoViewer* stereoViewer;
00102 wxSlider* sliders[2];
00103 bool interactiveSlider1, interactiveSlider2;
00104
00105
00106 wxWindow* buildWidget( wxWindow* parent );
00107 wxWindow* buildControls( wxWindow* parent );
00108
00109
00110 void constructorCommon( SoStereoViewer* viewer, SbBool buildNow );
00111
00112 wxComboBox* COMBO_STEREO;
00113 wxCheckBox* CHECK_STEREO;
00114 wxCheckBox* CHECK_BALANCE;
00115 wxCheckBox* CHECK_CAMERA;
00116 wxCheckBox* CHECK_REVERT_STEREO;
00117
00118 void stereo( wxCommandEvent& ce );
00119 void checkBalance( wxCommandEvent& ce );
00120 void checkCamera( wxCommandEvent& ce );
00121 void checkStereo( wxCommandEvent& ce );
00122 void checkRevertStereo( wxCommandEvent& ce );
00123 void updateSliders( );
00124
00125 int m_lastStereoMode;
00126 bool m_isStereoActive;
00127 bool m_lastStereoReversed;
00128 };
00129
00130 #endif // SO_WX_STEREO_DIALOG
00131
00132
00133