#include <surface_quad.h>
Inherits NLPACS::IQuadNode.
Public Types | |
| enum | { NoChild = 0, LeafChild, BranchChild } |
Public Member Functions | |
| CQuadBranch (const CQuadBranch &branch) | |
| CQuadBranch (uint8 level=0) | |
| ~CQuadBranch () | |
| CQuadBranch & | operator= (const CQuadBranch &branch) |
| bool | isLeaf () const |
| const IQuadNode * | getChild (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 Member Functions | |
| void | reduceChildren () |
Protected Attributes | |
| IQuadNode * | _Children [4] |
Friends | |
| class | CSurfaceQuadTree |
Definition at line 103 of file surface_quad.h.
| anonymous enum |
Definition at line 106 of file surface_quad.h.
| NLPACS::CQuadBranch::CQuadBranch | ( | const CQuadBranch & | branch | ) |
Definition at line 140 of file surface_quad.cpp.
Referenced by addVertex(), operator=(), and serial().
| NLPACS::CQuadBranch::CQuadBranch | ( | uint8 | level = 0 |
) | [inline] |
Definition at line 123 of file surface_quad.h.
References _Children.
| NLPACS::CQuadBranch::~CQuadBranch | ( | ) | [inline] |
Definition at line 124 of file surface_quad.h.
References _Children.
| void NLPACS::CQuadBranch::addVertex | ( | const NLMISC::CVector & | v | ) | [virtual] |
Reimplemented from NLPACS::IQuadNode.
Definition at line 195 of file surface_quad.cpp.
References _Children, NLPACS::IQuadNode::_HalfSize, NLPACS::IQuadNode::_Level, NLPACS::IQuadNode::_MaxHeight, NLPACS::IQuadNode::_MaxThickness, NLPACS::IQuadNode::_MinHeight, NLPACS::IQuadNode::_XCenter, NLPACS::IQuadNode::_YCenter, NLPACS::IQuadNode::addVertex(), CQuadBranch(), NLPACS::IQuadNode::CQuadLeaf, NLMISC::CVector::x, and NLMISC::CVector::y.
| bool NLPACS::CQuadBranch::check | ( | ) | const [virtual] |
Reimplemented from NLPACS::IQuadNode.
Definition at line 226 of file surface_quad.cpp.
References _Children, and NLPACS::IQuadNode::check().
Implements NLPACS::IQuadNode.
Definition at line 127 of file surface_quad.h.
| bool NLPACS::CQuadBranch::isLeaf | ( | ) | const [inline, virtual] |
Implements NLPACS::IQuadNode.
Definition at line 126 of file surface_quad.h.
Referenced by reduceChildren(), and serial().
| NLPACS::CQuadBranch & NLPACS::CQuadBranch::operator= | ( | const CQuadBranch & | branch | ) |
Definition at line 145 of file surface_quad.cpp.
References _Children, CQuadBranch(), NLPACS::IQuadNode::CQuadLeaf, and NLPACS::IQuadNode::isLeaf().
| void NLPACS::CQuadBranch::reduceChildren | ( | ) | [protected] |
Definition at line 172 of file surface_quad.cpp.
References _Children, NLPACS::IQuadNode::_MaxThickness, NLPACS::IQuadNode::CQuadLeaf, NLPACS::IQuadNode::getMaxHeight(), NLPACS::IQuadNode::getMinHeight(), and isLeaf().
| void NLPACS::CQuadBranch::serial | ( | NLMISC::IStream & | f | ) | [virtual] |
Reimplemented from NLPACS::IQuadNode.
Definition at line 244 of file surface_quad.cpp.
References _Children, BranchChild, CQuadBranch(), NLPACS::IQuadNode::CQuadLeaf, isLeaf(), NLMISC::IStream::isReading(), LeafChild, nlerror, NoChild, NLPACS::IQuadNode::serial(), serial(), NLPACS::CQuadLeaf::serial(), and NLMISC::IStream::serial().
Referenced by NLPACS::CSurfaceQuadTree::serial(), and serial().
Definition at line 132 of file surface_quad.h.
| void NLPACS::CQuadBranch::translate | ( | const NLMISC::CVector & | translation | ) | [inline, virtual] |
Reimplemented from NLPACS::IQuadNode.
Definition at line 140 of file surface_quad.h.
References _Children, and NLPACS::IQuadNode::translate().
friend class CSurfaceQuadTree [friend] |
Reimplemented from NLPACS::IQuadNode.
Definition at line 117 of file surface_quad.h.
IQuadNode* NLPACS::CQuadBranch::_Children[4] [protected] |
Definition at line 114 of file surface_quad.h.
Referenced by addVertex(), check(), CQuadBranch(), getChild(), operator=(), reduceChildren(), serial(), setChild(), translate(), and ~CQuadBranch().
1.6.1