Salome HOME
debug of automatic tests
[modules/hydro.git] / src / HYDROData / HYDROData_Image.h
index 5be02deedd6b8dea9a93a0f8e6dd7eb42ce11a90..31e5b691b8199265d1d2ce49934dd6d04a901768 100644 (file)
@@ -51,6 +51,25 @@ public:
     ReferenceImage
   };
 
+  enum ECW_CellUnits
+  {
+    ECW_CellUnits_Meters = 1,
+    ECW_CellUnits_Deg = 2,
+    ECW_CellUnits_Feet = 3,
+    ECW_CellUnits_Unknown = -1
+  };
+
+  struct ECW_FileInfo
+  {
+    ECW_CellUnits myCellSizeUnits;
+    double myCellIncrementX;
+    double myCellIncrementY;
+    double myOriginX;
+    double myOriginY;
+    int myXSize;
+    int myYSize;
+  };
+
 protected:
   /**
    * Enumeration of tags corresponding to the persistent object parameters.
@@ -117,6 +136,15 @@ public:
    */
   HYDRODATA_EXPORT bool LoadImage(const QString& theFilePath);
 
+  /**
+   * Load the ECW image from file
+   * \param theFilePath path to image
+   */
+  HYDRODATA_EXPORT bool LoadImageECW( const QString& theFilePath );
+
+
+  HYDRODATA_EXPORT static bool OpenECW(char* theFileName, QImage& theImage, ECW_FileInfo* theECWInfo);
+
   /**
    * Returns the kept image
    */