SMESH_Quadtree Class Reference
2D tree of anything. Methods to implement in a descendant are: More...
#include <SMESH_Quadtree.hxx>
Public Types | |
typedef SMESH_Tree< Bnd_B2d, 4 > TBaseTree | |
![]() | |
typedef Bnd_B2d box_type | |
Public Member Functions | |
double maxSize () const | |
Compute the bigger dimension of my box. More... | |
SMESH_Quadtree (SMESH_TreeLimit *limit=0) | |
![]() | |
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... | |
Protected Member Functions | |
virtual Bnd_B2d * newChildBox (int childIndex) const | |
Allocate a bndbox according to childIndex. childIndex is zero based. More... | |
![]() | |
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 | |
Additional Inherited Members | |
![]() | |
static int nbChildren () | |
![]() | |
box_type * myBox | |
SMESH_Tree ** myChildren | |
SMESH_Tree * myFather | |
bool myIsLeaf | |
int myLevel | |
const SMESH_TreeLimit * myLimit | |
Detailed Description
2D tree of anything. Methods to implement in a descendant are:
- Bnd_B2d* buildRootBox(); // box of the whole tree
- descendant* newChild() const; // a new child instance
- void buildChildrenData(); // Fill in data of the children
Member Typedef Documentation
◆ TBaseTree
typedef SMESH_Tree< Bnd_B2d, 4> SMESH_Quadtree::TBaseTree |
Constructor & Destructor Documentation
◆ SMESH_Quadtree()
SMESH_Quadtree::SMESH_Quadtree | ( | SMESH_TreeLimit * | limit = 0 | ) |
Constructor. limit must be provided at tree root construction. limit will be deleted by SMESH_Quadtree.
Member Function Documentation
◆ maxSize()
double SMESH_Quadtree::maxSize | ( | ) | const |
Compute the bigger dimension of my box.
References SMESH_Tree< Bnd_B2d, 4 >::getBox().
◆ newChildBox()
|
protectedvirtual |
Allocate a bndbox according to childIndex. childIndex is zero based.
Implements SMESH_Tree< Bnd_B2d, 4 >.
References SMESH_Tree< Bnd_B2d, 4 >::getBox().
The documentation for this class was generated from the following files:
- src/3rdParty/salomesmesh/inc/SMESH_Quadtree.hxx
- src/3rdParty/salomesmesh/src/StdMeshers/SMESH_Quadtree.cpp