X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_VTKPrsBathymetry.h;h=8b8cd54f53274b6943aae63bde85ebc3b7cc31e7;hb=f34b90e9e4e02ba65419134d5d37a2e42aecfabf;hp=3a4098c718cb11fa05b455999ee4ef5c2cf75ab2;hpb=d5288d46b0d85156f7666edf2cef050dc6655eae;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.h b/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.h index 3a4098c7..8b8cd54f 100644 --- a/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.h +++ b/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.h @@ -27,6 +27,11 @@ #include +#include +#include +#include +#include + /* Class : HYDROGUI_VTKPrsBathymetry Description : Presentation for Bathymetry object @@ -37,7 +42,18 @@ public: HYDROGUI_VTKPrsBathymetry( const Handle(HYDROData_Bathymetry)& theObject ); virtual ~HYDROGUI_VTKPrsBathymetry(); - virtual void compute(); + virtual void compute(); + virtual bool needScalarBar() { return true; } + + //! Get the range of colored + void setLookupTable( vtkScalarsToColors* theTable ) { myLookupTable = theTable; } + +protected: + virtual vtkMapper* mapper() { return myMapper.GetPointer(); } + +private: + vtkWeakPointer< vtkScalarsToColors > myLookupTable; + vtkNew< vtkPolyDataMapper > myMapper; }; #endif