X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_CompoundBuilder.h;h=66081ef389fb6631f5e147ade38ef1c9f60330e3;hb=77ce6d35ac8d2f0fdaecb4f23e0870bf74e36103;hp=5cca6ad87819960a48b5c3e54ac670ae7a94e790;hpb=0eb1324aa68cf606e0c556f900c289c6a485c13e;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_CompoundBuilder.h b/src/GeomAlgoAPI/GeomAlgoAPI_CompoundBuilder.h index 5cca6ad87..66081ef38 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_CompoundBuilder.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_CompoundBuilder.h @@ -1,15 +1,30 @@ -// File: GeomAlgoAPI_CompoundBuilder.h -// Created: 24 Apr 2014 -// Author: Natalia ERMOLAEVA +// Copyright (C) 2014-2024 CEA, EDF +// +// 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_CompoundBuilder_HeaderFile -#define GeomAlgoAPI_CompoundBuilder_HeaderFile +#ifndef GeomAlgoAPI_CompoundBuilder_H_ +#define GeomAlgoAPI_CompoundBuilder_H_ #include #include #include #include -#include +#include #include @@ -20,11 +35,17 @@ class GEOMALGOAPI_EXPORT GeomAlgoAPI_CompoundBuilder { -public: + public: /// Creates compund of the given shapes /// \param theShapes a list of shapes - static boost::shared_ptr compound - (std::list > theShapes); + static std::shared_ptr compound( + std::list > theShapes); + + /// Produces the integerr identifier of the shape theSub in theContext (needed for + /// groups export to old GEOM) + /// \returns zero if theSub not found in theContext + static int id( + std::shared_ptr theContext, std::shared_ptr theSub); }; #endif