Version: 8.3.0
SMESHDS_SubMesh Class Reference

#include <SMESHDS_SubMesh.hxx>

Inheritance diagram for SMESHDS_SubMesh:

Public Member Functions

 SMESHDS_SubMesh (SMESHDS_Mesh *parent, int index)
 Constructor. More...
 
virtual ~SMESHDS_SubMesh ()
 Destructor. More...
 
virtual bool IsComplexSubmesh () const
 
virtual void AddElement (const SMDS_MeshElement *ME)
 
virtual bool RemoveElement (const SMDS_MeshElement *ME, bool isElemDeleted)
 
virtual void AddNode (const SMDS_MeshNode *ME)
 
virtual bool RemoveNode (const SMDS_MeshNode *ME, bool isNodeDeleted)
 
virtual const SMDS_MeshElementGetElement (size_t idInShape) const
 
virtual const SMDS_MeshNodeGetNode (size_t idInShape) const
 
void AddSubMesh (const SMESHDS_SubMesh *theSubMesh)
 
bool RemoveSubMesh (const SMESHDS_SubMesh *theSubMesh)
 
void RemoveAllSubmeshes ()
 
bool ContainsSubMesh (const SMESHDS_SubMesh *theSubMesh) const
 
int NbSubMeshes () const
 
SMESHDS_SubMeshIteratorPtr GetSubMeshIterator () const
 
virtual int NbElements () const
 
virtual SMDS_ElemIteratorPtr GetElements (bool reverse=false) const
 
virtual int NbNodes () const
 
virtual SMDS_NodeIteratorPtr GetNodes (bool reverse=false) const
 
virtual bool Contains (const SMDS_MeshElement *ME) const
 
virtual bool IsQuadratic () const
 
virtual void Clear ()
 
int getSize ()
 
void compactList ()
 
SMESHDS_MeshGetParent () const
 
int GetID () const
 

Private Attributes

SMESHDS_MeshmyParent
 
std::vector< const
SMDS_MeshElement * > 
myElements
 
std::vector< const
SMDS_MeshNode * > 
myNodes
 
int myUnusedIdNodes
 
int myUnusedIdElements
 
int myIndex
 
std::set< const SMESHDS_SubMesh * > mySubMeshes
 

Constructor & Destructor Documentation

SMESHDS_SubMesh::SMESHDS_SubMesh ( SMESHDS_Mesh parent,
int  index 
)

Constructor.

SMESHDS_SubMesh::~SMESHDS_SubMesh ( )
virtual

Destructor.

Member Function Documentation

void SMESHDS_SubMesh::AddSubMesh ( const SMESHDS_SubMesh theSubMesh)
void SMESHDS_SubMesh::Clear ( )
virtual
void SMESHDS_SubMesh::compactList ( )
bool SMESHDS_SubMesh::ContainsSubMesh ( const SMESHDS_SubMesh theSubMesh) const
const SMDS_MeshElement * SMESHDS_SubMesh::GetElement ( size_t  idInShape) const
virtual
SMDS_ElemIteratorPtr SMESHDS_SubMesh::GetElements ( bool  reverse = false) const
virtual

Reimplemented in SMESH_ProxyMesh::SubMesh.

Referenced by SMESH_Algo::addBadInputElements(), StdMeshers_Quadrangle_2D::check(), StdMeshers_Projection_1D2D::Compute(), StdMeshers_Projection_3D::Compute(), StdMeshers_Projection_2D::Compute(), StdMeshers_RadialPrism_3D::Compute(), StdMeshers_QuadToTriaAdaptor::Compute(), StdMeshers_Prism_3D::compute(), SMESH_MeshEditor::convertElemToQuadratic(), StdMeshers_Projection_1D2D::Evaluate(), StdMeshers_ProjectionUtils::FindMatchingNodesOnFaces(), VISCOUS_3D::_ViscousBuilder::fixBadFaces(), SMESH_2D_Algo::FixInternalNodes(), StdMeshers_FaceSide::GetEdgeNodes(), MyElemIterator::getElements(), SMESH_Mesh_i::GetElements(), SMESH_Algo::GetMeshError(), SMESH_Algo::GetNodeParamOnEdge(), SMESH_Mesh_i::GetSubMeshElementsId(), SMESH_Mesh_i::GetSubMeshElementType(), SMESH_Mesh_i::GetSubMeshNodesId(), SMESH_Pattern::getSubmeshWithElements(), StdMeshers_Prism_3D::getSweepTolerance(), isMeshBoundToShape(), SMESH_MesherHelper::IsReversedSubMesh(), SMESH_MesherHelper::IsSameElemGeometry(), _QuadFaceGrid::LoadGrid(), StdMeshers_Penta_3D::LoadIJNodes(), SMESH_MesherHelper::LoadNodeColumns(), StdMeshers_Penta_3D::MakeBlock(), VISCOUS_3D::_ViscousBuilder::makeLayer(), StdMeshers_Penta_3D::MakeMeshOnFxy1(), VISCOUS_3D::_ViscousBuilder::MakeN2NMap(), StdMeshers_Penta_3D::MakeVolumeMesh(), MyIterator< const SMDS_MeshNode * >::MyIterator(), SMESH_Gen_i::Precompute(), StdMeshers_Prism_3D::project2dMesh(), StdMeshers_Prism_3D::projectBottomToTop(), VISCOUS_3D::_ViscousBuilder::refine(), StdMeshers_MaxElementArea::SetParametersByMesh(), StdMeshers_MaxElementVolume::SetParametersByMesh(), StdMeshers_Adaptive1D::SetParametersByMesh(), VISCOUS_3D::_ViscousBuilder::setShapeData(), VISCOUS_3D::_ViscousBuilder::shrink(), and DriverMED_Family::SplitByType().

const SMDS_MeshNode * SMESHDS_SubMesh::GetNode ( size_t  idInShape) const
virtual
SMESHDS_Mesh* SMESHDS_SubMesh::GetParent ( ) const
int SMESHDS_SubMesh::getSize ( )

References MESHCUT::d.

SMESHDS_SubMeshIteratorPtr SMESHDS_SubMesh::GetSubMeshIterator ( ) const
bool SMESHDS_SubMesh::IsQuadratic ( ) const
virtual
int SMESHDS_SubMesh::NbSubMeshes ( ) const
void SMESHDS_SubMesh::RemoveAllSubmeshes ( )
bool SMESHDS_SubMesh::RemoveSubMesh ( const SMESHDS_SubMesh theSubMesh)

Field Documentation

std::vector<const SMDS_MeshElement*> SMESHDS_SubMesh::myElements
private
int SMESHDS_SubMesh::myIndex
private
std::vector<const SMDS_MeshNode*> SMESHDS_SubMesh::myNodes
private
SMESHDS_Mesh* SMESHDS_SubMesh::myParent
private
std::set<const SMESHDS_SubMesh*> SMESHDS_SubMesh::mySubMeshes
private
int SMESHDS_SubMesh::myUnusedIdElements
private
int SMESHDS_SubMesh::myUnusedIdNodes
private