ug4
ug::node_tree::Traverser_CollisionTree Class Reference

Enhances the Traverser base-class by methods to traverse a collision tree. More...

#include <traverser_collision_tree.h>

+ Inheritance diagram for ug::node_tree::Traverser_CollisionTree:

Public Member Functions

 Traverser_CollisionTree ()
 
virtual ~Traverser_CollisionTree ()
 
- Public Member Functions inherited from ug::node_tree::Traverser
 Traverser ()
 
virtual ~Traverser ()
 

Protected Member Functions

CollisionTreeRootNodeget_current_root_node ()
 
virtual void handle_collision_edges (CollisionEdgesNode *colEdgesNode)
 
virtual void handle_collision_tree_root (CollisionTreeRootNode *colTreeRootNode)
 
virtual void handle_collision_triangles (CollisionTrianglesNode *colTrisNode)
 
- Protected Member Functions inherited from ug::node_tree::Traverser
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 Attributes

std::stack< CollisionTreeRootNode * > m_stackRootNodes
 

Detailed Description

Enhances the Traverser base-class by methods to traverse a collision tree.

Derive from this class if you want to create a traverser that traverses a collision-tree.

This class does nothing more than registering its callback-methods at the base-traverser.

The methods here do not do much. handle_collision_tree_root calls its handle_boxed_group on its node. The other methods are empty.

Constructor & Destructor Documentation

◆ Traverser_CollisionTree()

◆ ~Traverser_CollisionTree()

ug::node_tree::Traverser_CollisionTree::~Traverser_CollisionTree ( )
virtual

Member Function Documentation

◆ get_current_root_node()

CollisionTreeRootNode * ug::node_tree::Traverser_CollisionTree::get_current_root_node ( )
protected

References m_stackRootNodes.

◆ handle_collision_edges()

void ug::node_tree::Traverser_CollisionTree::handle_collision_edges ( CollisionEdgesNode colEdgesNode)
protectedvirtual

◆ handle_collision_tree_root()

void ug::node_tree::Traverser_CollisionTree::handle_collision_tree_root ( CollisionTreeRootNode colTreeRootNode)
protectedvirtual

◆ handle_collision_triangles()

void ug::node_tree::Traverser_CollisionTree::handle_collision_triangles ( CollisionTrianglesNode colTrisNode)
protectedvirtual

Member Data Documentation

◆ m_stackRootNodes

std::stack<CollisionTreeRootNode*> ug::node_tree::Traverser_CollisionTree::m_stackRootNodes
private

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