ug4
ug::node_tree::Traverser Class Reference

Derivates of a Traverser can be used to traverse a scenegraph. More...

#include <traverser.h>

+ Inheritance diagram for ug::node_tree::Traverser:

Public Member Functions

 Traverser ()
 
virtual ~Traverser ()
 

Protected Member Functions

void apply (SPNode &node)
 
virtual void handle_boxed_group (BoxedGroupNode *boxedGroup)
 
virtual void handle_group (GroupNode *group)
 
template<typename HandlerType >
void register_handler_function (unsigned int oc, HandlerType func)
 
void traverse_object (Object *obj)
 

Private Types

typedef void(Traverser::* HandlerFunc) (Object *obj)
 

Private Member Functions

bool handler_function_registered (unsigned int oc)
 

Private Attributes

std::vector< HandlerFuncm_vHandlerFuncs
 

Detailed Description

Derivates of a Traverser can be used to traverse a scenegraph.

Member Typedef Documentation

◆ HandlerFunc

typedef void(Traverser::* ug::node_tree::Traverser::HandlerFunc) (Object *obj)
private

Constructor & Destructor Documentation

◆ Traverser()

◆ ~Traverser()

ug::node_tree::Traverser::~Traverser ( )
virtual

Member Function Documentation

◆ apply()

void ug::node_tree::Traverser::apply ( SPNode node)
protected

◆ handle_boxed_group()

void ug::node_tree::Traverser::handle_boxed_group ( BoxedGroupNode boxedGroup)
protectedvirtual

◆ handle_group()

void ug::node_tree::Traverser::handle_group ( GroupNode group)
protectedvirtual

◆ handler_function_registered()

bool ug::node_tree::Traverser::handler_function_registered ( unsigned int  oc)
private

References m_vHandlerFuncs.

Referenced by traverse_object().

◆ register_handler_function()

template<typename HandlerType >
void ug::node_tree::Traverser::register_handler_function ( unsigned int  oc,
HandlerType  func 
)
protected

◆ traverse_object()

void ug::node_tree::Traverser::traverse_object ( Object obj)
protected

Member Data Documentation

◆ m_vHandlerFuncs

std::vector<HandlerFunc> ug::node_tree::Traverser::m_vHandlerFuncs
private

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