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 class SoAntialiasingParameters;
00042
00043
00044 class SoGuiFullViewer : public SoGuiViewer
00045 {
00046 #ifndef HIDDEN_FROM_DOC
00047 SO_FIELDCONTAINER_HEADER( SoGuiFullViewer );
00048 #endif
00049
00050 private:
00051
00052 enum BuildFlag
00053 {
00057 BUILD_NONE = 0x00,
00061 BUILD_DECORATION = 0x01,
00065 BUILD_POPUP = 0x02,
00069 BUILD_ALL = 0xff
00070 };
00071
00072
00073
00074
00075
00076 enum popupChoices
00077 {
00078 VIEW_ALL = 20,
00079 SET_HOME,
00080 HOME,
00081 HEADLIGHT,
00082 SEEK,
00083 PREF,
00084 VIEWING,
00085 DECORATION,
00086 FULLSCREEN,
00087 COPY_VIEW,
00088 PASTE_VIEW,
00089 HELP
00090 };
00091
00092 enum drawChoices
00093 {
00094 AS_IS,
00095 HIDDEN_LINE,
00096 NO_TXT,
00097 LOW_RES,
00098 LINE,
00099 POINT,
00100 BBOX,
00101
00102 MOVE_SAME_AS,
00103 MOVE_NO_TXT,
00104 MOVE_LOW_RES,
00105 MOVE_LINE,
00106 MOVE_LOW_LINE,
00107 MOVE_POINT,
00108 MOVE_LOW_POINT,
00109 MOVE_BBOX,
00110
00111 DRAW_STYLE_NUM
00112 };
00113
00114
00115 enum popupToggles
00116 {
00117 HEADLIGHT_WIDGET = 0,
00118 VIEWING_WIDGET,
00119 DECORATION_WIDGET,
00120 FULLSCREEN_WIDGET,
00121 POPUP_TOGGLE_NUM
00122 };
00123
00124
00125 enum ViewerPushButtons
00126 {
00127 PICK_PUSH,
00128 VIEW_PUSH,
00129 HELP_PUSH,
00130 HOME_PUSH,
00131 SET_HOME_PUSH,
00132 VIEW_ALL_PUSH,
00133 SEEK_PUSH,
00134 PUSH_NUM
00135 };
00136
00140 SoGuiFullViewer();
00141
00149 void setDecoration( SbBool onOrOff );
00150
00154 SbBool isDecoration();
00155
00185 void setPopupMenuEnabled( SbBool trueOrFalse );
00186
00190 SbBool isPopupMenuEnabled();
00191
00201 bool toggleAntiAliasing();
00202
00203
00204 void setRightWheelVal( float newVal );
00205 float getRightWheelVal() const;
00206
00207 void setBottomWheelVal( float newVal );
00208 float getBottomWheelVal() const;
00209
00210 void setLeftWheelVal( float newVal );
00211 float getLeftWheelVal() const;
00212
00213 void initVars( BuildFlag buildFlag );
00214
00215
00216
00217
00218
00219
00220 virtual void rightWheelStart();
00221 virtual void bottomWheelStart();
00222 virtual void leftWheelStart();
00223 virtual void rightWheelFinish();
00224 virtual void bottomWheelFinish();
00225 virtual void leftWheelFinish();
00226
00227 int SO_WHEEL_DELTA;
00228
00229 private:
00233 virtual ~SoGuiFullViewer();
00234
00235
00236 private:
00237
00238 SbBool m_decorationFlag;
00239 SbBool m_popupEnabled;
00240 float m_rightWheelVal, m_bottomWheelVal, m_leftWheelVal;
00241
00242
00243 float m_savedAAQuality;
00244 SoAntialiasingParameters* m_savedAAParams;
00245 };
00246
00247 #endif // SO_GUI_FULL_VIEWER
00248
00249
00250