25 #ifndef WGEFUNCTORCALLBACK_H
26 #define WGEFUNCTORCALLBACK_H
28 #include <boost/signals2.hpp>
31 #include <osg/NodeCallback>
33 #include "WGECallbackTraits.h"
34 #include "../WExportWGE.h"
43 template <
typename Type = osg::Node >
51 typedef osg::ref_ptr< WGEFunctorCallback >
SPtr;
56 typedef osg::ref_ptr< const WGEFunctorCallback >
ConstSPtr;
81 virtual void operator()( Type* handled, osg::NodeVisitor* nv );
90 virtual void update( osg::NodeVisitor* nv, Type* handled );
101 template <
typename Type >
109 template <
typename Type >
115 template <
typename Type >
119 m_functor( handled );
123 template <
typename Type >
126 operator()( handled, nv );
129 #endif // WGEFUNCTORCALLBACK_H