From 62763faa582b2f4b55fa209212806cef3f0cc64d Mon Sep 17 00:00:00 2001 From: Andrew Hoopes Date: Tue, 22 Jun 2021 09:44:12 -0400 Subject: [PATCH] bf: vtkutils update for vtk8 --- vtkutils/vtkRGBAColorTransferFunction.cxx | 4 ++++ vtkutils/vtkRGBAColorTransferFunction.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/vtkutils/vtkRGBAColorTransferFunction.cxx b/vtkutils/vtkRGBAColorTransferFunction.cxx index 604946315e2..2c3b79f858f 100644 --- a/vtkutils/vtkRGBAColorTransferFunction.cxx +++ b/vtkutils/vtkRGBAColorTransferFunction.cxx @@ -585,7 +585,11 @@ void vtkRGBAColorTransferFunction::AddHSVASegment( //------------------------------------------------------------------------------ // Returns the RGBA color evaluated at the specified location +#if VTK_MAJOR_VERSION > 7 +const unsigned char* vtkRGBAColorTransferFunction::MapValue(double x) +#else unsigned char* vtkRGBAColorTransferFunction::MapValue(double x) +#endif { double rgb[4]; this->GetColor(x, rgb); diff --git a/vtkutils/vtkRGBAColorTransferFunction.h b/vtkutils/vtkRGBAColorTransferFunction.h index cba820b2a2d..6ddc38dc7a9 100644 --- a/vtkutils/vtkRGBAColorTransferFunction.h +++ b/vtkutils/vtkRGBAColorTransferFunction.h @@ -128,7 +128,11 @@ class VTKRENDERINGCORE_EXPORT vtkRGBAColorTransferFunction : public vtkScalarsTo /** * Map one value through the lookup table. */ +#if VTK_MAJOR_VERSION > 7 + const unsigned char* MapValue(double v) override; +#else unsigned char* MapValue(double v) override; +#endif ///@{ /**