Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

BoxTreeInnerNode Class Reference

#include <box.h>

Inheritance diagram for BoxTreeInnerNode:

BoxTreeNode Box List of all members.

Public Methods

 BoxTreeInnerNode (const Vector3D& pos, const Vector3D& size, int logdepth)
virtual bool isLeaf () const
int createSons (const Vector3D& center)
void recalcBounds (Vector3D& center)
int divide (int p_depth)
int getSonsNumber ()
int getTrianglesNumber ()
BoxedTrianglegetTriangle (int which)
BoxTreeNodegetSon (int which)

Public Attributes

BoxTreeNodem_First
BoxTreeNodem_Second
int m_logdepth
std::vector<BoxedTriangle*> m_Boxes

Detailed Description

Inner node, containing other nodes.


Constructor & Destructor Documentation

BoxTreeInnerNode::BoxTreeInnerNode ( const Vector3D & pos,
const Vector3D & size,
int logdepth ) [inline]
 


Member Function Documentation

int BoxTreeInnerNode::createSons ( const Vector3D & center )
 

Create the sons that will divide this box

int BoxTreeInnerNode::divide ( int p_depth )
 

Recursively divide this box

BoxTreeNode * BoxTreeInnerNode::getSon ( int which ) [inline, virtual]
 

Returns a son node, by index

Reimplemented from BoxTreeNode.

int BoxTreeInnerNode::getSonsNumber ( ) [inline, virtual]
 

Returns the number of sons this node has

Reimplemented from BoxTreeNode.

BoxedTriangle * BoxTreeInnerNode::getTriangle ( int which ) [virtual]
 

Returns the boxed triangle contained in this node by its index

Reimplemented from BoxTreeNode.

__CD__BEGIN int BoxTreeInnerNode::getTrianglesNumber ( ) [virtual]
 

Returns the number of triangles in this node. Only non-zero for leaf nodes.

Reimplemented from BoxTreeNode.

bool BoxTreeInnerNode::isLeaf ( ) const [inline, virtual]
 

Returns true if the node is a leaf node.

Reimplemented from BoxTreeNode.

void BoxTreeInnerNode::recalcBounds ( Vector3D & center )
 

Recalculate the bounds of this box to fully contain all of its triangles


Member Data Documentation

std::vector< BoxedTriangle *> BoxTreeInnerNode::m_Boxes
 

BoxTreeNode * BoxTreeInnerNode::m_First
 

BoxTreeNode * BoxTreeInnerNode::m_Second
 

int BoxTreeInnerNode::m_logdepth
 


The documentation for this class was generated from the following files:
Generated at Sat Nov 18 00:15:14 2000 for coldet by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000