MeVisLab Toolbox Reference
SoHoldWhilePanGestureEvent.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 | SoHoldWhilePanGestureEvent.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_HOLD_WHILE_PAN_GESTURE_EVENT_
19#define _SO_HOLD_WHILE_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 SoINTERNAL public:
43 static void initClass();
44
45 private:
46 SbVec2f delta;
47};
48
49#endif /* _SO_HOLD_WHILE_PAN_GESTURE_EVENT_ */
A SoGestureEvent derived from SoEvent.
#define TOUCHCONTROL_API
A SoGestureEvent derived from SoEvent.
A SoHoldWhilePanGestureEvent derived from SoGestureEvent.
virtual ~SoHoldWhilePanGestureEvent()
Target mlrange_cast(Source arg)
Generic version of checked ML casts.