Salome HOME
refs #1830: Progress dialog for the interpolation of bathymetry.
[modules/hydro.git] / src / HYDROData / HYDROData_Tool.h
old mode 100644 (file)
new mode 100755 (executable)
index 82e4936..0047995
@@ -25,6 +25,7 @@
 #include <QVector>
 #include <TopTools_SequenceOfShape.hxx>
 #include <NCollection_IndexedDataMap.hxx>
+#include <Message_ProgressIndicator.hxx>
 
 
 class HYDROData_PolylineXY;
@@ -36,6 +37,7 @@ class gp_XY;
 class QColor;
 class QFile;
 class TCollection_ExtendedString;
+
 #ifdef WIN32
   enum TopAbs_State;
 #else
@@ -50,6 +52,14 @@ class QColor;
 
 class HYDRODATA_EXPORT HYDROData_Tool {
 
+public:
+  enum ExecStatus
+  {
+    None,
+    Running,
+    Finished
+  };
+
 public:
 
   static void                           WriteStringsToFile( QFile&             theFile,
@@ -143,7 +153,20 @@ public:
   static TopoDS_Shape RebuildCmp(const TopoDS_Shape& in);
 
   static TopoDS_Shape PolyXY2Face(const Handle(HYDROData_PolylineXY)& aPolyline);
-  
+
+  static void SetSIProgress(const Handle(Message_ProgressIndicator)& thePI);
+  static const Handle(Message_ProgressIndicator)& GetSIProgress();
+
+  static void SetZIProgress(const Handle(Message_ProgressIndicator)& thePI);
+  static const Handle(Message_ProgressIndicator)& GetZIProgress();
+
+  static void SetTriangulationStatus(const ExecStatus& theStatus);
+  static const ExecStatus& GetTriangulationStatus();
+
+private:
+  static Handle(Message_ProgressIndicator)& StricklerInterpolationProgress();
+  static Handle(Message_ProgressIndicator)& BathymetryInterpolationProgress();
+  static ExecStatus myTriangulationStatus;
 };
 
 inline bool ValuesEquals( const double& theFirst, const double& theSecond )