X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Trsf.h;h=822afde1d6a25402570c61bd4f5050d8c16cba52;hb=bdbfb368d71ed11cc0391354a7d86c880cd94949;hp=d5f3ffd5b4a4dcb07c43ea4036bd489ed32d7f40;hpb=fa23c35c1070057c83ffe5106c8e2bc229eea7e1;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Trsf.h b/src/GeomAPI/GeomAPI_Trsf.h index d5f3ffd5b..822afde1d 100644 --- a/src/GeomAPI/GeomAPI_Trsf.h +++ b/src/GeomAPI/GeomAPI_Trsf.h @@ -1,8 +1,10 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D +// Copyright (C) 2014-2016 CEA/DEN, EDF R&D // File: GeomAPI_XYZ.hxx // Created: 13 July 2015 // Author: Mikhail PONIKAROV +// +// Modified by Clarisse Genrault (CEA) : 17 Nov 2016 #ifndef GeomAPI_Trsf_H_ #define GeomAPI_Trsf_H_ @@ -11,6 +13,8 @@ #include class GeomAPI_Ax1; +class GeomAPI_Ax2; +class GeomAPI_Pnt; /**\class GeomAPI_Trsf * \ingroup DataModel @@ -32,12 +36,52 @@ class GeomAPI_Trsf : public GeomAPI_Interface GEOMAPI_EXPORT void setTranslation(const std::shared_ptr theAxis, const double theDistance); + /** \brief Sets a translation transformation using three coordinates. + * \param[in] theDx x coordinate of the translation vector + * \param[in] theDy y coordinate of the translation vector + * \param[in] theDz z coordinate of the translation vector + */ + GEOMAPI_EXPORT void setTranslation(const double theDx, + const double theDy, + const double theDz); + + /** \brief Sets a translation transformation using two points. + * \param[in] theStartPoint Start point of the translation vector. + * \param[in] theEndPoint End point of the translation vector. + */ + GEOMAPI_EXPORT void setTranslation(const std::shared_ptr theStartPoint, + const std::shared_ptr theEndPoint); + /** \brief Sets a rotation transformation. * \param[in] theAxis rotation axis. * \param[in] theAngle rotation angle(in degree). */ GEOMAPI_EXPORT void setRotation(const std::shared_ptr theAxis, const double theAngle); + + /** \brief Sets a rotation transformation using three points. + * \param[in] theCenterPoint rotation center. + * \param[in] theStartPoint start rotation point. + * \param[in] theEndPoint end rotation point. + */ + GEOMAPI_EXPORT void setRotation(const std::shared_ptr theCenterPoint, + const std::shared_ptr theStartPoint, + const std::shared_ptr theEndPoint); + + /** \brief Sets a point symmetry transformation. + * \param[in] thePoint symmetry point. + */ + GEOMAPI_EXPORT void setSymmetry(const std::shared_ptr thePoint); + + /** \brief Sets an axis symmetry transformation. + * \param[in] theAxis symmetry axis. + */ + GEOMAPI_EXPORT void setSymmetry(const std::shared_ptr theAxis); + + /** \brief Sets a plane symmetry transformation. + * \param[in] thePlane symmetry plane. + */ + GEOMAPI_EXPORT void setSymmetry(const std::shared_ptr thePlane); }; #endif