X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_PlanarEdges.h;h=4520c4dfabaa8ef9d5a02e1560be97303afb59f6;hb=6e421e939851e0de46554ae45a3ca0e1f67cd91d;hp=c26ad2505e180e386ff739d3852b85012581ab52;hpb=9bea53a5d0fc5c6aec52f4732ec45a9dcbe7354d;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_PlanarEdges.h b/src/GeomAPI/GeomAPI_PlanarEdges.h index c26ad2505..4520c4dfa 100644 --- a/src/GeomAPI/GeomAPI_PlanarEdges.h +++ b/src/GeomAPI/GeomAPI_PlanarEdges.h @@ -1,8 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: GeomAPI_PlanarEdges.hxx -// Created: 24 Jul 2014 -// Author: Artem ZHIDKOV +// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// +// 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, 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 +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// #ifndef GEOMAPI_WIRE_H_ #define GEOMAPI_WIRE_H_ @@ -21,7 +34,7 @@ * \ingroup DataModel * \brief Interface to the set of edges located in one plane * - * Normally this interface corresponds to theedges of the sketch + * Normally this interface corresponds to the edges of the sketch */ class GeomAPI_PlanarEdges : public GeomAPI_Shape { @@ -54,15 +67,21 @@ class GeomAPI_PlanarEdges : public GeomAPI_Shape /// Returns Z direction vector GEOMAPI_EXPORT std::shared_ptr norm() const; + /// Returns whether the shape is planar + GEOMAPI_EXPORT virtual bool isPlanar() const; + /// Set working plane /// \param theOrigin origin of the plane axis /// \param theDirX X direction of the plane axis - /// \param theDirY Y direction of the plane axis /// \param theNorm normal direction of the plane axis GEOMAPI_EXPORT void setPlane(const std::shared_ptr& theOrigin, const std::shared_ptr& theDirX, const std::shared_ptr& theNorm); + /// Returns whether the shapes are equal + GEOMAPI_EXPORT + virtual bool isEqual(const std::shared_ptr theShape) const; + private: std::shared_ptr myPlane;