Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoGuiWalkViewer.h
Go to the documentation of this file.
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2014 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : T.MEHAMLI (Jun 2007)
22**=======================================================================*/
23
24#ifndef SO_GUI_WALK_VIEWER
25#define SO_GUI_WALK_VIEWER
26
28//
29// Class: SoGuiViewer
30//
31// SoXXWalkViewer implementation class
32//
33//
35
37
38#ifndef HIDDEN_FROM_DOC
39 // Defines
40# define REC_SIZE 12 // size of the square region on the screen
41# define CROSSWALK 12 // cross feedback size
42# define TURN_SPEED 5.0
43# define WALK_SPEED_FACTOR 6.0
44# define WHEEL_DOLLY_FACTOR 0.5
45# define WHEEL_HEIGHT_FACTOR 0.01
46#endif
47
48
50{
51#ifndef HIDDEN_FROM_DOC
53#endif
54
55 private:
56
57 enum ViewerModes
58 {
59 PICK_MODE,
60 VIEW_MODE,
61 WALK_MODE_ACTIVE,
62 PAN_MODE,
63 PAN_MODE_ACTIVE,
64 TILT_MODE_ACTIVE,
65 SEEK_MODE,
66 SET_UP_MODE
67 };
68
73
77 void setViewerSpeed( float speed );
78
82 float getViewerSpeed() const;
83
84 // ----------------------- Extension usage -----------------------------------
85
86 virtual void actualRedraw();
87
88private:
89
93 virtual ~SoGuiWalkViewer();
94};
95
96#endif // SO_GUI_WALK_VIEWER
97
#define SO_FIELDCONTAINER_HEADER(className)
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Common algorithm...