MeVisLab Toolbox Reference
SoPan2GestureEvent.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  | SoPan2GestureEvent.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_PAN_GESTURE_EVENT_
19 #define _SO_PAN_GESTURE_EVENT_
20 
21 #include "SoTouchControlInit.h"
22 #include <Inventor/system/SbSystem.h>
24 
27 
28  SO_EVENT_HEADER();
29 
30  public:
31  // constructor
34 
35  void setDelta(SbVec2f v) {
36  delta = v;
37  }
38  SbVec2f getDelta() const {
39  return delta;
40  }
41 
42 
43  SoINTERNAL public:
44  static void initClass();
45 
46  private:
47  SbVec2f delta;
48 };
49 
50 #endif /* _SO_PAN_GESTURE_EVENT_ */
A SoGestureEvent derived from SoEvent.
#define TOUCHCONTROL_API
A SoGestureEvent derived from SoEvent.
A SoPan2GestureEvent derived from SoGestureEvent.
static void initClass()
virtual ~SoPan2GestureEvent()
void setDelta(SbVec2f v)
SbVec2f getDelta() const