Salome HOME
Merge branch 'BR_v14_rc' into BR_quadtree
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Module.h
index a1a0bd540b92a5e0e6dfa4a5cc640d0ab14738fa..3798c08d62a01fea7729a6b25c898e1291286927 100644 (file)
@@ -35,6 +35,8 @@ class SVTK_Viewer;
 class SUIT_ViewWindow;
 class SUIT_ViewManager;
 
+class Handle(HYDROData_StricklerTable);
+
 class HYDROGUI_DataModel;
 class HYDROGUI_Displayer;
 class HYDROGUI_OCCDisplayer;
@@ -109,6 +111,8 @@ public:
   typedef QList<HYDROGUI_VTKPrs*> ListOfVTKPrs;
   typedef QMap<int,ListOfVTKPrs> ViewId2ListOfVTKPrs;
 
+  typedef QMap<int, Handle(HYDROData_StricklerTable)> ViewId2StricklerTable;
+
 public:
   HYDROGUI_Module();
   virtual ~HYDROGUI_Module();
@@ -204,6 +208,34 @@ public:
    */
   QCursor                         getPrefEditCursor() const;
 
+  /**
+   * Returns Strickler table used for Land Cover scalar map coloring in the given view.
+   * @param theViewId the view id
+   * @return the Strickler table used for scalar map coloring of Land Covers in the given view;
+             null - if scalar map coloring is off for the view  
+   */
+  Handle(HYDROData_StricklerTable) getLandCoverColoringTable( const int theViewId ) const;
+
+  /**
+   * Set Strickler table to be used for Land Cover scalar map coloring in the given view.
+   * @param theViewId the view id
+   * @param theTable the Strickler table
+   */
+  void                             setLandCoverColoringTable( const int theViewId,
+                                                              const Handle(HYDROData_StricklerTable)& theTable );
+  /**
+   * Set Land Cover scalar map coloring mode off for the given view.
+   * @param theViewId the view id
+   */
+  void                             setLandCoversScalarMapModeOff( const int theViewId );
+
+  /**
+   * Check if Land Cover scalar map coloring mode is on in the given view.
+   * @param theViewId the view id
+   * @return true if the mode is on, false if the mode is off
+   */
+  bool                             isLandCoversScalarMapModeOn( const int theViewId ) const;
+
 protected:
   CAM_DataModel*                  createDataModel();
 
@@ -279,6 +311,8 @@ private:
   bool                            myIsUpdateEnabled;
 
   QStringList                     myGeomObjectsToImport; ///< entries of GEOM objects to be imported
+
+  ViewId2StricklerTable           myLandCoverColoringMap;
 };
 
 #endif