OpenWalnut
1.5.0dev
|
This class is needed as OSG does not define a uniform callback type. More...
#include <WGECallbackTraits.h>
Public Types | |
typedef Type::Callback | CallbackType |
The real callback type. More... | |
typedef Type | HandledType |
The type of the element used as parameter in the () operator. More... | |
Static Public Member Functions | |
static void | traverse (CallbackType *inst, HandledType *handled, osg::NodeVisitor *nv) |
Call traversal method if existing for the specific callback type. More... | |
This class is needed as OSG does not define a uniform callback type.
Definition at line 37 of file WGECallbackTraits.h.
typedef Type::Callback WGECallbackTraits< Type >::CallbackType |
The real callback type.
Some specific osg classes have specific callbacks. Specialize this template in this case.
Definition at line 43 of file WGECallbackTraits.h.
typedef Type WGECallbackTraits< Type >::HandledType |
The type of the element used as parameter in the () operator.
Definition at line 48 of file WGECallbackTraits.h.
|
static |
Call traversal method if existing for the specific callback type.
inst | the instance to use |
handled | the instance of the handled object |
nv | the node visitor |
Definition at line 61 of file WGECallbackTraits.h.
Referenced by WGEFunctorCallback< Type >::operator()(), and WGEPropertyTransformationCallback< ParentType, TargetType >::operator()().