X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_VTKPrsBathymetryDriver.cxx;h=a0731472eae6e3176be9f00cdb10573c19fc10e6;hb=81c9f5cdf82909d0aebd2c491c50fa7516cc80b7;hp=a00cc17a4dddf56227c45737a3bd95eedc181769;hpb=d5288d46b0d85156f7666edf2cef050dc6655eae;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_VTKPrsBathymetryDriver.cxx b/src/HYDROGUI/HYDROGUI_VTKPrsBathymetryDriver.cxx index a00cc17a..a0731472 100644 --- a/src/HYDROGUI/HYDROGUI_VTKPrsBathymetryDriver.cxx +++ b/src/HYDROGUI/HYDROGUI_VTKPrsBathymetryDriver.cxx @@ -26,8 +26,9 @@ #include -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;