27 #ifndef _SMDS_MeshElement_HeaderFile
28 #define _SMDS_MeshElement_HeaderFile
40 #include <vtkCellType.h>
41 #include <smIdType.hxx>
114 virtual bool IsValidIndex(
const int ind)
const;
121 int WrappedIndex(
const int ind)
const;
131 virtual smIdType GetID()
const;
132 virtual vtkIdType GetVtkID()
const;
134 virtual int GetShapeID()
const;
137 virtual void setIsMarked(
bool is )
const;
138 virtual bool isMarked()
const;
141 bool IsNull()
const {
return myHolder == 0; }
145 void Print(std::ostream & OS)
const;
186 void setVtkID(
const vtkIdType vtkID );
187 virtual void setShapeID(
const int shapeID )
const;
SMDSAbs_GeometryType
enumeration for element geometry type
Definition: SMDSAbs_ElementType.hxx:47
@ SMDSGeom_NONE
Definition: SMDSAbs_ElementType.hxx:66
SMDSAbs_ElementType
Type (node, edge, face or volume) of elements.
Definition: SMDSAbs_ElementType.hxx:34
@ SMDSAbs_NbElementTypes
Definition: SMDSAbs_ElementType.hxx:42
SMDSAbs_EntityType
Enumeration of entity type used in mesh info array.
Definition: SMDSAbs_ElementType.hxx:79
@ SMDSEntity_Last
Definition: SMDSAbs_ElementType.hxx:106
boost::shared_ptr< SMDS_Iterator< const SMDS_MeshElement * > > SMDS_ElemIteratorPtr
Definition: SMDS_ElemIterator.hxx:43
boost::shared_ptr< SMDS_Iterator< const SMDS_MeshNode * > > SMDS_NodeIteratorPtr
Definition: SMDS_ElemIterator.hxx:46
ostream & operator<<(ostream &OS, const SMDS_MeshElement *e)
Definition: SMDS_MeshElement.cxx:212
#define SMDS_EXPORT
Definition: SMESH_SMDS.hxx:37
Allocate SMDS_MeshElement's (SMDS_MeshCell's or SMDS_MeshNode's ) and bind some attributes to element...
Definition: SMDS_ElementFactory.hxx:374
Allocate SMDS_MeshElement's (SMDS_MeshCell's or SMDS_MeshNode's ) and bind some attributes to element...
Definition: SMDS_ElementFactory.hxx:65
Base class for elements.
Definition: SMDS_MeshElement.hxx:56
virtual bool IsPoly() const =0
virtual int getshapeId() const
Definition: SMDS_MeshElement.hxx:133
virtual smIdType GetID() const
Return ID of an element.
Definition: SMDS_MeshElement.cxx:108
SMDS_StdIterator< const SMDS_MeshNode *, SMDS_NodeIteratorPtr > iterator
Definition: SMDS_MeshElement.hxx:69
virtual int NbCornerNodes() const =0
iterator end_nodes() const
Definition: SMDS_MeshElement.hxx:71
virtual int NbFaces() const =0
virtual SMDSAbs_EntityType GetEntityType() const =0
virtual int NbEdges() const =0
const SMDS_MeshNode * GetNodeWrap(const int ind) const
Return node by its index.
Definition: SMDS_MeshElement.hxx:107
virtual SMDS_ElemIteratorPtr nodesIterator() const =0
virtual SMDSAbs_GeometryType GetGeomType() const =0
virtual bool IsQuadratic() const =0
bool IsNull() const
Definition: SMDS_MeshElement.hxx:141
virtual const SMDS_MeshNode * GetNode(const int ind) const =0
Return node by its index.
virtual SMDS_NodeIteratorPtr interlacedNodesIterator() const
Definition: SMDS_MeshElement.hxx:65
virtual SMDS_NodeIteratorPtr nodesIteratorToUNV() const
Definition: SMDS_MeshElement.hxx:66
virtual int NbNodes() const =0
virtual SMDSAbs_ElementType GetType() const =0
iterator begin_nodes() const
Definition: SMDS_MeshElement.hxx:70
virtual SMDS_NodeIteratorPtr nodeIterator() const =0
SMDS_ElementChunk * myHolder
Definition: SMDS_MeshElement.hxx:193
virtual VTKCellType GetVtkType() const =0
Definition: SMDS_MeshNode.hxx:36
Definition: SMDS_MeshObject.hxx:33
Definition: SMDS_Mesh.hxx:53
Wrapper over pointer to SMDS_Iterator, like SMDS_ElemIteratorPtr, enabling its usage in std-like way:...
Definition: SMDS_StdIterator.hxx:38
Definition: SMDS_UnstructuredGrid.hxx:74
Definition: SMESHDS_SubMesh.hxx:48
void Print(SharedPtr< TimeStampValueType > theTimeStampValue)
Definition: MED_Wrapper.cxx:161
Definition: SMDS_MeshElement.hxx:170
bool operator()(const SMDS_MeshElement *e) const
Definition: SMDS_MeshElement.hxx:173
EntityFilter(SMDSAbs_EntityType t=SMDSEntity_Last)
Definition: SMDS_MeshElement.hxx:172
SMDSAbs_EntityType _type
Definition: SMDS_MeshElement.hxx:171
Filters of elements, to be used with SMDS_SetIterator.
Definition: SMDS_MeshElement.hxx:155
virtual ~Filter()
Definition: SMDS_MeshElement.hxx:157
virtual bool operator()(const SMDS_MeshElement *e) const =0
Definition: SMDS_MeshElement.hxx:176
SMDSAbs_GeometryType _type
Definition: SMDS_MeshElement.hxx:177
bool operator()(const SMDS_MeshElement *e) const
Definition: SMDS_MeshElement.hxx:179
GeomFilter(SMDSAbs_GeometryType t=SMDSGeom_NONE)
Definition: SMDS_MeshElement.hxx:178
Definition: SMDS_MeshElement.hxx:160
bool operator()(const SMDS_MeshElement *e) const
Definition: SMDS_MeshElement.hxx:161
Definition: SMDS_MeshElement.hxx:164
bool operator()(const SMDS_MeshElement *e) const
Definition: SMDS_MeshElement.hxx:167
SMDSAbs_ElementType _type
Definition: SMDS_MeshElement.hxx:165
TypeFilter(SMDSAbs_ElementType t=SMDSAbs_NbElementTypes)
Definition: SMDS_MeshElement.hxx:166
Definition: SMDS_MeshElement.hxx:209
bool operator()(const SMDS_MeshElement *e1, const SMDS_MeshElement *e2) const
Definition: SMDS_MeshElement.hxx:210
Comparator of elements by ID for usage in std containers.
Definition: SMDS_MeshElement.hxx:202
bool operator()(const SMDS_MeshElement *e1, const SMDS_MeshElement *e2) const
Definition: SMDS_MeshElement.hxx:203