Version: 9.16.0
SMESH::Controls::ElementsOnShape::OctreeClassifier Struct Reference
Inheritance diagram for SMESH::Controls::ElementsOnShape::OctreeClassifier:

Public Types

typedef SMESH_Tree< Bnd_B3d, 8 > TBaseTree
 
typedef Bnd_B3d box_type
 

Public Member Functions

 OctreeClassifier (const std::vector< Classifier * > &classifiers)
 
 OctreeClassifier (const OctreeClassifier *otherTree, const std::vector< Classifier > &clsOther, std::vector< Classifier > &cls)
 
void GetClassifiersAtPoint (const gp_XYZ &p, std::vector< Classifier * > &classifiers)
 
size_t GetSize ()
 
double maxSize () const
 Compute the bigger dimension of my box. More...
 
void compute ()
 Compute the Tree. 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
 
const box_typegetBox () const
 
int getHeight (const bool full=true) const
 Return height of the tree, full or from this level to topest leaf. More...
 

Static Public Member Functions

static int getChildIndex (double x, double y, double z, const gp_XYZ &boxMiddle)
 Return index of a child the given point is in. More...
 
static int nbChildren ()
 

Protected Member Functions

 OctreeClassifier ()
 
SMESH_OctreenewChild () const
 
void buildChildrenData ()
 
Bnd_B3d * buildRootBox ()
 
virtual Bnd_B3d * newChildBox (int childIndex) const
 Allocate a bndbox according to childIndex. More...
 
virtual void enlargeByFactor (Bnd_B3d *box, double factor) const
 Change size of a box by a factor; each dimension changes independently of others. More...
 
void buildChildren ()
 Build the children boxes and call buildChildrenData() More...
 

Protected Attributes

std::vector< Classifier * > myClassifiers
 
SMESH_Tree ** myChildren
 
SMESH_TreemyFather
 
bool myIsLeaf
 
const SMESH_TreeLimitmyLimit
 
box_typemyBox
 
int myLevel
 

Member Typedef Documentation

◆ box_type

typedef Bnd_B3d SMESH_Tree< Bnd_B3d , NB_CHILDREN >::box_type
inherited

◆ TBaseTree

typedef SMESH_Tree< Bnd_B3d, 8> SMESH_Octree::TBaseTree
inherited

Constructor & Destructor Documentation

◆ OctreeClassifier() [1/3]

SMESH::Controls::ElementsOnShape::OctreeClassifier::OctreeClassifier ( const std::vector< Classifier * > &  classifiers)

◆ OctreeClassifier() [2/3]

◆ OctreeClassifier() [3/3]

SMESH::Controls::ElementsOnShape::OctreeClassifier::OctreeClassifier ( )
protected

Member Function Documentation

◆ buildChildren()

void SMESH_Tree< Bnd_B3d , NB_CHILDREN >::buildChildren
protectedinherited

Build the children boxes and call buildChildrenData()

◆ buildChildrenData()

void SMESH::Controls::ElementsOnShape::OctreeClassifier::buildChildrenData ( )
protectedvirtual

◆ buildRootBox()

Bnd_B3d * SMESH::Controls::ElementsOnShape::OctreeClassifier::buildRootBox ( )
protectedvirtual

◆ compute()

void SMESH_Tree< Bnd_B3d , NB_CHILDREN >::compute
inherited

Compute the Tree.

◆ enlargeByFactor()

void SMESH_Octree::enlargeByFactor ( Bnd_B3d *  box,
double  factor 
) const
protectedvirtualinherited

Change size of a box by a factor; each dimension changes independently of others.

Implements SMESH_Tree< Bnd_B3d, 8 >.

◆ getBox()

const box_type * SMESH_Tree< Bnd_B3d , NB_CHILDREN >::getBox ( ) const
inherited

◆ getChildIndex()

int SMESH_Octree::getChildIndex ( double  x,
double  y,
double  z,
const gp_XYZ &  boxMiddle 
)
staticinherited

Return index of a child the given point is in.

Referenced by SMESH_OctreeNode::buildChildrenData(), SMESH_OctreeNode::NodesAround(), and SMESH_OctreeNode::UpdateByMoveNode().

◆ GetClassifiersAtPoint()

void SMESH::Controls::ElementsOnShape::OctreeClassifier::GetClassifiersAtPoint ( const gp_XYZ &  p,
std::vector< Classifier * > &  classifiers 
)

◆ getHeight()

int SMESH_Tree< Bnd_B3d , NB_CHILDREN >::getHeight ( const bool  full = true) const
inherited

Return height of the tree, full or from this level to topest leaf.

◆ GetSize()

size_t SMESH::Controls::ElementsOnShape::OctreeClassifier::GetSize ( )

◆ isLeaf()

bool SMESH_Tree< Bnd_B3d , NB_CHILDREN >::isLeaf
inherited

Tell if Tree is a leaf or not An inheriting class can influence it via myIsLeaf protected field.

◆ level()

int SMESH_Tree< Bnd_B3d , NB_CHILDREN >::level ( ) const
inherited

◆ maxSize()

◆ nbChildren()

static int SMESH_Tree< Bnd_B3d , NB_CHILDREN >::nbChildren ( )
staticinherited

◆ newChild()

SMESH_Octree * SMESH::Controls::ElementsOnShape::OctreeClassifier::newChild ( ) const
protectedvirtual

◆ newChildBox()

Bnd_B3d * SMESH_Octree::newChildBox ( int  childIndex) const
protectedvirtualinherited

Allocate a bndbox according to childIndex.

childIndex is zero based

Implements SMESH_Tree< Bnd_B3d, 8 >.

References SMESH_Tree< Bnd_B3d, 8 >::getBox().

Field Documentation

◆ myBox

box_type* SMESH_Tree< Bnd_B3d , NB_CHILDREN >::myBox
protectedinherited

◆ myChildren

SMESH_Tree** SMESH_Tree< Bnd_B3d , NB_CHILDREN >::myChildren
protectedinherited

◆ myClassifiers

std::vector< Classifier* > SMESH::Controls::ElementsOnShape::OctreeClassifier::myClassifiers
protected

◆ myFather

SMESH_Tree* SMESH_Tree< Bnd_B3d , NB_CHILDREN >::myFather
protectedinherited

◆ myIsLeaf

bool SMESH_Tree< Bnd_B3d , NB_CHILDREN >::myIsLeaf
protectedinherited

◆ myLevel

int SMESH_Tree< Bnd_B3d , NB_CHILDREN >::myLevel
protectedinherited

◆ myLimit

const SMESH_TreeLimit* SMESH_Tree< Bnd_B3d , NB_CHILDREN >::myLimit
protectedinherited