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_GUI_FULL_VIEWER
00025 #define SO_GUI_FULL_VIEWER
00026
00028
00029
00030
00031
00032
00033
00035
00036 #include <Inventor/Gui/viewers/SoGuiViewer.h>
00037
00038
00039 class SoFieldSensor;
00040 class SoStereoDialog;
00041
00042
00043 class SoGuiFullViewer : public SoGuiViewer
00044 {
00045 #ifndef HIDDEN_FROM_DOC
00046 SO_FIELDCONTAINER_HEADER( SoGuiFullViewer );
00047 #endif
00048
00049 private:
00050
00051 enum BuildFlag
00052 {
00056 BUILD_NONE = 0x00,
00060 BUILD_DECORATION = 0x01,
00064 BUILD_POPUP = 0x02,
00068 BUILD_ALL = 0xff
00069 };
00070
00071
00072
00073
00074
00075 enum popupChoices
00076 {
00077 VIEW_ALL = 20,
00078 SET_HOME,
00079 HOME,
00080 HEADLIGHT,
00081 SEEK,
00082 PREF,
00083 VIEWING,
00084 OPENRT,
00085 DECORATION,
00086 FULLSCREEN,
00087 COPY_VIEW,
00088 PASTE_VIEW,
00089 HELP,
00090 DIRECTVIZ
00091 };
00092
00093 enum drawChoices
00094 {
00095 AS_IS,
00096 HIDDEN_LINE,
00097 NO_TXT,
00098 LOW_RES,
00099 LINE,
00100 POINT,
00101 BBOX,
00102
00103 MOVE_SAME_AS,
00104 MOVE_NO_TXT,
00105 MOVE_LOW_RES,
00106 MOVE_LINE,
00107 MOVE_LOW_LINE,
00108 MOVE_POINT,
00109 MOVE_LOW_POINT,
00110 MOVE_BBOX,
00111
00112 DRAW_STYLE_NUM
00113 };
00114
00115
00116 enum popupToggles
00117 {
00118 HEADLIGHT_WIDGET = 0,
00119 VIEWING_WIDGET,
00120 OPENRT_WIDGET,
00121 DECORATION_WIDGET,
00122 FULLSCREEN_WIDGET,
00123 DIRECTVIZ_WIDGET,
00124 POPUP_TOGGLE_NUM
00125 };
00126
00127
00128 enum ViewerPushButtons
00129 {
00130 PICK_PUSH,
00131 VIEW_PUSH,
00132 HELP_PUSH,
00133 HOME_PUSH,
00134 SET_HOME_PUSH,
00135 VIEW_ALL_PUSH,
00136 SEEK_PUSH,
00137 PUSH_NUM
00138 };
00139
00143 SoGuiFullViewer();
00144
00152 void setDecoration( SbBool onOrOff );
00153
00157 SbBool isDecoration();
00158
00189 void setPopupMenuEnabled( SbBool trueOrFalse );
00190
00194 SbBool isPopupMenuEnabled();
00195
00196
00197 void setRightWheelVal( float newVal );
00198 float getRightWheelVal() const;
00199
00200 void setBottomWheelVal( float newVal );
00201 float getBottomWheelVal() const;
00202
00203 void setLeftWheelVal( float newVal );
00204 float getLeftWheelVal() const;
00205
00206 void initVars( BuildFlag buildFlag );
00207
00208
00209
00210
00211
00212
00213 virtual void rightWheelStart();
00214 virtual void bottomWheelStart();
00215 virtual void leftWheelStart();
00216 virtual void rightWheelFinish();
00217 virtual void bottomWheelFinish();
00218 virtual void leftWheelFinish();
00219
00220 int SO_WHEEL_DELTA;
00221
00222 private:
00226 virtual ~SoGuiFullViewer();
00227
00228
00229 private:
00230
00231 SbBool m_decorationFlag;
00232 SbBool m_popupEnabled;
00233 float m_rightWheelVal, m_bottomWheelVal, m_leftWheelVal;
00234 };
00235
00236 #endif // SO_GUI_FULL_VIEWER
00237
00238
00239