Salome HOME
refs #682, #684 - #686: create icons for land cover map operations.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_LandCoverMapPrs.h
index 7a930bc0f0b31cb248da9285900c81254e58c27c..dabe4526c0989af7cd63e034256eac0793e50f16 100644 (file)
 
 #include <HYDROData_LandCoverMap.h>
 #include <HYDROData_StricklerTable.h>
-#include <AIS_InteractiveObject.hxx>
+#include <AIS_ColoredShape.hxx>
 #include <Aspect_ColorScale.hxx>
 
-DEFINE_STANDARD_HANDLE( HYDROGUI_LandCoverMapPrs, AIS_InteractiveObject )
+DEFINE_STANDARD_HANDLE( HYDROGUI_LandCoverMapPrs, AIS_ColoredShape )
 
-class HYDROGUI_LandCoverMapPrs : public AIS_InteractiveObject
+class HYDROGUI_LandCoverMapPrs : public AIS_ColoredShape
 {
 public:
   DEFINE_STANDARD_RTTI( HYDROGUI_LandCoverMapPrs );
@@ -47,11 +47,16 @@ 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;
 
+  void UpdateColors();
+
+protected:
+  void SetHilightAttributes( const Quantity_Color& theEdgesColor );
+
 private:
   Handle(HYDROData_LandCoverMap)   myLCMap;
   Handle(Aspect_ColorScale)        myColorScale;