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
{
32
NOGESTURE
,
33
GESTURE_STARTED
,
34
GESTURE_UPDATED
,
35
GESTURE_FINISHED
,
36
GESTURE_CANCELED
,
37
};
38
39
// constructor
40
SoGestureEvent
();
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_ */
SoTouchControlInit.h
TOUCHCONTROL_API
#define TOUCHCONTROL_API
Definition
SoTouchControlInit.h:23
SoGestureEvent
A SoGestureEvent derived from SoEvent.
Definition
SoGestureEvent.h:26
SoGestureEvent::setState
void setState(State s)
Definition
SoGestureEvent.h:43
SoGestureEvent::setIdentifier
void setIdentifier(int identifier)
Definition
SoGestureEvent.h:50
SoGestureEvent::State
State
Definition
SoGestureEvent.h:31
SoGestureEvent::GESTURE_UPDATED
@ GESTURE_UPDATED
Definition
SoGestureEvent.h:34
SoGestureEvent::NOGESTURE
@ NOGESTURE
Definition
SoGestureEvent.h:32
SoGestureEvent::GESTURE_STARTED
@ GESTURE_STARTED
Definition
SoGestureEvent.h:33
SoGestureEvent::GESTURE_CANCELED
@ GESTURE_CANCELED
Definition
SoGestureEvent.h:36
SoGestureEvent::GESTURE_FINISHED
@ GESTURE_FINISHED
Definition
SoGestureEvent.h:35
SoGestureEvent::~SoGestureEvent
virtual ~SoGestureEvent()
SoGestureEvent::SoGestureEvent
SoGestureEvent()
SoGestureEvent::getState
State getState() const
Definition
SoGestureEvent.h:46
SoGestureEvent::initClass
static void initClass()
SoGestureEvent::getIdentifier
int getIdentifier() const
Definition
SoGestureEvent.h:53
mlrange_cast
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
Definition
mlRangeCasts.h:332
FMEstable
ReleaseMeVis
Sources
Inventor
SoTouchControl
Inventor
events
SoGestureEvent.h
Generated by
1.10.0