Salome HOME
Merge branch 'BR_LAND_COVER_MAP' of ssh://git.salome-platform.org/modules/hydro into...
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_LandCoverMapPrs.h
index 50a3f9d1888dba0e9af657ddee20156d713ed482..e1acc832233537f8a33a1df5da74bd7c4492cc9e 100644 (file)
 
 #include <HYDROData_LandCoverMap.h>
 #include <HYDROData_StricklerTable.h>
-#include <AIS_Shape.hxx>
+#include <AIS_ColoredShape.hxx>
 #include <Aspect_ColorScale.hxx>
 
-class HYDROGUI_LandCoverMapPrs : public AIS_Shape
+DEFINE_STANDARD_HANDLE( HYDROGUI_LandCoverMapPrs, AIS_ColoredShape )
+
+class HYDROGUI_LandCoverMapPrs : public AIS_ColoredShape
 {
 public:
+  DEFINE_STANDARD_RTTI( HYDROGUI_LandCoverMapPrs );
+
+  HYDROGUI_LandCoverMapPrs( const Handle(HYDROData_LandCoverMap)& );
+  virtual ~HYDROGUI_LandCoverMapPrs();
+
   Handle(HYDROData_LandCoverMap) GetLandCoverMap() const;
   void SetLandCoverMap( const Handle(HYDROData_LandCoverMap)& );
 
@@ -40,11 +47,15 @@ public:
                         const Handle(Prs3d_Presentation)& thePresentation,
                         const Standard_Integer theMode );
 
-  virtual void ComputeSelection( const Handle(SelectMgr_Selection)& theSelection,
-                                 const Standard_Integer theMode );
+  virtual void HilightSelected( const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
+                                const SelectMgr_SequenceOfOwner& theOwners );
 
   Quantity_Color GetColor( const QString& theStricklerType ) const;
 
+protected:
+  void UpdateColors();
+  void SetHilightAttributes( const Quantity_Color& theEdgesColor );
+
 private:
   Handle(HYDROData_LandCoverMap)   myLCMap;
   Handle(Aspect_ColorScale)        myColorScale;