# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLPACS::CQuadBranch Class Reference

#include <surface_quad.h>

Inheritance diagram for NLPACS::CQuadBranch:

NLPACS::IQuadNode List of all members.

Public Types

enum  { NoChild = 0, LeafChild, BranchChild }

Public Methods

 CQuadBranch (const CQuadBranch &branch)
 CQuadBranch (uint8 level=0)
 ~CQuadBranch ()
CQuadBranch & operator= (const CQuadBranch &branch)
bool isLeaf () const
const IQuadNodegetChild (uint child) const
void setChild (uint child, IQuadNode *node)
void addVertex (const NLMISC::CVector &v)
bool check () const
void translate (const NLMISC::CVector &translation)
void serial (NLMISC::IStream &f)

Protected Methods

void reduceChildren ()

Protected Attributes

IQuadNode_Children [4]

Friends

class CSurfaceQuadTree

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
NoChild 
LeafChild 
BranchChild 

Definition at line 108 of file surface_quad.h.


Constructor & Destructor Documentation

NLPACS::CQuadBranch::CQuadBranch const CQuadBranch &    branch
 

Definition at line 142 of file surface_quad.cpp.

Referenced by addVertex, operator=, reduceChildren, and serial.

NLPACS::CQuadBranch::CQuadBranch uint8    level = 0 [inline]
 

Definition at line 125 of file surface_quad.h.

References NLPACS::IQuadNode::IQuadNode, and level.

NLPACS::CQuadBranch::~CQuadBranch   [inline]
 

Definition at line 126 of file surface_quad.h.


Member Function Documentation

void NLPACS::CQuadBranch::addVertex const NLMISC::CVector   v [virtual]
 

Reimplemented from NLPACS::IQuadNode.

Definition at line 197 of file surface_quad.cpp.

References _Children, NLPACS::IQuadNode::_HalfSize, NLPACS::IQuadNode::_Level, NLPACS::IQuadNode::_MaxThickness, NLPACS::IQuadNode::_XCenter, NLPACS::IQuadNode::_YCenter, CQuadBranch, NLPACS::IQuadNode::CQuadLeaf, and v.

bool NLPACS::CQuadBranch::check   const [virtual]
 

Reimplemented from NLPACS::IQuadNode.

Definition at line 228 of file surface_quad.cpp.

References _Children.

const IQuadNode* NLPACS::CQuadBranch::getChild uint    child const [inline, virtual]
 

Implements NLPACS::IQuadNode.

Definition at line 129 of file surface_quad.h.

References NLPACS::IQuadNode::IQuadNode, and nlerror.

bool NLPACS::CQuadBranch::isLeaf   const [inline, virtual]
 

Implements NLPACS::IQuadNode.

Definition at line 128 of file surface_quad.h.

NLPACS::CQuadBranch & NLPACS::CQuadBranch::operator= const CQuadBranch &    branch
 

Definition at line 147 of file surface_quad.cpp.

References _Children, CQuadBranch, and NLPACS::IQuadNode::CQuadLeaf.

void NLPACS::CQuadBranch::reduceChildren   [protected]
 

Definition at line 174 of file surface_quad.cpp.

References _Children, NLPACS::IQuadNode::_MaxThickness, CQuadBranch, NLPACS::IQuadNode::CQuadLeaf, and NLPACS::IQuadNode::IQuadNode.

void NLPACS::CQuadBranch::serial NLMISC::IStream   f [virtual]
 

Reimplemented from NLPACS::IQuadNode.

Definition at line 246 of file surface_quad.cpp.

References _Children, BranchChild, CQuadBranch, NLPACS::IQuadNode::CQuadLeaf, NLMISC::IStream::isReading, LeafChild, nlerror, NoChild, and NLMISC::IStream::serial.

void NLPACS::CQuadBranch::setChild uint    child,
IQuadNode   node
[inline]
 

Definition at line 134 of file surface_quad.h.

References NLPACS::IQuadNode::IQuadNode, and nlerror.

void NLPACS::CQuadBranch::translate const NLMISC::CVector   translation [inline, virtual]
 

Reimplemented from NLPACS::IQuadNode.

Definition at line 142 of file surface_quad.h.


Friends And Related Function Documentation

friend class CSurfaceQuadTree [friend]
 

Reimplemented from NLPACS::IQuadNode.

Definition at line 119 of file surface_quad.h.


Member Data Documentation

IQuadNode* NLPACS::CQuadBranch::_Children[4] [protected]
 

Definition at line 116 of file surface_quad.h.

Referenced by addVertex, check, operator=, reduceChildren, and serial.


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