Salome HOME
Code alignment.
[modules/hydro.git] / src / HYDROData / HYDROData_Image.h
index 167d8b54767833d670de08c32ebe3f96804392c4..e2df2a4e2465363e8de8c381e593452dd282df4b 100644 (file)
@@ -16,6 +16,17 @@ DEFINE_STANDARD_HANDLE(HYDROData_Image, HYDROData_Object)
  */
 class HYDROData_Image : public HYDROData_Object
 {
+protected:
+  /**
+   * Enumeration of tags corresponding to the persistent object parameters.
+   */
+  enum DataTag
+  {
+    DataTag_First = HYDROData_Object::DataTag_First + 100, ///< first tag, to reserve
+    DataTag_Operator,   ///< name of the operator that must be executed for image update
+    DataTag_TrsfPoints  ///< image transformation points (3 input + 3 output)
+  };
+
 public:
   DEFINE_STANDARD_RTTI(HYDROData_Image);
 
@@ -46,6 +57,38 @@ public:
    */
   HYDRODATA_EXPORT QTransform Trsf();
 
+  /**
+   * Stores the image transformation points (3 input + 3 output)
+   * \param thePointAIn input point A
+   * \param thePointBIn input point B
+   * \param thePointCIn input point C
+   * \param thePointAOut output point A
+   * \param thePointBOut output point B
+   * \param thePointCOut output point C
+   */
+  HYDRODATA_EXPORT void SetTrsfPoints(const QPoint& thePointAIn,
+                                      const QPoint& thePointBIn,
+                                      const QPoint& thePointCIn,
+                                      const QPointF& thePointAOut,
+                                      const QPointF& thePointBOut,
+                                      const QPointF& thePointCOut);
+
+  /**
+   * Returns the image transformation points (3 input + 3 output)
+   * \param thePointAIn input point A
+   * \param thePointBIn input point B
+   * \param thePointCIn input point C
+   * \param thePointAOut output point A
+   * \param thePointBOut output point B
+   * \param thePointCOut output point C
+   */
+  HYDRODATA_EXPORT void TrsfPoints(QPoint& thePointAIn,
+                                   QPoint& thePointBIn,
+                                   QPoint& thePointCIn,
+                                   QPointF& thePointAOut,
+                                   QPointF& thePointBOut,
+                                   QPointF& thePointCOut);
+
   /**
    * Appends reference to other image.
    * \param theReferenced the image referenced by this