Salome HOME
refs #430: incorrect coordinates in dump polyline
[modules/hydro.git] / src / HYDROData / HYDROData_Image.h
index 633edbe8cc879a3ed5476cee61d3391f9534f00d..7860f41bfbad391ad6269c582e6f073ea8645c8c 100644 (file)
@@ -24,6 +24,7 @@ public:
   {
     ManualGeodesic = 0,
     ManualCartesian,
+    CartesianFromFile,
     ReferenceImage
   };
 
@@ -62,6 +63,11 @@ public:
    */
   HYDRODATA_EXPORT virtual void Update();
 
+  /**
+   * Checks that object has 2D presentation. Reimlemented to retun true.
+   */
+  HYDRODATA_EXPORT virtual bool IsHas2dPrs() const;
+
   /**
    * Returns data of object wrapped to QVariant.
    * Reimplemented to wrap and return saved image.
@@ -69,6 +75,12 @@ public:
    */
   HYDRODATA_EXPORT virtual QVariant GetDataVariant();
 
+  /**
+   * Returns the list of all reference objects of this object.
+   */
+  HYDRODATA_EXPORT virtual HYDROData_SequenceOfObjects GetAllReferenceObjects() const;
+
+
   /**
    * Stores the image
    * \param theImage new image
@@ -186,6 +198,13 @@ public:
                                          QPointF&            thePointB,
                                          QPointF&            thePointC ) const;
 
+  /**
+   * Get transformation points from the file and stores them in global cs
+   * \param theFileName the image georeferencement file name
+   * \return true in case of success
+   */
+  HYDRODATA_EXPORT bool SetGlobalPointsFromFile( const QString& theFileName );
+
   /**
    * Returns true if global points has been set before
    */