X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_MakeSweep.h;h=0d6bfd38c8997471761875f7742f8628f1a865c5;hb=caa2ac92b289e88592286da703c871dd58147b88;hp=fee768599be12c4c3ca64f3006f580432b4ddef2;hpb=0d9a107853208317a6352bb7f8c77eb54d5efbe1;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_MakeSweep.h b/src/GeomAlgoAPI/GeomAlgoAPI_MakeSweep.h index fee768599..0d6bfd38c 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_MakeSweep.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_MakeSweep.h @@ -1,8 +1,23 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D +// Copyright (C) 2014-2017 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 +// -// File: GeomAlgoAPI_MakeSweep.h -// Created: 23 November 2015 -// Author: Dmitry Bobylev #ifndef GeomAlgoAPI_MakeSweep_H_ #define GeomAlgoAPI_MakeSweep_H_ @@ -26,18 +41,35 @@ class GeomAlgoAPI_MakeSweep : public GeomAlgoAPI_MakeShapeList { public: - /// \returns the list of from faces. - GEOMALGOAPI_EXPORT const ListOfShape& fromFaces() const; + /// \returns the list of from shapes. + GEOMALGOAPI_EXPORT const ListOfShape& fromShapes() const; - /// \return the list of to faces. - GEOMALGOAPI_EXPORT const ListOfShape& toFaces() const; + /// \return the list of to shapes. + GEOMALGOAPI_EXPORT const ListOfShape& toShapes() const; + + /// \brief Adds a shape to list of from shape. + /// \param[in] theShape a shape to add. + GEOMALGOAPI_EXPORT void addFromShape(const std::shared_ptr theShape); + + /// \brief Sets from shapes + /// \param[in] theListOfShapes list of from shapes. + GEOMALGOAPI_EXPORT void setFromShapes(const ListOfShape& theListOfShapes); + + /// \brief Adds a face to list of to shape. + /// \param[in] theShape a face to add. + GEOMALGOAPI_EXPORT void addToShape(const std::shared_ptr theShape); + + /// \brief Sets to shapes + /// \param[in] theListOfShapes list of to shapes. + GEOMALGOAPI_EXPORT void setToShapes(const ListOfShape& theListOfShapes); protected: - GeomAlgoAPI_MakeSweep(){}; + /// Empty constructor. + GeomAlgoAPI_MakeSweep() : GeomAlgoAPI_MakeShapeList() {}; private: - ListOfShape myFromFaces; - ListOfShape myToFaces; + ListOfShape myFromShapes; + ListOfShape myToShapes; }; #endif