#include <SMESH_ControlsDef.hxx>
Data Structures | |
struct | Classifier |
struct | OctreeClassifier |
Public Member Functions | |
ElementsOnShape () | |
~ElementsOnShape () | |
virtual Predicate * | clone () 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< Classifier > | myClassifiers |
std::vector< Classifier * > | myWorkClassifiers |
OctreeClassifier * | myOctree |
SMDSAbs_ElementType | myType |
TopoDS_Shape | myShape |
double | myToler |
bool | myAllNodesFlag |
TMeshModifTracer | myMeshModifTracer |
std::vector< bool > | myNodeIsChecked |
std::vector< bool > | myNodeIsOut |
ElementsOnShape::ElementsOnShape | ( | ) |
Referenced by clone().
ElementsOnShape::~ElementsOnShape | ( | ) |
References clearClassifiers().
|
private |
References myClassifiers, and myOctree.
Referenced by SetShape(), and ~ElementsOnShape().
|
virtual |
Reimplemented from SMESH::Controls::Predicate.
References ElementsOnShape(), SMESH::Controls::TMeshModifTracer::GetMesh(), myAllNodesFlag, myClassifiers, myMeshModifTracer, myOctree, myShape, myToler, myType, SetAllNodes(), SetMesh(), SetShape(), and SetTolerance().
bool SMESH::Controls::ElementsOnShape::GetAllNodes | ( | ) | const |
|
private |
References SMDS_MeshElement::GetID(), myNodeIsChecked, and myNodeIsOut.
Referenced by IsSatisfy().
double ElementsOnShape::GetTolerance | ( | ) | const |
References myToler.
|
virtual |
Implements SMESH::Controls::Predicate.
References myType.
|
virtual |
Implements SMESH::Controls::Predicate.
References SMDS_Mesh::FindElement(), SMDS_Mesh::FindNode(), SMESH::Controls::ElementsOnShape::OctreeClassifier::GetClassifiersAtPoint(), SMESH::Controls::TMeshModifTracer::GetMesh(), getNodeIsOut(), SMESH_MeshAlgos::IsOut(), myAllNodesFlag, myClassifiers, myMeshModifTracer, myOctree, myType, myWorkClassifiers, SMDS_MeshElement::NbNodes(), SMDS_MeshElement::nodesIterator(), setNodeIsOut(), and SMDSAbs_Node.
Referenced by SMESH_Gen_i::_GetInside().
void ElementsOnShape::SetAllNodes | ( | bool | theAllNodes | ) |
References myAllNodesFlag.
Referenced by SMESH_Gen_i::_GetInside(), and clone().
|
virtual |
Implements SMESH::Controls::Functor.
References SMESHUtils::FreeVector(), SMESH::Controls::TMeshModifTracer::IsMeshModified(), myMeshModifTracer, myNodeIsChecked, myNodeIsOut, SMDS_Mesh::NbNodes(), and SMESH::Controls::TMeshModifTracer::SetMesh().
Referenced by SMESH_Gen_i::_GetInside(), and clone().
|
private |
References SMDS_MeshElement::GetID(), myNodeIsChecked, and myNodeIsOut.
Referenced by IsSatisfy().
void ElementsOnShape::SetShape | ( | const TopoDS_Shape & | theShape, |
const SMDSAbs_ElementType | theType | ||
) |
References clearClassifiers(), SMESHUtils::FreeVector(), myClassifiers, myNodeIsChecked, myNodeIsOut, myShape, myToler, myType, and SMDSAbs_Node.
Referenced by SMESH_Gen_i::_GetInside(), clone(), and SetTolerance().
void ElementsOnShape::SetTolerance | ( | const double | theToler | ) |
References myShape, myToler, myType, and SetShape().
Referenced by SMESH_Gen_i::_GetInside(), and clone().
|
private |
Referenced by clone(), IsSatisfy(), and SetAllNodes().
|
private |
Referenced by clearClassifiers(), clone(), IsSatisfy(), and SetShape().
|
private |
Referenced by clone(), IsSatisfy(), and SetMesh().
|
private |
Referenced by getNodeIsOut(), SetMesh(), setNodeIsOut(), and SetShape().
|
private |
Referenced by getNodeIsOut(), SetMesh(), setNodeIsOut(), and SetShape().
|
private |
Referenced by clearClassifiers(), clone(), and IsSatisfy().
|
private |
Referenced by clone(), SetShape(), and SetTolerance().
|
private |
Referenced by clone(), GetTolerance(), SetShape(), and SetTolerance().
|
private |
Referenced by clone(), GetType(), IsSatisfy(), SetShape(), and SetTolerance().
|
private |
Referenced by IsSatisfy().