MeVisLab Toolbox Reference
SoGestureEvent.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
5 /*
6  _______________________________________________________________________
7  __________________ F R A U N H O F E R M E V I S __________________
8  |
9  | Description:
10  | SoGestureEvent.h
11  |
12  | Author(s) : Felix Ritter
13  |
14  __________________ F R A U N H O F E R M E V I S __________________
15  _______________________________________________________________________
16  */
17 
18 #ifndef _SO_GESTURE_EVENT_
19 #define _SO_GESTURE_EVENT_
20 
21 #include "SoTouchControlInit.h"
22 #include <Inventor/system/SbSystem.h>
23 #include <Inventor/events/SoSubEvent.h>
24 
26 class TOUCHCONTROL_API SoGestureEvent : public SoEvent {
27 
28  SO_EVENT_HEADER();
29 
30  public:
31  enum State {
37  };
38 
39  // constructor
41  virtual ~SoGestureEvent();
42 
43  void setState (State s) {
44  state = s;
45  }
46  State getState() const {
47  return state;
48  }
49 
50  void setIdentifier(int identifier) {
51  _identifier = identifier;
52  }
53  int getIdentifier() const {
54  return _identifier;
55  }
56 
57  SoINTERNAL public:
58  static void initClass();
59 
60 private:
61  State state;
62  int _identifier;
63 };
64 
65 #endif /* _SO_GESTURE_EVENT_ */
#define TOUCHCONTROL_API
A SoGestureEvent derived from SoEvent.
void setState(State s)
void setIdentifier(int identifier)
virtual ~SoGestureEvent()
State getState() const
static void initClass()
int getIdentifier() const