SALOME - SMESH
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SMESH_Octree Class Referenceabstract

#include <SMESH_Octree.hxx>

Inheritance diagram for SMESH_Octree:
Inheritance graph
Collaboration diagram for SMESH_Octree:
Collaboration graph

Public Member Functions

 SMESH_Octree (const int maxLevel=-1, const double minBoxSize=0.)
 
virtual ~SMESH_Octree ()
 
virtual const bool isLeaf ()=0
 
void Compute ()
 
void setMaxLevel (const int maxLevel)
 
void setMinBoxSize (const double minBoxSize)
 
void setBox (const Bnd_B3d *box)
 
void getBox (Bnd_B3d &box)
 
int level () const
 

Static Public Member Functions

static double maxSize (const Bnd_B3d *box)
 

Protected Member Functions

virtual SMESH_OctreeallocateOctreeChild ()=0
 
void buildChildren ()
 
virtual void buildChildrenData ()=0
 

Protected Attributes

Bnd_B3d * myBox
 
SMESH_Octree ** myChildren
 
SMESH_OctreemyFather
 
int myLevel
 
int myMaxLevel
 
double myMinBoxSize
 
int myIsLeaf
 

Detailed Description

Definition at line 33 of file SMESH_Octree.hxx.

Constructor & Destructor Documentation

SMESH_Octree::SMESH_Octree ( const int  maxLevel = -1,
const double  minBoxSize = 0. 
)
virtual SMESH_Octree::~SMESH_Octree ( )
virtual

Member Function Documentation

virtual const bool SMESH_Octree::isLeaf ( )
pure virtual

Implemented in SMESH_OctreeNode.

void SMESH_Octree::Compute ( )
void SMESH_Octree::setMaxLevel ( const int  maxLevel)
void SMESH_Octree::setMinBoxSize ( const double  minBoxSize)

Definition at line 52 of file SMESH_Octree.hxx.

References myMinBoxSize.

void SMESH_Octree::setBox ( const Bnd_B3d *  box)
void SMESH_Octree::getBox ( Bnd_B3d &  box)
static double SMESH_Octree::maxSize ( const Bnd_B3d *  box)
static
int SMESH_Octree::level ( ) const

Definition at line 64 of file SMESH_Octree.hxx.

References myLevel.

virtual SMESH_Octree* SMESH_Octree::allocateOctreeChild ( )
protectedpure virtual

Implemented in SMESH_OctreeNode.

void SMESH_Octree::buildChildren ( )
protected
virtual void SMESH_Octree::buildChildrenData ( )
protectedpure virtual

Implemented in SMESH_OctreeNode.

Field Documentation

Bnd_B3d* SMESH_Octree::myBox
protected

Definition at line 79 of file SMESH_Octree.hxx.

SMESH_Octree** SMESH_Octree::myChildren
protected

Definition at line 82 of file SMESH_Octree.hxx.

SMESH_Octree* SMESH_Octree::myFather
protected

Definition at line 85 of file SMESH_Octree.hxx.

int SMESH_Octree::myLevel
protected

Definition at line 88 of file SMESH_Octree.hxx.

Referenced by level().

int SMESH_Octree::myMaxLevel
protected

Definition at line 91 of file SMESH_Octree.hxx.

double SMESH_Octree::myMinBoxSize
protected

Definition at line 94 of file SMESH_Octree.hxx.

Referenced by setMinBoxSize().

int SMESH_Octree::myIsLeaf
protected

Definition at line 97 of file SMESH_Octree.hxx.