#include <HYDROData_Bathymetry.h>
-HYDROGUI_VTKPrsBathymetryDriver::HYDROGUI_VTKPrsBathymetryDriver()
+HYDROGUI_VTKPrsBathymetryDriver::HYDROGUI_VTKPrsBathymetryDriver( vtkScalarBarActor* theScalarBar )
{
+ myScalarBar = theScalarBar;
}
HYDROGUI_VTKPrsBathymetryDriver::~HYDROGUI_VTKPrsBathymetryDriver()
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;