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>
21
#include <
Inventor/events/SoSwipe2GestureEvent.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
{
33
NODIRECTION =
SoSwipe2GestureEvent::NODIRECTION
,
34
LEFT =
SoSwipe2GestureEvent::LEFT
,
35
RIGHT =
SoSwipe2GestureEvent::RIGHT
,
36
UP =
SoSwipe2GestureEvent::UP
,
37
DOWN =
SoSwipe2GestureEvent::DOWN
38
};
39
40
SoSFEnum
swipeDirection
;
41
42
SoSFTrigger
left
;
43
SoSFTrigger
right
;
44
SoSFTrigger
up
;
45
SoSFTrigger
down
;
46
48
SoSwipeAccess
();
49
50
protected
:
51
virtual
void
handleEvent
(
SoHandleEventAction
*
action
)
override
;
52
53
SoINTERNAL
public
:
54
static
void
initClass
();
55
};
56
57
#endif
// _SoSwipeAccess_H
SoSwipe2GestureEvent.h
A SoSwipe2GestureEvent derived from SoGestureEvent.
SoTouchControlInit.h
TOUCHCONTROL_API
#define TOUCHCONTROL_API
Definition
SoTouchControlInit.h:23
SoSwipe2GestureEvent::NODIRECTION
@ NODIRECTION
Definition
SoSwipe2GestureEvent.h:32
SoSwipe2GestureEvent::RIGHT
@ RIGHT
Definition
SoSwipe2GestureEvent.h:34
SoSwipe2GestureEvent::LEFT
@ LEFT
Definition
SoSwipe2GestureEvent.h:33
SoSwipe2GestureEvent::UP
@ UP
Definition
SoSwipe2GestureEvent.h:35
SoSwipe2GestureEvent::DOWN
@ DOWN
Definition
SoSwipe2GestureEvent.h:36
SoSwipeAccess
Definition
SoSwipeAccess.h:28
SoSwipeAccess::up
SoSFTrigger up
Definition
SoSwipeAccess.h:44
SoSwipeAccess::Direction
Direction
Definition
SoSwipeAccess.h:32
SoSwipeAccess::initClass
static void initClass()
SoSwipeAccess::right
SoSFTrigger right
Definition
SoSwipeAccess.h:43
SoSwipeAccess::down
SoSFTrigger down
Definition
SoSwipeAccess.h:45
SoSwipeAccess::SoSwipeAccess
SoSwipeAccess()
constructor
SoSwipeAccess::left
SoSFTrigger left
Definition
SoSwipeAccess.h:42
SoSwipeAccess::swipeDirection
SoSFEnum swipeDirection
Definition
SoSwipeAccess.h:40
SoSwipeAccess::handleEvent
virtual void handleEvent(SoHandleEventAction *action) override
mlrange_cast
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
Definition
mlRangeCasts.h:332
FMEstable
ReleaseMeVis
Sources
Inventor
SoTouchControl
Inventor
nodes
SoSwipeAccess.h
Generated by
1.10.0