X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_MakeShapeList.h;h=0ba480907d05af9ca60c7527dd8e274f59d3d4bf;hb=f5c7bb3100ed321392da42f61c2ab505833ec61a;hp=8d7975071f5ba92fa724022ffdc569c009f6cd47;hpb=5e90be5a37588dd936e6d5f1a6426141bfda7170;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_MakeShapeList.h b/src/GeomAlgoAPI/GeomAlgoAPI_MakeShapeList.h index 8d7975071..0ba480907 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_MakeShapeList.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_MakeShapeList.h @@ -14,7 +14,7 @@ /** \class GeomAlgoAPI_MakeShapeList * \ingroup DataAlgo - * \brief Interface to the root class of all topological shapes constructions + * \brief List of topological shapes constructions */ class GeomAlgoAPI_MakeShapeList : public GeomAlgoAPI_MakeShape { @@ -37,8 +37,18 @@ public: */ GEOMALGOAPI_EXPORT void init(const ListOfMakeShape& theMakeShapeList); + /** \brief Adds algo to the end of list. + * \param[in] theMakeShape algo to be added. + */ + GEOMALGOAPI_EXPORT void append(const std::shared_ptr theMakeShape); + + /** \brief Adds another one list of algos to the end of list. + * \param[in] theMakeShapeList algo list to be added. + */ + GEOMALGOAPI_EXPORT void append(const GeomAlgoAPI_MakeShapeList& theMakeShapeList); + /// \return a shape built by the shape construction algorithms - GEOMALGOAPI_EXPORT const std::shared_ptr shape() const; + GEOMALGOAPI_EXPORT virtual const std::shared_ptr shape() const; /// \return the list of shapes generated from the shape \a theShape GEOMALGOAPI_EXPORT virtual void generated(const std::shared_ptr theShape, @@ -48,6 +58,9 @@ public: GEOMALGOAPI_EXPORT virtual void modified(const std::shared_ptr theShape, ListOfShape& theHistory); + /// \return whether the shape is deleted + GEOMALGOAPI_EXPORT virtual bool isDeleted(const std::shared_ptr theShape); + private: void result(const std::shared_ptr theShape, ListOfShape& theHistory, @@ -55,7 +68,7 @@ private: protected: - ListOfMakeShape myMakeShapeList; + ListOfMakeShape myListOfMakeShape; ///< List of make shape algos. }; #endif