VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
10 
11 VTK_ABI_NAMESPACE_BEGIN
13 class vtkImageData;
14 
15 // Description:
16 // vtkPlot::Color, vtkPlot::Brush, vtkScalarsToColors::DrawPolyLine,
17 // vtkScalarsToColors::MaskAboveCurve have no effect here.
19  : public vtkScalarsToColorsItem
20 {
21 public:
24  void PrintSelf(ostream& os, vtkIndent indent) override;
25 
26  void SetColorTransferFunction(vtkColorTransferFunction* t);
27  vtkGetObjectMacro(ColorTransferFunction, vtkColorTransferFunction);
28 
29 protected:
31  ~vtkColorTransferFunctionItem() override;
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 
46 private:
48  void operator=(const vtkColorTransferFunctionItem&) = delete;
49 };
50 
51 VTK_ABI_NAMESPACE_END
52 #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:45
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...
#define VTK_MARSHALAUTO
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.