OSG
3.4.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
osg_head
include
osgGA
MultiTouchTrackballManipulator.h
Go to the documentation of this file.
1
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2010 Robert Osfield
2
*
3
* This library is open source and may be redistributed and/or modified under
4
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5
* (at your option) any later version. The full license is in LICENSE file
6
* included with this distribution, and on the openscenegraph.org website.
7
*
8
* This library is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* OpenSceneGraph Public License for more details.
12
*/
13
14
#ifndef OSGGA_MULTITOUCH_TRACKBALL_MANIPULATOR
15
#define OSGGA_MULTITOUCH_TRACKBALL_MANIPULATOR 1
16
17
#include <osgGA/TrackballManipulator>
18
19
20
namespace
osgGA
{
21
22
23
class
OSGGA_EXPORT
MultiTouchTrackballManipulator
:
public
TrackballManipulator
24
{
25
typedef
TrackballManipulator
inherited
;
26
27
public
:
28
29
MultiTouchTrackballManipulator
(
int
flags = DEFAULT_SETTINGS );
30
MultiTouchTrackballManipulator
(
const
MultiTouchTrackballManipulator
& tm,
31
const
osg::CopyOp
& copyOp =
osg::CopyOp::SHALLOW_COPY
);
32
33
META_Object
(
osgGA
,
MultiTouchTrackballManipulator
);
34
35
bool
handle(
const
GUIEventAdapter
& ea,
GUIActionAdapter
& us );
36
37
protected
:
38
39
virtual
void
handleMultiTouchDrag(
const
GUIEventAdapter
* now,
const
GUIEventAdapter
* last,
const
double
eventTimeDelta);
40
41
osg::ref_ptr<GUIEventAdapter>
_lastEvent
;
42
};
43
44
45
}
46
47
#endif
/* OSGGA_MULTITOUCH_TRACKBALL_MANIPULATOR */
osg::ref_ptr
Definition:
ref_ptr.h:25
osgGA::GUIEventAdapter
Definition:
GUIEventAdapter.h:81
osgGA::MultiTouchTrackballManipulator
Definition:
MultiTouchTrackballManipulator.h:23
osg::CopyOp::SHALLOW_COPY
Definition:
CopyOp.h:47
OSGGA_EXPORT
#define OSGGA_EXPORT
Definition:
Export.h:40
META_Object
#define META_Object(library, name)
Definition:
Object.h:42
osgGA::TrackballManipulator
Definition:
TrackballManipulator.h:23
osgGA::MultiTouchTrackballManipulator::_lastEvent
osg::ref_ptr< GUIEventAdapter > _lastEvent
Definition:
MultiTouchTrackballManipulator.h:41
osg::CopyOp
Definition:
CopyOp.h:40
osgGA::GUIActionAdapter
Definition:
GUIActionAdapter.h:61
osgGA
Definition:
AnimationPathManipulator.h:21
osgGA::GUIEventHandler
Definition:
GUIEventHandler.h:49
Generated on Tue Oct 4 2016 19:20:48 for OSG by
1.8.8