Salome HOME
The bathymetry is changed to their base altitude class for geometry objects (Bug...
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_PrsZoneDriver.cxx
index 5edfaa1d605e37385440a8d6cbc600003944e2c8..ef2e4e2659aad65f5b8df994600f4faf8217ca36 100644 (file)
@@ -24,7 +24,7 @@
 
 #include "HYDROGUI_PrsZone.h"
 
-#include <HYDROData_Zone.h>
+#include <HYDROData_ImmersibleZone.h>
 
 HYDROGUI_PrsZoneDriver::HYDROGUI_PrsZoneDriver()
 :HYDROGUI_PrsDriver()
@@ -35,7 +35,7 @@ HYDROGUI_PrsZoneDriver::~HYDROGUI_PrsZoneDriver()
 {
 }
 
-bool HYDROGUI_PrsZoneDriver::Update( const Handle(HYDROData_Object)& theObj,
+bool HYDROGUI_PrsZoneDriver::Update( const Handle(HYDROData_Entity)& theObj,
                                      HYDROGUI_Prs*& thePrs )
 {
   HYDROGUI_PrsDriver::Update( theObj, thePrs );
@@ -43,7 +43,8 @@ bool HYDROGUI_PrsZoneDriver::Update( const Handle(HYDROData_Object)& theObj,
   if ( theObj.IsNull() )
     return false;
 
-  Handle(HYDROData_Zone) aZone = Handle(HYDROData_Zone)::DownCast( theObj );
+  Handle(HYDROData_ImmersibleZone) aZone = 
+    Handle(HYDROData_ImmersibleZone)::DownCast( theObj );
   if ( aZone.IsNull() )
     return false;
 
@@ -57,7 +58,8 @@ bool HYDROGUI_PrsZoneDriver::Update( const Handle(HYDROData_Object)& theObj,
   aPrsZone->setFillingColor( aZone->GetFillingColor() );
   aPrsZone->setBorderColor( aZone->GetBorderColor() );
 
-  aPrsZone->setPath( aZone->GetPainterPath() );
+  // ouv: the method is no more
+  //aPrsZone->setPath( aZone->GetPainterPath() );
 
   aPrsZone->compute();