00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2020 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : T.MEHAMLI (Jun 2007) 00022 **=======================================================================*/ 00023 00024 #ifndef SO_GUI_WALK_VIEWER 00025 #define SO_GUI_WALK_VIEWER 00026 00028 // 00029 // Class: SoGuiViewer 00030 // 00031 // SoXXWalkViewer implementation class 00032 // 00033 // 00035 00036 #include <Inventor/Gui/viewers/SoGuiAlgoViewers.h> 00037 00038 #ifndef HIDDEN_FROM_DOC 00039 // Defines 00040 # define REC_SIZE 12 // size of the square region on the screen 00041 # define CROSSWALK 12 // cross feedback size 00042 # define TURN_SPEED 5.0 00043 # define WALK_SPEED_FACTOR 6.0 00044 # define WHEEL_DOLLY_FACTOR 0.5 00045 # define WHEEL_HEIGHT_FACTOR 0.01 00046 #endif 00047 00048 00049 class SoGuiWalkViewer : public SoGuiAlgoViewers 00050 { 00051 #ifndef HIDDEN_FROM_DOC 00052 SO_FIELDCONTAINER_HEADER( SoGuiWalkViewer ); 00053 #endif 00054 00055 private: 00056 00057 enum ViewerModes 00058 { 00059 PICK_MODE, 00060 VIEW_MODE, 00061 WALK_MODE_ACTIVE, 00062 PAN_MODE, 00063 PAN_MODE_ACTIVE, 00064 TILT_MODE_ACTIVE, 00065 SEEK_MODE, 00066 SET_UP_MODE 00067 }; 00068 00072 SoGuiWalkViewer(); 00073 00077 void setViewerSpeed( float speed ); 00078 00082 float getViewerSpeed() const; 00083 00084 // ----------------------- Extension usage ----------------------------------- 00085 00086 virtual void actualRedraw(); 00087 00088 private: 00089 00093 virtual ~SoGuiWalkViewer(); 00094 }; 00095 00096 #endif // SO_GUI_WALK_VIEWER 00097 00098