VTK  9.4.20241221
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
10
11VTK_ABI_NAMESPACE_BEGIN
13class vtkImageData;
14
15// Description:
16// vtkPlot::Color, vtkPlot::Brush, vtkScalarsToColors::DrawPolyLine,
17// vtkScalarsToColors::MaskAboveCurve have no effect here.
20{
21public:
24 void PrintSelf(ostream& os, vtkIndent indent) override;
25
27 vtkGetObjectMacro(ColorTransferFunction, vtkColorTransferFunction);
28
29protected:
32
33 // Description:
34 // Reimplemented to return the range of the lookup table
35 void ComputeBounds(double bounds[4]) override;
36
37 void ComputeTexture() override;
39
44 bool ConfigurePlotBar() override;
45
46private:
48 void operator=(const vtkColorTransferFunctionItem&) = delete;
49};
50
51VTK_ABI_NAMESPACE_END
52#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:108
Abstract class for ScalarsToColors items.
#define VTK_MARSHALAUTO