SALOME - SMESH
|
Base class for elements. More...
#include <SMDS_MeshElement.hxx>
Public Member Functions | |
SMDS_ElemIteratorPtr | nodesIterator () const |
SMDS_ElemIteratorPtr | edgesIterator () const |
SMDS_ElemIteratorPtr | facesIterator () const |
virtual SMDS_ElemIteratorPtr | elementsIterator (SMDSAbs_ElementType type) const |
virtual int | NbNodes () const |
virtual int | NbEdges () const |
virtual int | NbFaces () const |
int | GetID () const |
virtual SMDSAbs_ElementType | GetType () const =0 |
Return the type of the current element. More... | |
virtual bool | IsPoly () const |
virtual bool | IsQuadratic () const |
virtual SMDSAbs_EntityType | GetEntityType () const =0 |
Return type of entity. More... | |
virtual bool | IsMediumNode (const SMDS_MeshNode *node) const |
virtual const SMDS_MeshNode * | GetNode (const int ind) const |
Return node by its index. More... | |
const SMDS_MeshNode * | GetNodeWrap (const int ind) const |
Return node by its index. More... | |
virtual bool | IsValidIndex (const int ind) const |
Return true if index of node is valid (0 <= ind < NbNodes()) More... | |
int | WrappedIndex (const int ind) const |
Return a valid node index, fixing the given one if necessary. More... | |
int | GetNodeIndex (const SMDS_MeshNode *node) const |
Check if a node belongs to the element. More... | |
Protected Member Functions | |
SMDS_MeshElement (int ID=-1) | |
virtual void | Print (std::ostream &OS) const |
Private Attributes | |
int | myID |
Friends | |
std::ostream & | operator<< (std::ostream &OS, const SMDS_MeshElement *) |
bool | SMDS_MeshElementIDFactory::BindID (int ID, SMDS_MeshElement *elem) |
Base class for elements.
Definition at line 49 of file SMDS_MeshElement.hxx.
|
protected |
SMDS_ElemIteratorPtr SMDS_MeshElement::nodesIterator | ( | ) | const |
SMDS_ElemIteratorPtr SMDS_MeshElement::edgesIterator | ( | ) | const |
SMDS_ElemIteratorPtr SMDS_MeshElement::facesIterator | ( | ) | const |
|
virtual |
|
virtual |
Reimplemented in SMDS_QuadraticVolumeOfNodes, SMDS_VolumeOfNodes, SMDS_QuadraticFaceOfNodes, SMDS_MeshNode, SMDS_PolygonalFaceOfNodes, SMDS_FaceOfEdges, SMDS_FaceOfNodes, SMDS_PolyhedralVolumeOfNodes, SMDS_QuadraticEdge, SMDS_MeshEdge, and SMDS_Mesh0DElement.
Referenced by SMDS_MeshInfo::add(), and SMDS_MeshInfo::remove().
|
virtual |
|
virtual |
int SMDS_MeshElement::GetID | ( | ) | const |
Referenced by TIDCompare::operator()(), TNode::operator<(), and SMESH_TLink::SMESH_TLink().
|
pure virtual |
Return the type of the current element.
Implemented in SMDS_VolumeOfNodes, SMDS_MeshNode, SMDS_FaceOfEdges, SMDS_MeshEdge, SMDS_Mesh0DElement, SMDS_PolygonalFaceOfNodes, SMDS_PolyhedralVolumeOfNodes, SMDS_MeshVolume, and SMDS_MeshFace.
Referenced by SMDS_MeshInfo::add(), and SMDS_MeshInfo::remove().
|
virtual |
Reimplemented in SMDS_PolygonalFaceOfNodes, and SMDS_PolyhedralVolumeOfNodes.
Definition at line 65 of file SMDS_MeshElement.hxx.
Referenced by SMDS_MeshInfo::RemoveFace(), and SMDS_MeshInfo::RemoveVolume().
|
virtual |
Reimplemented in SMDS_QuadraticVolumeOfNodes, SMDS_QuadraticFaceOfNodes, and SMDS_QuadraticEdge.
Referenced by SMDS_MeshInfo::RemoveEdge().
|
pure virtual |
Return type of entity.
Implemented in SMDS_QuadraticVolumeOfNodes, SMDS_VolumeOfNodes, SMDS_FaceOfNodes, SMDS_VolumeOfFaces, SMDS_MeshNode, SMDS_QuadraticFaceOfNodes, SMDS_QuadraticEdge, SMDS_FaceOfEdges, SMDS_MeshEdge, SMDS_Mesh0DElement, SMDS_PolygonalFaceOfNodes, and SMDS_PolyhedralVolumeOfNodes.
|
virtual |
Reimplemented in SMDS_QuadraticVolumeOfNodes, SMDS_QuadraticFaceOfNodes, and SMDS_QuadraticEdge.
|
virtual |
Return node by its index.
ind | - node index |
const | SMDS_MeshNode* - the node |
Reimplemented in SMDS_QuadraticVolumeOfNodes, SMDS_VolumeOfNodes, SMDS_QuadraticFaceOfNodes, SMDS_PolyhedralVolumeOfNodes, SMDS_MeshNode, SMDS_PolygonalFaceOfNodes, SMDS_FaceOfEdges, SMDS_FaceOfNodes, SMDS_MeshEdge, and SMDS_Mesh0DElement.
const SMDS_MeshNode* SMDS_MeshElement::GetNodeWrap | ( | const int | ind | ) | const |
Return node by its index.
ind | - node index |
const | SMDS_MeshNode* - the node |
Index is wrapped if it is out of a valid range
Definition at line 92 of file SMDS_MeshElement.hxx.
|
virtual |
Return true if index of node is valid (0 <= ind < NbNodes())
ind | - node index |
bool | - index check result |
Return a valid node index, fixing the given one if necessary.
ind | - node index |
int | - valid node index |
Definition at line 106 of file SMDS_MeshElement.hxx.
int SMDS_MeshElement::GetNodeIndex | ( | const SMDS_MeshNode * | node | ) | const |
Check if a node belongs to the element.
node | - the node to check |
int | - node index within the element, -1 if not found |
|
protectedvirtual |
|
friend |
|
friend |
|
private |
Definition at line 124 of file SMDS_MeshElement.hxx.