X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_MakeShapeCustom.h;h=b40be782475b00acf5e9b0983d54184c96da32a4;hb=879a4d6ef89c8b18a6bb66ba3e87fca445884b37;hp=616b108e8e9879f6c91307b0480a0a055bbc51b4;hpb=811b2ca2d1a046ba83da8c4848c2d3cf061b6afa;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_MakeShapeCustom.h b/src/GeomAlgoAPI/GeomAlgoAPI_MakeShapeCustom.h index 616b108e8..b40be7824 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_MakeShapeCustom.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_MakeShapeCustom.h @@ -1,8 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: GeomAlgoAPI_MakeShapeCustom.h -// Created: 4 September 2015 -// Author: Dmitry Bobylev +// 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 GeomAlgoAPI_MakeShapeCustom_H_ #define GeomAlgoAPI_MakeShapeCustom_H_ @@ -23,29 +36,29 @@ public: GEOMALGOAPI_EXPORT GeomAlgoAPI_MakeShapeCustom(); /// Sets result shape. - GEOMALGOAPI_EXPORT void setResult(const std::shared_ptr theShape); + GEOMALGOAPI_EXPORT void setResult(const GeomShapePtr theShape); /// Adds modified shape. - GEOMALGOAPI_EXPORT bool addModified(const std::shared_ptr theBase, - const std::shared_ptr theResult); + GEOMALGOAPI_EXPORT bool addModified(const GeomShapePtr theOldShape, + const GeomShapePtr theNewShape); /// Adds generated shape. - GEOMALGOAPI_EXPORT bool addGenerated(const std::shared_ptr theBase, - const std::shared_ptr theResult); + GEOMALGOAPI_EXPORT bool addGenerated(const GeomShapePtr theOldShape, + const GeomShapePtr theNewShape); /// Adds deleted shape. - GEOMALGOAPI_EXPORT bool addDeleted(const std::shared_ptr theShape); + GEOMALGOAPI_EXPORT bool addDeleted(const GeomShapePtr theOldShape); /// \return the list of shapes generated from the shape theShape - GEOMALGOAPI_EXPORT void generated(const std::shared_ptr theShape, - ListOfShape& theHistory); + GEOMALGOAPI_EXPORT void generated(const GeomShapePtr theOldShape, + ListOfShape& theNewShapes); /// \return the list of shapes modified from the shape theShape - GEOMALGOAPI_EXPORT void modified(const std::shared_ptr theShape, - ListOfShape& theHistory); + GEOMALGOAPI_EXPORT void modified(const GeomShapePtr theShape, + ListOfShape& theNewShapes); /// \return whether the shape is deleted - GEOMALGOAPI_EXPORT bool isDeleted(const std::shared_ptr theShape); + GEOMALGOAPI_EXPORT bool isDeleted(const GeomShapePtr theOldShape); private: GeomAPI_DataMapOfShapeMapOfShapes myGenerated;