MeVisLab Toolbox Reference
SoMultiTapGestureEvent.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 | SoMultiTapGestureEvent.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_MULTI_TAP_GESTURE_EVENT_
19#define _SO_MULTI_TAP_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 setNumberOfTaps(unsigned int taps) {
36 numberOfTaps = taps;
37 }
38 unsigned int getNumberOfTaps() const {
39 return numberOfTaps;
40 }
41
42 void setNumberOfTouches(unsigned int touches) {
43 numberOfTouches = touches;
44 }
45 unsigned int getNumberOfTouches() const {
46 return numberOfTouches;
47 }
48
50 position = p;
51 }
53 return position;
54 }
55
56 SoINTERNAL public:
57 static void initClass();
58
59 private:
60 unsigned int numberOfTaps;
61 unsigned int numberOfTouches;
62
63 SbVec2f position;
64};
65
66#endif /* _SO_MULTI_TAP_GESTURE_EVENT_ */
A SoGestureEvent derived from SoEvent.
#define TOUCHCONTROL_API
A SoGestureEvent derived from SoEvent.
A SoMultiTapGestureEvent derived from SoGestureEvent.
void setNumberOfTouches(unsigned int touches)
void setNumberOfTaps(unsigned int taps)
virtual ~SoMultiTapGestureEvent()
unsigned int getNumberOfTouches() const
static void initClass()
unsigned int getNumberOfTaps() const
Target mlrange_cast(Source arg)
Generic version of checked ML casts.