Added className() to assist with debugging

This commit is contained in:
Robert Osfield 2010-02-18 21:17:36 +00:00
parent f54b7d6141
commit 649319ccaa

View File

@ -161,6 +161,8 @@ struct CallbackInterface: public osg::Referenced
{
virtual ~CallbackInterface() {}
virtual const char* className() const { return "osgWidget::CallbackInterface"; }
virtual bool operator()(Event&) = 0;
};
@ -207,6 +209,8 @@ class OSGWIDGET_EXPORT Callback: public osg::Referenced
Callback(): _type(EVENT_NONE), _data(0), _callback(0) {}
Callback(const Callback& rhs): osg::Referenced(rhs), _type(rhs._type), _data(rhs._data), _callback(rhs._callback) {}
virtual const char* className() const { return "osgWidget::Callback"; }
// The more traditional style of OSG Callbacks.
Callback(EventType type, void* data=0):
_type (type),