X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_MakeShape.h;h=186b12c67e794bb7e05eec981099fb9d8579db96;hb=676e0178fdedf35ba607ef9d4f02d871dd06fa28;hp=9357ff432d384322c222df64b44a629e67050fc2;hpb=4fcd5da2d972334e887716499b0ea75d9d6c51c2;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.h b/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.h index 9357ff432..186b12c67 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: GeomAlgoAPI_MakeShape.h // Created: 17 Oct 2014 // Author: Sergey ZARITCHNY @@ -5,34 +7,40 @@ #define GeomAlgoAPI_MakeShape_H_ #include -#include +#include #include -#include + /**\class GeomAlgoAPI_MakeShape - * \ingroup DataModel - * \Interface to the root class of all topological shapes constructions + * \ingroup DataAlgo + * \brief Interface to the root class of all topological shapes constructions */ -class GEOMALGOAPI_EXPORT GeomAlgoAPI_MakeShape +class GeomAlgoAPI_MakeShape : public GeomAPI_Interface { - public: - /// Constructor - GeomAlgoAPI_MakeShape(BRepBuilderAPI_MakeShape * theBuilder); +public: + /// Constructor + GEOMALGOAPI_EXPORT GeomAlgoAPI_MakeShape(); + /// Constructor by the already stored builder in the interface + GEOMALGOAPI_EXPORT GeomAlgoAPI_MakeShape(void* theBuilder); + /// Returns a shape built by the shape construction algorithm - const boost::shared_ptr shape() const; + GEOMALGOAPI_EXPORT const std::shared_ptr shape() const; - /// Returns the list of shapes generated from the shape - virtual const ListOfShape& generated(const boost::shared_ptr theShape); + /// Returns the list of shapes generated from the shape \a theShape + GEOMALGOAPI_EXPORT virtual void generated( + const std::shared_ptr theShape, ListOfShape& theHistory); - /// Returns the list of shapes modified from the shape - virtual const ListOfShape& modified(const boost::shared_ptr theShape); + /// Returns the list of shapes modified from the shape \a theShape + GEOMALGOAPI_EXPORT virtual void modified( + const std::shared_ptr theShape, ListOfShape& theHistory); /// Returns whether the shape is an edge - virtual bool isDeleted(const boost::shared_ptr theShape); + GEOMALGOAPI_EXPORT virtual bool isDeleted(const std::shared_ptr theShape); + /// Initializes the algorithm by the builder stored in the interface + GEOMALGOAPI_EXPORT void init(void* theMkShape); protected: - boost::shared_ptr myShape; - ListOfShape myHistory; - BRepBuilderAPI_MakeShape * myBuilder; + /// The resulting shape + std::shared_ptr myShape; }; -#endif \ No newline at end of file +#endif