OpenWalnut  1.4.0
Public Types | Static Public Member Functions
WGECallbackTraits< Type > Class Template Reference

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

#include <WGECallbackTraits.h>

List of all members.

Public Types

typedef Type::Callback CallbackType
 The real callback type.
typedef Type HandledType
 The type of the element used as parameter in the () operator.

Static Public Member Functions

static void traverse (CallbackType *inst, HandledType *handled, osg::NodeVisitor *nv)
 Call traversal method if existing for the specific callback type.

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

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.

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

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 WGEPropertyTransformationCallback< ParentType, TargetType >::operator()(), and WGEFunctorCallback< Type >::operator()().


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