Salome HOME
Fix compilation on Linux
[modules/shaper.git] / src / GeomAPI / GeomAPI_Trsf.h
index ebb7871f9e55121a679c80da20e55b5dadfb194f..d5f3ffd5b4a4dcb07c43ea4036bd489ed32d7f40 100644 (file)
@@ -10,6 +10,8 @@
 #include <GeomAPI_Interface.h>
 #include <memory>
 
+class GeomAPI_Ax1;
+
 /**\class GeomAPI_Trsf
  * \ingroup DataModel
  * \brief Keep the transformation matrix coefficients
@@ -22,6 +24,20 @@ class GeomAPI_Trsf : public GeomAPI_Interface
   GEOMAPI_EXPORT GeomAPI_Trsf();
   /// Takes the pointer to existing transformation
   GEOMAPI_EXPORT GeomAPI_Trsf(void* theTrsf);
+
+  /** \brief Sets a translation transformation.
+   *  \param[in] theAxis     translation axis.
+   *  \param[in] theDistance translation distance.
+   */
+  GEOMAPI_EXPORT void setTranslation(const std::shared_ptr<GeomAPI_Ax1> theAxis,
+                                     const double theDistance);
+
+  /** \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<GeomAPI_Ax1> theAxis,
+                                  const double theAngle);
 };
 
 #endif