ug4
ug::node_tree::CollisionTreeRootNode Class Reference

A group node featuring a bounding box and a set of points. More...

#include <collision_tree_root_node.h>

+ Inheritance diagram for ug::node_tree::CollisionTreeRootNode:

Public Member Functions

virtual void add_points (vector3 *pPoints, int numPoints)
 
virtual void clear_points ()
 
virtual const vector3get_point (int index) const
 
virtual const vector3get_points () const
 
virtual int num_points ()
 
virtual ~CollisionTreeRootNode ()
 
- Public Member Functions inherited from ug::node_tree::BoxedGroupNode
virtual const vector3max_corner () const
 
virtual const vector3min_corner () const
 
virtual void set_box (const vector3 &minCorner, const vector3 &maxCorner)
 
virtual ~BoxedGroupNode ()
 
- Public Member Functions inherited from ug::node_tree::GroupNode
virtual void add_child (SPNode node)
 
virtual void clear ()
 
virtual SPNode get_child (int index)
 
virtual int num_children ()
 
virtual void remove_child (SPNode node)
 
virtual ~GroupNode ()
 
- Public Member Functions inherited from ug::node_tree::Node
virtual ~Node ()
 
- Public Member Functions inherited from ug::node_tree::Object
unsigned int getObjectCode ()
 
virtual ~Object ()
 

Static Public Member Functions

static SPCollisionTreeRootNode create ()
 
- Static Public Member Functions inherited from ug::node_tree::BoxedGroupNode
static SPBoxedGroupNode create ()
 
- Static Public Member Functions inherited from ug::node_tree::GroupNode
static SPGroupNode create ()
 

Protected Types

typedef std::vector< vector3PointVec
 

Protected Member Functions

 CollisionTreeRootNode ()
 
- Protected Member Functions inherited from ug::node_tree::BoxedGroupNode
 BoxedGroupNode ()
 
- Protected Member Functions inherited from ug::node_tree::GroupNode
 GroupNode ()
 
- Protected Member Functions inherited from ug::node_tree::Node
 Node ()
 
- Protected Member Functions inherited from ug::node_tree::Object
 Object ()
 
 Object (const Object &obj)
 

Protected Attributes

PointVec m_vPoints
 
- Protected Attributes inherited from ug::node_tree::BoxedGroupNode
vector3 m_vMax
 
vector3 m_vMin
 
- Protected Attributes inherited from ug::node_tree::GroupNode
std::vector< SPNodevChildren
 
- Protected Attributes inherited from ug::node_tree::Object
unsigned int m_objectCode
 

Detailed Description

A group node featuring a bounding box and a set of points.

Points are indexed by the subsidiary leaf elements.

Member Typedef Documentation

◆ PointVec

Constructor & Destructor Documentation

◆ ~CollisionTreeRootNode()

ug::node_tree::CollisionTreeRootNode::~CollisionTreeRootNode ( )
virtual

◆ CollisionTreeRootNode()

ug::node_tree::CollisionTreeRootNode::CollisionTreeRootNode ( )
protected

Referenced by create().

Member Function Documentation

◆ add_points()

void ug::node_tree::CollisionTreeRootNode::add_points ( vector3 pPoints,
int  numPoints 
)
virtual

References m_vPoints.

◆ clear_points()

void ug::node_tree::CollisionTreeRootNode::clear_points ( )
virtual

References m_vPoints.

◆ create()

◆ get_point()

const vector3 & ug::node_tree::CollisionTreeRootNode::get_point ( int  index) const
virtual

References m_vPoints.

◆ get_points()

◆ num_points()

int ug::node_tree::CollisionTreeRootNode::num_points ( )
virtual

References m_vPoints.

Member Data Documentation

◆ m_vPoints

PointVec ug::node_tree::CollisionTreeRootNode::m_vPoints
protected

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