From: eap Date: Mon, 27 Sep 2010 06:21:30 +0000 (+0000) Subject: Remove unused method X-Git-Tag: V5_1_5a1~25 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9167a6a24db64b02c3b1fa2a3af4cb403ccec79f;p=modules%2Fsmesh.git Remove unused method - bool emptyInverseElements(); --- diff --git a/src/SMDS/SMDS_MeshNode.cxx b/src/SMDS/SMDS_MeshNode.cxx index 73610b661..9df6348a5 100644 --- a/src/SMDS/SMDS_MeshNode.cxx +++ b/src/SMDS/SMDS_MeshNode.cxx @@ -239,11 +239,6 @@ void SMDS_MeshNode::ClearInverseElements() myInverseElements.Clear(); } -bool SMDS_MeshNode::emptyInverseElements() -{ - return myInverseElements.IsEmpty() != Standard_False; -} - //================================================================================ /*! * \brief Count inverse elements of given type diff --git a/src/SMDS/SMDS_MeshNode.hxx b/src/SMDS/SMDS_MeshNode.hxx index 2d932f355..9ab02f20f 100644 --- a/src/SMDS/SMDS_MeshNode.hxx +++ b/src/SMDS/SMDS_MeshNode.hxx @@ -38,23 +38,26 @@ class SMDS_EXPORT SMDS_MeshNode:public SMDS_MeshElement public: SMDS_MeshNode(double x, double y, double z); - void Print(std::ostream & OS) const; + double X() const; double Y() const; double Z() const; + void setXYZ(double x, double y, double z); + void AddInverseElement(const SMDS_MeshElement * ME); void RemoveInverseElement(const SMDS_MeshElement * parent); void ClearInverseElements(); - bool emptyInverseElements(); SMDS_ElemIteratorPtr GetInverseElementIterator(SMDSAbs_ElementType type=SMDSAbs_All) const; int NbInverseElements(SMDSAbs_ElementType type=SMDSAbs_All) const; + void SetPosition(const SMDS_PositionPtr& aPos); const SMDS_PositionPtr& GetPosition() const; + SMDSAbs_ElementType GetType() const; SMDSAbs_EntityType GetEntityType() const {return SMDSEntity_Node;} - int NbNodes() const; - void setXYZ(double x, double y, double z); + friend bool operator<(const SMDS_MeshNode& e1, const SMDS_MeshNode& e2); + void Print(std::ostream & OS) const; /*! * \brief Return node by its index @@ -62,6 +65,7 @@ public: * \retval const SMDS_MeshNode* - the node */ virtual const SMDS_MeshNode* GetNode(const int) const { return this; } + virtual int NbNodes() const; protected: SMDS_ElemIteratorPtr