Salome HOME
Fix for the issue #1100
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_Rotation.h
index c3a81d54edf62d691375d61eff66b5c9876510d4..ef56c33eafc67e79573d515ea50d601c27eb87d6 100644 (file)
@@ -12,6 +12,7 @@
 #include <GeomAPI_Ax1.h>
 #include <GeomAPI_DataMapOfShapeShape.h>
 #include <GeomAPI_Shape.h>
+#include <GeomAPI_Trsf.h>
 
 /** \class GeomAlgoAPI_Rotation
  *  \ingroup DataAlgo
@@ -48,6 +49,9 @@ public:
   /// \return interface for for History processing.
   GEOMALGOAPI_EXPORT std::shared_ptr<GeomAlgoAPI_MakeShape> makeShape() const;
 
+  /// Returns the simple transformation
+  GEOMALGOAPI_EXPORT std::shared_ptr<GeomAPI_Trsf> transformation() const;
+
 private:
   /// Builds resulting shape.
   void build(std::shared_ptr<GeomAPI_Shape> theSourceShape,
@@ -60,6 +64,7 @@ private:
   std::shared_ptr<GeomAPI_Shape> myShape;
   std::shared_ptr<GeomAPI_DataMapOfShapeShape> myMap;
   std::shared_ptr<GeomAlgoAPI_MakeShape> myMkShape;
+  std::shared_ptr<GeomAPI_Trsf> myTrsf; ///< transformation of the shape in case theSimpleTransform
 };
 
 #endif