X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_CompoundBuilder.h;h=36caf87794da032c67ffc031e8565bc367081ac1;hb=f0cec241aae9ca16d86e166f45cb5c4987d2c792;hp=5cca6ad87819960a48b5c3e54ac670ae7a94e790;hpb=cf45387763e7aec06b955f71082eba8d65057b49;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_CompoundBuilder.h b/src/GeomAlgoAPI/GeomAlgoAPI_CompoundBuilder.h index 5cca6ad87..36caf8779 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_CompoundBuilder.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_CompoundBuilder.h @@ -1,15 +1,17 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: GeomAlgoAPI_CompoundBuilder.h // Created: 24 Apr 2014 // Author: Natalia ERMOLAEVA -#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 +22,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