Version: 8.3.0
SMESH::Controls::ElementsOnShape Class Reference

#include <SMESH_ControlsDef.hxx>

Inheritance diagram for SMESH::Controls::ElementsOnShape:

Data Structures

struct  Classifier
 
struct  OctreeClassifier
 

Public Member Functions

 ElementsOnShape ()
 
 ~ElementsOnShape ()
 
virtual Predicateclone () const
 
virtual void SetMesh (const SMDS_Mesh *theMesh)
 
virtual bool IsSatisfy (long theElementId)
 
virtual SMDSAbs_ElementType GetType () const
 
void SetTolerance (const double theToler)
 
double GetTolerance () const
 
void SetAllNodes (bool theAllNodes)
 
bool GetAllNodes () const
 
void SetShape (const TopoDS_Shape &theShape, const SMDSAbs_ElementType theType)
 

Private Member Functions

void clearClassifiers ()
 
bool getNodeIsOut (const SMDS_MeshNode *n, bool &isOut)
 
void setNodeIsOut (const SMDS_MeshNode *n, bool isOut)
 

Private Attributes

std::vector< ClassifiermyClassifiers
 
std::vector< Classifier * > myWorkClassifiers
 
OctreeClassifiermyOctree
 
SMDSAbs_ElementType myType
 
TopoDS_Shape myShape
 
double myToler
 
bool myAllNodesFlag
 
TMeshModifTracer myMeshModifTracer
 
std::vector< boolmyNodeIsChecked
 
std::vector< boolmyNodeIsOut
 

Constructor & Destructor Documentation

ElementsOnShape::ElementsOnShape ( )

Referenced by clone().

ElementsOnShape::~ElementsOnShape ( )

References clearClassifiers().

Member Function Documentation

void ElementsOnShape::clearClassifiers ( )
private

References myClassifiers, and myOctree.

Referenced by SetShape(), and ~ElementsOnShape().

bool SMESH::Controls::ElementsOnShape::GetAllNodes ( ) const
bool ElementsOnShape::getNodeIsOut ( const SMDS_MeshNode n,
bool isOut 
)
private
double ElementsOnShape::GetTolerance ( ) const

References myToler.

SMDSAbs_ElementType ElementsOnShape::GetType ( ) const
virtual

Implements SMESH::Controls::Predicate.

References myType.

void ElementsOnShape::SetAllNodes ( bool  theAllNodes)

References myAllNodesFlag.

Referenced by SMESH_Gen_i::_GetInside(), and clone().

void ElementsOnShape::setNodeIsOut ( const SMDS_MeshNode n,
bool  isOut 
)
private
void ElementsOnShape::SetShape ( const TopoDS_Shape &  theShape,
const SMDSAbs_ElementType  theType 
)
void ElementsOnShape::SetTolerance ( const double  theToler)

References myShape, myToler, myType, and SetShape().

Referenced by SMESH_Gen_i::_GetInside(), and clone().

Field Documentation

bool SMESH::Controls::ElementsOnShape::myAllNodesFlag
private

Referenced by clone(), IsSatisfy(), and SetAllNodes().

std::vector< Classifier > SMESH::Controls::ElementsOnShape::myClassifiers
private
TMeshModifTracer SMESH::Controls::ElementsOnShape::myMeshModifTracer
private

Referenced by clone(), IsSatisfy(), and SetMesh().

std::vector<bool> SMESH::Controls::ElementsOnShape::myNodeIsChecked
private
std::vector<bool> SMESH::Controls::ElementsOnShape::myNodeIsOut
private
OctreeClassifier* SMESH::Controls::ElementsOnShape::myOctree
private

Referenced by clearClassifiers(), clone(), and IsSatisfy().

TopoDS_Shape SMESH::Controls::ElementsOnShape::myShape
private

Referenced by clone(), SetShape(), and SetTolerance().

double SMESH::Controls::ElementsOnShape::myToler
private
SMDSAbs_ElementType SMESH::Controls::ElementsOnShape::myType
private
std::vector< Classifier* > SMESH::Controls::ElementsOnShape::myWorkClassifiers
private

Referenced by IsSatisfy().