OpenWalnut  1.5.0dev
Public Types | Static Public Member Functions | List of all members
WGECallbackTraits< Type > Class Template Reference

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...
 

Detailed Description

template<typename Type>
class WGECallbackTraits< Type >

This class is needed as OSG does not define a uniform callback type.

Definition at line 37 of file WGECallbackTraits.h.

Member Typedef Documentation

◆ CallbackType

template<typename Type >
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.

◆ HandledType

template<typename Type >
typedef Type WGECallbackTraits< Type >::HandledType

The type of the element used as parameter in the () operator.

Definition at line 48 of file WGECallbackTraits.h.

Member Function Documentation

◆ traverse()

template<typename Type >
void WGECallbackTraits< Type >::traverse ( CallbackType inst,
HandledType handled,
osg::NodeVisitor *  nv 
)
static

Call traversal method if existing for the specific callback type.

Parameters
instthe instance to use
handledthe instance of the handled object
nvthe node visitor

Definition at line 61 of file WGECallbackTraits.h.

Referenced by WGEFunctorCallback< Type >::operator()(), and WGEPropertyTransformationCallback< ParentType, TargetType >::operator()().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: