Base class for 2D and 3D trees. More...
#include <SMESH_tree.hxx>
Public Types | |
typedef BND_BOX | box_type |
Public Member Functions | |
void | compute () |
Compute the Tree. More... | |
const box_type * | getBox () const |
int | getHeight (const bool full=true) const |
Return height of the tree, full or from this level to topest leaf. More... | |
bool | isLeaf () const |
Tell if Tree is a leaf or not An inheriting class can influence it via myIsLeaf protected field. More... | |
int | level () const |
virtual double | maxSize () const =0 |
SMESH_Tree (SMESH_TreeLimit *limit=0) | |
virtual | ~SMESH_Tree () |
SMESH_Tree Destructor. More... | |
Static Public Member Functions | |
static int | nbChildren () |
Protected Member Functions | |
void | buildChildren () |
Build the children boxes and call buildChildrenData() More... | |
virtual void | buildChildrenData ()=0 |
virtual box_type * | buildRootBox ()=0 |
virtual SMESH_Tree * | newChild () const =0 |
virtual box_type * | newChildBox (int childIndex) const =0 |
Protected Attributes | |
box_type * | myBox |
SMESH_Tree ** | myChildren |
SMESH_Tree * | myFather |
bool | myIsLeaf |
int | myLevel |
const SMESH_TreeLimit * | myLimit |
Base class for 2D and 3D trees.
typedef BND_BOX SMESH_Tree< BND_BOX, NB_CHILDREN >::box_type |
SMESH_Tree< BND_BOX, NB_CHILDREN >::SMESH_Tree | ( | SMESH_TreeLimit * | limit = 0 | ) |
Constructor. limit must be provided at tree root construction. limit will be deleted by SMESH_Tree.
|
virtual |
SMESH_Tree Destructor.
|
protected |
Build the children boxes and call buildChildrenData()
References SMESH_Tree< BND_BOX, NB_CHILDREN >::maxSize(), SMESH_Tree< BND_BOX, NB_CHILDREN >::myFather, and SMESH_Tree< BND_BOX, NB_CHILDREN >::myLevel.
|
protectedpure virtual |
Implemented in SMESH_OctreeNode, and VISCOUS_2D::_SegmentTree.
|
protectedpure virtual |
Implemented in SMESH_OctreeNode, and VISCOUS_2D::_SegmentTree.
void SMESH_Tree< BND_BOX, NB_CHILDREN >::compute |
Compute the Tree.
const box_type * SMESH_Tree< BND_BOX, NB_CHILDREN >::getBox | ( | ) | const |
References SMESH_Tree< BND_BOX, NB_CHILDREN >::myBox.
Referenced by SMESH_NodeSearcherImpl::FindClosestTo().
int SMESH_Tree< BND_BOX, NB_CHILDREN >::getHeight | ( | const bool | full = true | ) | const |
Return height of the tree, full or from this level to topest leaf.
bool SMESH_Tree< BND_BOX, NB_CHILDREN >::isLeaf |
Tell if Tree is a leaf or not An inheriting class can influence it via myIsLeaf protected field.
Referenced by SMESH_NodeSearcherImpl::FindClosestTo(), and SMESH_NodeSearcherImpl::SMESH_NodeSearcherImpl().
int SMESH_Tree< BND_BOX, NB_CHILDREN >::level | ( | ) | const |
References SMESH_Tree< BND_BOX, NB_CHILDREN >::myLevel.
|
pure virtual |
Implemented in SMESH_Octree, and SMESH_Quadtree.
Referenced by SMESH_Tree< BND_BOX, NB_CHILDREN >::buildChildren().
|
static |
|
protectedpure virtual |
Implemented in SMESH_OctreeNode, and VISCOUS_2D::_SegmentTree.
|
protectedpure virtual |
Implemented in SMESH_Octree, and SMESH_Quadtree.
|
protected |
Referenced by SMESH_Tree< BND_BOX, NB_CHILDREN >::getBox().
|
protected |
|
protected |
Referenced by SMESH_Tree< BND_BOX, NB_CHILDREN >::buildChildren().
|
protected |
Referenced by SMESH_OctreeNode::buildChildrenData(), and VISCOUS_2D::_SegmentTree::buildChildrenData().
|
protected |
|
protected |