Salome HOME
Selector implementation for OCC viewer.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_CalculationOp.h
index 46ab3bf0da50860ddc8d57352ec38722f37c5bd3..17cebaff607581ea15f04bfbe34c0df16c1a16aa 100644 (file)
@@ -29,6 +29,7 @@
 #include "HYDROGUI_Shape.h"
 
 #include <HYDROData_Calculation.h>
+#include <HYDROData_Region.h>
 
 class SUIT_ViewManager;
 class OCCViewer_ViewManager;
@@ -37,22 +38,22 @@ class HYDROGUI_CalculationOp : public HYDROGUI_Operation
 {
   Q_OBJECT
 
-  struct SplittedZone
+  struct Region
   {
-    QString                            ZoneName;
-    QString                            PolylineName;
+    QString                            RegionName;
     QColor                             FillingColor;
     QColor                             BorderColor;
     HYDROGUI_SplitZonesTool::SplitData SplitData;
     HYDROGUI_Shape*                    Shape;
+    Handle(HYDROData_Region)           DataRegion;
 
-    SplittedZone()
+    Region()
     : Shape( NULL ),
       FillingColor( Qt::green ),
       BorderColor( Qt::transparent )
     { }
 
-    ~SplittedZone()
+    ~Region()
     {
       if ( Shape )
       {
@@ -62,7 +63,7 @@ class HYDROGUI_CalculationOp : public HYDROGUI_Operation
     }
   };
 
-  typedef QList<SplittedZone>         SplittedZonesList;
+  typedef QList<Region>         RegionsList;
 
 public:
   HYDROGUI_CalculationOp( HYDROGUI_Module* theModule, bool theIsEdit );
@@ -92,7 +93,7 @@ private:
   SUIT_ViewManager*               myActiveViewManager;
 
   OCCViewer_ViewManager*          myPreviewViewManager;
-  SplittedZonesList               mySplittedZones;
+  RegionsList                     myRegionsList;
 };
 
 #endif