VTK  9.7.1
vtkLookupTableItem.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 vtkLookupTableItem_h
5 #define vtkLookupTableItem_h
6 
7 #include "vtkChartsCoreModule.h" // For export macro
9 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
10 
11 VTK_ABI_NAMESPACE_BEGIN
12 class vtkLookupTable;
13 
14 // Description:
15 // vtkPlot::Color, vtkPlot::Brush, vtkScalarsToColors::DrawPolyLine,
16 // vtkScalarsToColors::MaskAboveCurve have no effect here.
17 class VTKCHARTSCORE_EXPORT VTK_MARSHALAUTO vtkLookupTableItem : public vtkScalarsToColorsItem
18 {
19 public:
20  static vtkLookupTableItem* New();
22  void PrintSelf(ostream& os, vtkIndent indent) override;
23 
24  void SetLookupTable(vtkLookupTable* t);
25  vtkGetObjectMacro(LookupTable, vtkLookupTable);
26 
27 protected:
29  ~vtkLookupTableItem() 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 
38 private:
39  vtkLookupTableItem(const vtkLookupTableItem&) = delete;
40  void operator=(const vtkLookupTableItem&) = delete;
41 };
42 
43 VTK_ABI_NAMESPACE_END
44 #endif
map scalar values into colors via a lookup table
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
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...
vtkLookupTable * LookupTable
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.