VTK  9.3.0
vtkColorTransferFunctionItem.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
3
4#ifndef vtkColorTransferFunctionItem_h
5#define vtkColorTransferFunctionItem_h
6
7#include "vtkChartsCoreModule.h" // For export macro
9
10VTK_ABI_NAMESPACE_BEGIN
12class vtkImageData;
13
14// Description:
15// vtkPlot::Color, vtkPlot::Brush, vtkScalarsToColors::DrawPolyLine,
16// vtkScalarsToColors::MaskAboveCurve have no effect here.
17class VTKCHARTSCORE_EXPORT vtkColorTransferFunctionItem : public vtkScalarsToColorsItem
18{
19public:
22 void PrintSelf(ostream& os, vtkIndent indent) override;
23
25 vtkGetObjectMacro(ColorTransferFunction, vtkColorTransferFunction);
26
27protected:
30
31 // Description:
32 // Reimplemented to return the range of the lookup table
33 void ComputeBounds(double bounds[4]) override;
34
35 void ComputeTexture() override;
37
42 bool ConfigurePlotBar() override;
43
44private:
46 void operator=(const vtkColorTransferFunctionItem&) = delete;
47};
48
49VTK_ABI_NAMESPACE_END
50#endif
bool ConfigurePlotBar() override
Override the histogram plotbar configuration in order to set the color transfer function on it.
void ComputeTexture() override
Need to be reimplemented by subclasses, ComputeTexture() is called at paint time if the texture is no...
vtkColorTransferFunction * ColorTransferFunction
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ComputeBounds(double bounds[4]) override
~vtkColorTransferFunctionItem() override
static vtkColorTransferFunctionItem * New()
void SetColorTransferFunction(vtkColorTransferFunction *t)
Defines a transfer function for mapping a property to an RGB color value.
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:29
Abstract class for ScalarsToColors items.