X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMDS%2FSMDS_LinearEdge.hxx;h=75d984e3fd0b61f3de1ef255ba88caaa68f9e0ef;hp=1ac80ee8a52b8c8f129df2af5a2196f152214ebf;hb=a5ebdbe87e2c7f21e10a0db66022e6ca0f9ad1c5;hpb=a17b36970bc61da1d664453c615754997c925b18 diff --git a/src/SMDS/SMDS_LinearEdge.hxx b/src/SMDS/SMDS_LinearEdge.hxx index 1ac80ee8a..75d984e3f 100644 --- a/src/SMDS/SMDS_LinearEdge.hxx +++ b/src/SMDS/SMDS_LinearEdge.hxx @@ -27,42 +27,34 @@ #include "SMESH_SMDS.hxx" -#include "SMDS_MeshEdge.hxx" -#include +#include "SMDS_CellOfNodes.hxx" -class SMDS_EXPORT SMDS_LinearEdge: public SMDS_MeshEdge +class SMDS_EXPORT SMDS_LinearEdge: public SMDS_CellOfNodes { - 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_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); + 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; - /*! - * \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; + virtual int NbCornerNodes() const { return NbNodes(); } + virtual int GetNodeIndex( const SMDS_MeshNode* node ) const; -protected: - SMDS_ElemIteratorPtr - elementsIterator(SMDSAbs_ElementType type) const; + virtual bool IsPoly() const { return false; } + virtual bool IsQuadratic() const { return false; } + + virtual SMDS_ElemIteratorPtr nodesIterator() const; + virtual SMDS_NodeIteratorPtr nodeIterator() const; + + virtual const SMDS_MeshNode* GetNode(const int ind) const; protected: - const SMDS_MeshNode* myNodes[3]; + const SMDS_MeshNode* myNodes[2]; }; #endif