X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMDS%2FSMDS_Mesh0DElement.hxx;h=d7894ea6160cd5d829c807924789f188f5366663;hp=81578a81698665f12ec4ea275e58f8e1068b4da4;hb=d9f4b53e489dd5857db264ede6acded7b076c9f1;hpb=bd4e115a78b52e3fbc016e5e30bb0e19b2a9e7d6 diff --git a/src/SMDS/SMDS_Mesh0DElement.hxx b/src/SMDS/SMDS_Mesh0DElement.hxx index 81578a816..d7894ea61 100644 --- a/src/SMDS/SMDS_Mesh0DElement.hxx +++ b/src/SMDS/SMDS_Mesh0DElement.hxx @@ -1,9 +1,9 @@ -// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,7 +17,7 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // -// SMESH SMDS : implementaion of Salome mesh data structure +// SMESH SMDS : implementation of Salome mesh data structure // File : SMDS_Mesh0DElement.hxx // Module : SMESH // @@ -28,29 +28,15 @@ #include "SMDS_MeshCell.hxx" -#include - +/*! + * \brief 0D mesh element. This type is not allocated. + * It is only used as function argument type to provide more clear semantic. + */ class SMDS_EXPORT SMDS_Mesh0DElement: public SMDS_MeshCell { public: - SMDS_Mesh0DElement (const SMDS_MeshNode * node); - bool ChangeNode (const SMDS_MeshNode * node); - virtual bool ChangeNodes(const SMDS_MeshNode* nodes[], const int nbNodes) {return false;}; - virtual void Print (std::ostream & OS) const; - - virtual SMDSAbs_ElementType GetType() const; - virtual vtkIdType GetVtkType() const; - virtual SMDSAbs_EntityType GetEntityType() const {return SMDSEntity_0D;} - virtual SMDSAbs_GeometryType GetGeomType() const { return SMDSGeom_POINT; } - virtual const SMDS_MeshNode* GetNode (const int ind) const; - virtual int NbNodes() const; - virtual int NbEdges() const; - - protected: - virtual SMDS_ElemIteratorPtr elementsIterator (SMDSAbs_ElementType type) const; - protected: - const SMDS_MeshNode* myNode; + static SMDSAbs_ElementType Type() { return SMDSAbs_0DElement; } }; #endif