MeVisLab Toolbox Reference
SoSwipeAccess.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 /*
4  _______________________________________________________________________
5  __________________ F R A U N H O F E R M E V I S __________________
6  |
7  | Description:
8  | SoSwipeAccess
9  |
10  | Author(s) : Felix Ritter
11  |
12  __________________ F R A U N H O F E R M E V I S __________________
13  _______________________________________________________________________
14  */
15 
16 #ifndef _SoSwipeAccess_H
17 #define _SoSwipeAccess_H
18 
19 #include "SoTouchControlInit.h"
20 #include <Inventor/nodes/SoSubNode.h>
22 #include <Inventor/fields/SoSFEnum.h>
23 #include <Inventor/fields/SoSFTrigger.h>
24 
25 class SoHandleEventAction;
26 
27 class TOUCHCONTROL_API SoSwipeAccess : public SoNode
28 {
29  SO_NODE_HEADER(SoSwipeAccess);
30 
31  public:
32  enum Direction {
38  };
39 
40  SoSFEnum swipeDirection;
41 
42  SoSFTrigger left;
43  SoSFTrigger right;
44  SoSFTrigger up;
45  SoSFTrigger down;
46 
49 
50  protected:
51  virtual void handleEvent(SoHandleEventAction *action) override;
52 
53  SoINTERNAL public:
54  static void initClass();
55 };
56 
57 #endif // _SoSwipeAccess_H
A SoSwipe2GestureEvent derived from SoGestureEvent.
#define TOUCHCONTROL_API
SoSFTrigger up
Definition: SoSwipeAccess.h:44
static void initClass()
SoSFTrigger right
Definition: SoSwipeAccess.h:43
SoSFTrigger down
Definition: SoSwipeAccess.h:45
SoSwipeAccess()
constructor
SoSFTrigger left
Definition: SoSwipeAccess.h:42
SoSFEnum swipeDirection
Definition: SoSwipeAccess.h:40
virtual void handleEvent(SoHandleEventAction *action) override