VTK  9.3.20240419
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 
10 VTK_ABI_NAMESPACE_BEGIN
12 class vtkImageData;
13 
14 // Description:
15 // vtkPlot::Color, vtkPlot::Brush, vtkScalarsToColors::DrawPolyLine,
16 // vtkScalarsToColors::MaskAboveCurve have no effect here.
17 class VTKCHARTSCORE_EXPORT vtkColorTransferFunctionItem : public vtkScalarsToColorsItem
18 {
19 public:
22  void PrintSelf(ostream& os, vtkIndent indent) override;
23 
25  vtkGetObjectMacro(ColorTransferFunction, vtkColorTransferFunction);
26 
27 protected:
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 
44 private:
46  void operator=(const vtkColorTransferFunctionItem&) = delete;
47 };
48 
49 VTK_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.
static vtkColorTransferFunctionItem * New()
void ComputeBounds(double bounds[4]) override
~vtkColorTransferFunctionItem() override
void SetColorTransferFunction(vtkColorTransferFunction *t)
Defines a transfer function for mapping a property to an RGB color value.
topologically and geometrically regular array of data
Definition: vtkImageData.h:156
a simple class to control print indentation
Definition: vtkIndent.h:108
Abstract class for ScalarsToColors items.