OpenSceneGraph 3.6.5
GUIEventHandler
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>
25
26
27// #define COMPILE_COMPOSITE_EVENTHANDLER
28
29namespace osgGA{
30
48
50{
51public:
52
55 osg::Object(eh, copyop),
56 osg::Callback(eh, copyop),
57 EventHandler(eh, copyop) {}
58
60
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
70protected:
72
73};
74
75}
76
77#endif
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
The 'GA' in osgGA stands for 'GUI Abstraction'; the osgGA namespace provides facilities to help devel...
Definition Callback:21
Callback()
Definition Callback:38
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Visitor for type safe operations on osg::Nodes.
Definition NodeVisitor:82
Base class/standard interface for objects which require IO support, cloning and reference counting.
Definition Object:61
Object()
Construct an object.
Definition Object:69
Base Event class.
Definition Event:27
virtual void event(osg::NodeVisitor *nv, osg::Drawable *drawable)
Event traversal drawable callback method.
EventHandler()
Definition EventHandler:37
Definition GUIActionAdapter:62
Event class for storing Keyboard, mouse and window events.
Definition GUIEventAdapter:82
virtual bool handle(const GUIEventAdapter &, GUIActionAdapter &)
Deprecated, Handle events, return true if handled, false otherwise.
Definition GUIEventHandler:68
virtual bool handle(const GUIEventAdapter &ea, GUIActionAdapter &aa, osg::Object *, osg::NodeVisitor *)
Handle events, return true if handled, false otherwise.
Definition GUIEventHandler:65
GUIEventHandler(const GUIEventHandler &eh, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
Definition GUIEventHandler:54
virtual bool handle(osgGA::Event *event, osg::Object *object, osg::NodeVisitor *nv)
Handle event.
META_Object(osgGA, GUIEventHandler)
GUIEventHandler()
Definition GUIEventHandler:53
#define OSGGA_EXPORT
Definition Export:40

osg logo
Generated at Wed Jul 23 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.