X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMDS%2FSMDS_LinearEdge.hxx;fp=src%2FSMDS%2FSMDS_LinearEdge.hxx;h=1ac80ee8a52b8c8f129df2af5a2196f152214ebf;hb=7f69bf0122b3be1c986dace03f53a78f50d021ad;hp=75d984e3fd0b61f3de1ef255ba88caaa68f9e0ef;hpb=17af9c65254903ebd2c5c92bb3ef58dc707bd70c;p=modules%2Fsmesh.git diff --git a/src/SMDS/SMDS_LinearEdge.hxx b/src/SMDS/SMDS_LinearEdge.hxx index 75d984e3f..1ac80ee8a 100644 --- a/src/SMDS/SMDS_LinearEdge.hxx +++ b/src/SMDS/SMDS_LinearEdge.hxx @@ -27,34 +27,42 @@ #include "SMESH_SMDS.hxx" -#include "SMDS_CellOfNodes.hxx" +#include "SMDS_MeshEdge.hxx" +#include -class SMDS_EXPORT SMDS_LinearEdge: public SMDS_CellOfNodes +class SMDS_EXPORT SMDS_LinearEdge: public SMDS_MeshEdge { + public: SMDS_LinearEdge(const SMDS_MeshNode * node1, const SMDS_MeshNode * node2); + bool ChangeNodes(const SMDS_MeshNode * node1, const SMDS_MeshNode * node2); + void Print(std::ostream & OS) const; - virtual SMDSAbs_ElementType GetType() const { return SMDSAbs_Edge; } - virtual SMDSAbs_GeometryType GetGeomType() const { return SMDSGeom_EDGE; } - virtual SMDSAbs_EntityType GetEntityType() const { return SMDSEntity_Edge; } - virtual bool ChangeNodes(const SMDS_MeshNode* nodes[], const int nbNodes); - virtual int NbNodes() const; - virtual int NbEdges() const; - virtual int NbFaces() const; - - virtual int NbCornerNodes() const { return NbNodes(); } - virtual int GetNodeIndex( const SMDS_MeshNode* node ) const; - - virtual bool IsPoly() const { return false; } - virtual bool IsQuadratic() const { return false; } - - virtual SMDS_ElemIteratorPtr nodesIterator() const; - virtual SMDS_NodeIteratorPtr nodeIterator() const; + virtual SMDSAbs_EntityType GetEntityType() const + { + return SMDSEntity_Edge; + } + virtual bool ChangeNodes(const SMDS_MeshNode* nodes[], const int nbNodes) + { + return false; + } + int NbNodes() const; + int NbEdges() const; + friend bool operator<(const SMDS_LinearEdge& e1, const SMDS_LinearEdge& e2); + /*! + * \brief Return node by its index + * \param ind - node index + * \retval const SMDS_MeshNode* - the node + */ virtual const SMDS_MeshNode* GetNode(const int ind) const; protected: - const SMDS_MeshNode* myNodes[2]; + SMDS_ElemIteratorPtr + elementsIterator(SMDSAbs_ElementType type) const; + +protected: + const SMDS_MeshNode* myNodes[3]; }; #endif