Salome HOME
refs #426: grammatic error
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_VTKPrsBathymetryDriver.cxx
index a00cc17a4dddf56227c45737a3bd95eedc181769..a0731472eae6e3176be9f00cdb10573c19fc10e6 100644 (file)
@@ -26,8 +26,9 @@
 
 #include <HYDROData_Bathymetry.h>
 
-HYDROGUI_VTKPrsBathymetryDriver::HYDROGUI_VTKPrsBathymetryDriver()
+HYDROGUI_VTKPrsBathymetryDriver::HYDROGUI_VTKPrsBathymetryDriver( vtkScalarBarActor* theScalarBar )
 {
+  myScalarBar = theScalarBar;
 }
 
 HYDROGUI_VTKPrsBathymetryDriver::~HYDROGUI_VTKPrsBathymetryDriver()
@@ -50,10 +51,8 @@ bool HYDROGUI_VTKPrsBathymetryDriver::Update( const Handle(HYDROData_Entity)& th
     thePrs = new HYDROGUI_VTKPrsBathymetry( aBathymetry );
 
   HYDROGUI_VTKPrsBathymetry* aPrsBathymetry = (HYDROGUI_VTKPrsBathymetry*)thePrs;
-
-  //aPrsBathymetry->setName( aBathymetry->GetName() );
-  //aPrsBathymetry->setPath( aBathymetry->GetPainterPath() );
-
+  // Update global colors table during compute if necessary
+  aPrsBathymetry->setLookupTable( myScalarBar->GetLookupTable() );
   aPrsBathymetry->compute();
 
   return true;