Improved support GUIEventHandler's being node event callbacks.

This commit is contained in:
Robert Osfield
2005-02-25 23:02:23 +00:00
parent 4fa830315d
commit ce68304f90
3 changed files with 13 additions and 10 deletions

View File

@@ -72,6 +72,9 @@ public:
virtual CompositeGUIEventHandler* getComposite() { return 0; }
/** Handle events, return true if handled, false otherwise. */
virtual bool handle(const GUIEventAdapter& ea,GUIActionAdapter& aa, osg::Object*, osg::NodeVisitor*) { return handle(ea,aa); }
/** deprecated, Handle events, return true if handled, false otherwise. */
virtual bool handle(const GUIEventAdapter&,GUIActionAdapter&) { return false; }
/** Accept visits from GUIEventHandler visitors */
@@ -98,7 +101,7 @@ public:
virtual CompositeGUIEventHandler* getComposite() { return this; }
virtual bool handle(const GUIEventAdapter& ea,GUIActionAdapter& aa);
virtual bool handle(const GUIEventAdapter& ea,GUIActionAdapter& aa, osg::Object* object, osg::NodeVisitor* nv);
virtual void accept(GUIEventHandlerVisitor& v) { v.visit(*this); }