25 #ifndef WGEFUNCTORCALLBACK_H
26 #define WGEFUNCTORCALLBACK_H
28 #include <boost/signals2.hpp>
31 #include <osg/NodeCallback>
33 #include "WGECallbackTraits.h"
43 template <
typename Type = osg::Node >
50 typedef osg::ref_ptr< WGEFunctorCallback >
SPtr;
55 typedef osg::ref_ptr< const WGEFunctorCallback >
ConstSPtr;
80 virtual void operator()( Type* handled, osg::NodeVisitor* nv );
89 virtual void update( osg::NodeVisitor* nv, Type* handled );
99 template <
typename Type >
107 template <
typename Type >
113 template <
typename Type >
117 m_functor( handled );
121 template <
typename Type >
124 operator()( handled, nv );
127 #endif // WGEFUNCTORCALLBACK_H