Nuitrack  1.11.2
3D Skeleton Tracking Middleware
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Groups Pages
Gesture.h
1 #ifndef NUITRACK_GESTURE_H_
2 #define NUITRACK_GESTURE_H_
3 
4 #include <memory>
5 #include <vector>
6 
7 namespace tdv
8 {
9 namespace nuitrack
10 {
11 
17 {
18  GESTURE_WAVING = 0,
19  GESTURE_SWIPE_LEFT = 1,
20  GESTURE_SWIPE_RIGHT = 2,
21  GESTURE_SWIPE_UP = 3,
22  GESTURE_SWIPE_DOWN = 4,
23  GESTURE_PUSH = 5,
24 };
25 
31 {
32  USER_IS_ABSENT = 0,
33  USER_IN_SCENE = 1,
34  USER_ACTIVE = 2
35 };
36 
41 struct Gesture
42 {
43  /*
44  * ID of the user
45  */
46  int userId;
47 
48  /*
49  * Type of the gesture
50  */
51  GestureType type;
52 };
53 
58 struct UserState
59 {
60  /*
61  * ID of the user
62  */
63  int userId;
64 
65  /*
66  * State of the user
67  */
68  UserStateType state;
69 };
70 
76 {
77  /*
78  * Type of the gesture
79  */
80  GestureType type;
81 
82  /*
83  * Execution progress (in percents)
84  */
85  int progress;
86 };
87 
94 {
95  /*
96  * Gesture information
97  */
98  std::vector<GestureState> gestures;
99 };
100 
101 } // namespace nuitrack
102 } // namespace tdv
103 
104 #endif /* NUITRACK_GESTURE_H_ */
Describes a gesture with a binding to a user.
Definition: Gesture.h:41
Describes a state of a particular user.
Definition: Gesture.h:58
GestureType
Describes a gesture type.
Definition: Gesture.h:16
Describes the user's state, supplemented by information about the actions currently being performed...
Definition: Gesture.h:93
Describes the state of a gesture.
Definition: Gesture.h:75
UserStateType
Describes a user state.
Definition: Gesture.h:30