OpenWalnut  1.4.0
Public Types | Static Public Member Functions
WGECallbackTraits< osg::Node > Class Template Reference

Nodes have their own callback type and provide a traverse method (as they can be nested). More...

#include <WGECallbackTraits.h>

List of all members.

Public Types

typedef osg::NodeCallback CallbackType
 The real callback type.
typedef osg::Node 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<>
class WGECallbackTraits< osg::Node >

Nodes have their own callback type and provide a traverse method (as they can be nested).

Definition at line 70 of file WGECallbackTraits.h.


Member Typedef Documentation

typedef osg::NodeCallback WGECallbackTraits< osg::Node >::CallbackType

The real callback type.

Some specific OSG classes have specific callbacks. Specialize this template in this case.

Definition at line 76 of file WGECallbackTraits.h.

typedef osg::Node WGECallbackTraits< osg::Node >::HandledType

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

Definition at line 81 of file WGECallbackTraits.h.


Member Function Documentation

static void WGECallbackTraits< osg::Node >::traverse ( CallbackType inst,
HandledType handled,
osg::NodeVisitor *  nv 
) [inline, static]

Call traversal method if existing for the specific callback type.

This calls osg::NodeCallback::traverse.

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

Definition at line 90 of file WGECallbackTraits.h.


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