X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_MakeSweep.h;h=05623740b622cd0837c1dcd4f412fec1f2f48c27;hb=d8101383b10bf780a1acf5a356007ad6dbf17711;hp=a25bbe681b605e23f43cc51bc9d7bababa77eb17;hpb=811b2ca2d1a046ba83da8c4848c2d3cf061b6afa;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_MakeSweep.h b/src/GeomAlgoAPI/GeomAlgoAPI_MakeSweep.h index a25bbe681..05623740b 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_MakeSweep.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_MakeSweep.h @@ -26,18 +26,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; -protected: - GeomAlgoAPI_MakeSweep(){}; + /// \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: - ListOfShape myFromFaces; - ListOfShape myToFaces; + /// Empty constructor. + GeomAlgoAPI_MakeSweep() : GeomAlgoAPI_MakeShapeList() {}; + +private: + ListOfShape myFromShapes; + ListOfShape myToShapes; }; #endif