Skip to content

Commit

Permalink
bf: vtkutils update for vtk8
Browse files Browse the repository at this point in the history
  • Loading branch information
ahoopes committed Jun 22, 2021
1 parent 8bc750c commit 62763fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vtkutils/vtkRGBAColorTransferFunction.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 4 additions & 0 deletions vtkutils/vtkRGBAColorTransferFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

///@{
/**
Expand Down

0 comments on commit 62763fa

Please sign in to comment.