-protected:
- inline void setId(int id) { myID = id; }
- inline void setVtkId(int vtkId) { myVtkID = vtkId; }
- inline void setIdInShape(int id) { myIdInShape = id; }
- inline void setShapeId(LongType shapeId) { myShapeId = ( shapeId << BITS_SHIFT ) | ( myShapeId & BIT_IS_MARKED ); }
- SMDS_MeshElement(int ID=-1);
- SMDS_MeshElement(int id, ShortType meshId, LongType shapeId = 0);
- virtual void init(int id = -1, ShortType meshId = -1, LongType shapeId = 0);
- virtual void Print(std::ostream & OS) const;
-
- //! Element index in vector SMDS_Mesh::myNodes or SMDS_Mesh::myCells
- int myID;
- //! index in vtkUnstructuredGrid
- int myVtkID;
- //! SMDS_Mesh identification in SMESH
- ShortType myMeshId;
- //! SubShape and SubMesh identification in SMESHDS; one bit is used to mark the element
- LongType myShapeId;
- //! Element index in SMESHDS_SubMesh vector
- int myIdInShape;
-
- enum Bits { // use the 1st right bit of myShapeId to set/unset a mark
- BIT_IS_MARKED = 1,
- BITS_SHIFT = 1
- };
-};