X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMDS%2FSMDS_MeshElement.hxx;h=94e92223967cb720b2d691f11dfc7c090e37a157;hb=178d2ef645d103ce49228cde6ed35488144ed446;hp=eb0179ccc2eed4ba0bdd0decef677847fb128a84;hpb=6cf440ddd4db6833af295e1cf0fe329e7a55ce14;p=modules%2Fsmesh.git diff --git a/src/SMDS/SMDS_MeshElement.hxx b/src/SMDS/SMDS_MeshElement.hxx index eb0179ccc..94e922239 100644 --- a/src/SMDS/SMDS_MeshElement.hxx +++ b/src/SMDS/SMDS_MeshElement.hxx @@ -41,7 +41,8 @@ typedef short ShortType; class SMDS_MeshNode; class SMDS_MeshEdge; -class SMDS_MeshFace; +class SMDS_MeshFace; +class SMDS_Mesh; // ============================================================ /*! @@ -73,7 +74,8 @@ public: virtual bool IsMediumNode(const SMDS_MeshNode* node) const; friend SMDS_EXPORT std::ostream & operator <<(std::ostream & OS, const SMDS_MeshElement *); - friend SMDS_EXPORT bool SMDS_MeshElementIDFactory::BindID(int ID,SMDS_MeshElement*elem); + friend SMDS_EXPORT bool SMDS_MeshElementIDFactory::BindID(int ID,SMDS_MeshElement* elem); + friend class SMDS_Mesh; // =========================== // Access to nodes by index @@ -119,7 +121,7 @@ public: */ int GetNodeIndex( const SMDS_MeshNode* node ) const; - inline int getId() {return myID; }; + inline int getId() const {return myID; }; inline UShortType getMeshId() {return myMeshId; }; inline ShortType getshapeId() {return myShapeId; }; inline void setShapeId(UShortType shapeId) {myShapeId = shapeId; }; @@ -130,7 +132,7 @@ protected: virtual void Print(std::ostream & OS) const; int myID; // --- element index - UShortType myMeshId; + ShortType myMeshId; ShortType myShapeId; }; @@ -144,8 +146,10 @@ class SMDS_EXPORT SMDS_MeshCell:public SMDS_MeshElement { public: SMDS_MeshCell(); - inline void setVtkId(int vtkId) { myVtkID = vtkId; }; + virtual ~SMDS_MeshCell(); + inline void setVtkId(int vtkId) { myVtkID = vtkId; }; inline int getVtkId() const {return myVtkID; }; + static int nbCells; protected: int myVtkID; };