X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Trsf.h;h=ed97f4bebe32880bb307ba33e64cb9d87d86169d;hb=8f060aedd5949990421a96e3b4086f43efa13d24;hp=630c36fddfa6c17c7924a526671db2d1f3e1eef1;hpb=596cc06a3cdc89783d15e893e7da4b6b882fb442;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Trsf.h b/src/GeomAPI/GeomAPI_Trsf.h index 630c36fdd..ed97f4beb 100644 --- a/src/GeomAPI/GeomAPI_Trsf.h +++ b/src/GeomAPI/GeomAPI_Trsf.h @@ -13,6 +13,7 @@ #include class GeomAPI_Ax1; +class GeomAPI_Pnt; /**\class GeomAPI_Trsf * \ingroup DataModel @@ -43,6 +44,13 @@ class GeomAPI_Trsf : public GeomAPI_Interface 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).