X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_Rotation.h;h=ef56c33eafc67e79573d515ea50d601c27eb87d6;hb=f5c7bb3100ed321392da42f61c2ab505833ec61a;hp=5a44625a2e224a3909c7d651e56f2fb2b731852f;hpb=c39f725bfe98395871c5853dacb89ab1a6ecc6f2;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Rotation.h b/src/GeomAlgoAPI/GeomAlgoAPI_Rotation.h index 5a44625a2..ef56c33ea 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Rotation.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Rotation.h @@ -12,6 +12,7 @@ #include #include #include +#include /** \class GeomAlgoAPI_Rotation * \ingroup DataAlgo @@ -24,12 +25,10 @@ public: * \param[in] theSourceShape a shape to be rotated. * \param[in] theAxis rotation axis. * \param[in] theAngle rotation angle(in degree). - * \param[in] theSimpleTransform makes just transformation of shape without changing of topology or geometry */ GEOMALGOAPI_EXPORT GeomAlgoAPI_Rotation(std::shared_ptr theSourceShape, std::shared_ptr theAxis, - double theAngle, - bool theSimpleTransform = false); + double theAngle); /// \return true if algorithm succeed. GEOMALGOAPI_EXPORT const bool isDone() const @@ -50,12 +49,14 @@ public: /// \return interface for for History processing. GEOMALGOAPI_EXPORT std::shared_ptr makeShape() const; + /// Returns the simple transformation + GEOMALGOAPI_EXPORT std::shared_ptr transformation() const; + private: /// Builds resulting shape. void build(std::shared_ptr theSourceShape, std::shared_ptr theAxis, - double theAngle, - bool theSimpleTransform); + double theAngle); private: /// Fields. @@ -63,6 +64,7 @@ private: std::shared_ptr myShape; std::shared_ptr myMap; std::shared_ptr myMkShape; + std::shared_ptr myTrsf; ///< transformation of the shape in case theSimpleTransform }; #endif