14#ifndef OSGGA_EVENTVISITOR
15#define OSGGA_EVENTVISITOR 1
90 callback->
run(&drawable,
this);
98 if (drawable_callback) drawable_callback->
event(
this,&drawable);
99 if (node_callback) (*node_callback)(&drawable,
this);
100 if (callback_object) callback_object->
run(&drawable,
this);
102 if (!drawable_callback && !node_callback && !callback_object) callback->
run(&drawable,
this);
140 if (callback) callback->
run(&node,
this);
Definition EventHandler:34
std::list< osg::ref_ptr< Event > > Events
Definition EventQueue:36
Definition EventVisitor:42
bool getEventHandled() const
Definition EventVisitor:68
virtual void apply(osg::Projection &node)
Definition EventVisitor:116
const EventQueue::Events & getEvents() const
Definition EventVisitor:72
osg::ref_ptr< GUIEventAdapter > _accumulateEventState
Definition EventVisitor:147
osgGA::GUIActionAdapter * getActionAdapter()
Definition EventVisitor:60
void setEventHandled(bool handled)
Definition EventVisitor:67
virtual void apply(osg::Transform &node)
Definition EventVisitor:115
bool _handled
Definition EventVisitor:149
void addEvent(Event *event)
virtual void apply(osg::LightSource &node)
Definition EventVisitor:113
EventQueue::Events _events
Definition EventVisitor:150
void removeEvent(Event *event)
virtual void apply(osg::OccluderNode &node)
Definition EventVisitor:119
const osgGA::GUIActionAdapter * getActionAdapter() const
Definition EventVisitor:62
virtual void apply(osg::Node &node)
Definition EventVisitor:79
void setActionAdapter(osgGA::GUIActionAdapter *actionAdapter)
Definition EventVisitor:58
EventQueue::Events & getEvents()
Definition EventVisitor:71
void setEvents(const EventQueue::Events &events)
Definition EventVisitor:70
void handle_callbacks(osg::StateSet *stateset)
Definition EventVisitor:127
virtual void apply(osg::Switch &node)
Definition EventVisitor:117
osgGA::GUIActionAdapter * _actionAdapter
Definition EventVisitor:145
virtual void apply(osg::Billboard &node)
Definition EventVisitor:112
virtual void apply(osg::Drawable &drawable)
Definition EventVisitor:82
void handle_callbacks_and_traverse(osg::Node &node)
Definition EventVisitor:135
virtual void apply(osg::Geode &node)
Definition EventVisitor:111
META_NodeVisitor(osgGA, EventVisitor) virtual osgGA
Definition EventVisitor:48
virtual void apply(osg::Group &node)
Definition EventVisitor:114
virtual void apply(osg::LOD &node)
Definition EventVisitor:118
virtual const osgGA::EventVisitor * asEventVisitor() const
Definition EventVisitor:56
Definition GUIActionAdapter:62
bool run(osg::Object *object, osg::Object *data)
virtual CallbackObject * asCallbackObject()
Definition Callback:49
virtual osgGA::EventHandler * asEventHandler()
Definition Callback:70
virtual DrawableEventCallback * asDrawableEventCallback()
Definition Callback:64
virtual bool run(osg::Object *object, osg::Object *data)
Definition Callback:80
virtual NodeCallback * asNodeCallback()
Definition Callback:52
virtual void event(osg::NodeVisitor *, osg::Drawable *)
Definition Callback:337
Definition LightSource:25
Definition NodeVisitor:82
unsigned int getNumChildrenRequiringEventTraversal() const
Definition Node:284
osg::StateSet * getStateSet()
Definition Node:382
Callback * getEventCallback()
Definition Node:252
Definition OccluderNode:27
void runEventCallbacks(osg::NodeVisitor *nv)
bool requiresEventTraversal() const
Definition StateSet:496
#define OSGGA_EXPORT
Definition osgGA/Export:40