ug4
|
Enhances the Traverser base-class by methods to traverse a collision tree. More...
#include <traverser_collision_tree.h>
Public Member Functions | |
Traverser_CollisionTree () | |
virtual | ~Traverser_CollisionTree () |
Public Member Functions inherited from ug::node_tree::Traverser | |
Traverser () | |
virtual | ~Traverser () |
Protected Member Functions | |
CollisionTreeRootNode * | get_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 |
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.
ug::node_tree::Traverser_CollisionTree::Traverser_CollisionTree | ( | ) |
|
virtual |
|
protected |
References m_stackRootNodes.
|
protectedvirtual |
Reimplemented in ug::node_tree::Traverser_ProjectPoint.
Referenced by Traverser_CollisionTree().
|
protectedvirtual |
References ug::node_tree::Traverser::handle_boxed_group(), and m_stackRootNodes.
Referenced by Traverser_CollisionTree().
|
protectedvirtual |
Reimplemented in ug::node_tree::Traverser_ProjectPoint, and ug::node_tree::Traverser_IntersectFaces.
Referenced by Traverser_CollisionTree().
|
private |
Referenced by get_current_root_node(), and handle_collision_tree_root().