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
GUIEventHandler.h
Go to the documentation of this file.
1
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 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_GUIEVENTHANDLER
15
#define OSGGA_GUIEVENTHANDLER 1
16
17
#include <vector>
18
19
#include <osg/Drawable>
20
#include <osg/ApplicationUsage>
21
22
#include <osgGA/EventHandler>
23
#include <osgGA/GUIEventAdapter>
24
#include <osgGA/GUIActionAdapter>
25
26
27
// #define COMPILE_COMPOSITE_EVENTHANDLER
28
29
namespace
osgGA
{
30
49
class
OSGGA_EXPORT
GUIEventHandler
:
public
EventHandler
50
{
51
public
:
52
53
GUIEventHandler
() {}
54
GUIEventHandler
(
const
GUIEventHandler
& eh,
const
osg::CopyOp
& copyop=
osg::CopyOp::SHALLOW_COPY
):
55
osg
::Object(eh, copyop),
56
osg
::Callback(eh, copyop),
57
EventHandler
(eh, copyop) {}
58
59
META_Object
(
osgGA
,
GUIEventHandler
);
60
62
virtual
bool
handle(
osgGA::Event
* event,
osg::Object
*
object
,
osg::NodeVisitor
* nv);
63
65
virtual
bool
handle
(
const
GUIEventAdapter
& ea,
GUIActionAdapter
& aa,
osg::Object
*,
osg::NodeVisitor
*) {
return
handle
(ea,aa); }
66
68
virtual
bool
handle
(
const
GUIEventAdapter
&,
GUIActionAdapter
&) {
return
false
; }
69
70
protected
:
71
virtual
~
GUIEventHandler
();
72
73
};
74
75
}
76
77
#endif
osgGA::GUIEventHandler::handle
virtual bool handle(const GUIEventAdapter &ea, GUIActionAdapter &aa, osg::Object *, osg::NodeVisitor *)
Definition:
GUIEventHandler.h:65
osgGA::GUIEventHandler::GUIEventHandler
GUIEventHandler()
Definition:
GUIEventHandler.h:53
osg::Object
Definition:
Object.h:56
osgGA::GUIEventAdapter
Definition:
GUIEventAdapter.h:81
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::GUIEventHandler::GUIEventHandler
GUIEventHandler(const GUIEventHandler &eh, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
Definition:
GUIEventHandler.h:54
osgGA::EventHandler
Definition:
EventHandler.h:33
osg::CopyOp
Definition:
CopyOp.h:40
osg
Definition:
AlphaFunc.h:19
osgGA::GUIActionAdapter
Definition:
GUIActionAdapter.h:61
osgGA
Definition:
AnimationPathManipulator.h:21
osg::NodeVisitor
Definition:
NodeVisitor.h:67
osgGA::GUIEventHandler
Definition:
GUIEventHandler.h:49
osgGA::GUIEventHandler::handle
virtual bool handle(const GUIEventAdapter &, GUIActionAdapter &)
Definition:
GUIEventHandler.h:68
osgGA::Event
Definition:
Event.h:26
Generated on Tue Oct 4 2016 19:20:48 for OSG by
1.8.8