VTK  9.3.1
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 
24  void SetColorTransferFunction(vtkColorTransferFunction* t);
25  vtkGetObjectMacro(ColorTransferFunction, vtkColorTransferFunction);
26 
27 protected:
29  ~vtkColorTransferFunctionItem() override;
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
virtual void ComputeTexture()=0
Need to be reimplemented by subclasses, ComputeTexture() is called at paint time if the texture is no...
Abstract class for ScalarsToColors items.
a simple class to control print indentation
Definition: vtkIndent.h:28
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
virtual bool ConfigurePlotBar()
Method to configure the plotbar histogram before painting it can be reimplemented by subclasses...
vtkColorTransferFunction * ColorTransferFunction
Defines a transfer function for mapping a property to an RGB color value.
virtual void ComputeBounds(double *bounds)
Bounds of the item, by default (0, 1, 0, 1) but it depends on the range of the ScalarsToColors functi...
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.