OpenWalnut  1.5.0dev
Public Types | Static Public Member Functions | List of all members
WGECallbackTraits< osg::Node > Class Reference

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

#include <WGECallbackTraits.h>

Public Types

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

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

◆ CallbackType

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.

◆ HandledType

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

◆ traverse()

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

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: