VTK  9.3.20240419
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 
10 VTK_ABI_NAMESPACE_BEGIN
11 class vtkLookupTable;
12 
13 // Description:
14 // vtkPlot::Color, vtkPlot::Brush, vtkScalarsToColors::DrawPolyLine,
15 // vtkScalarsToColors::MaskAboveCurve have no effect here.
16 class VTKCHARTSCORE_EXPORT vtkLookupTableItem : public vtkScalarsToColorsItem
17 {
18 public:
21  void PrintSelf(ostream& os, vtkIndent indent) override;
22 
24  vtkGetObjectMacro(LookupTable, vtkLookupTable);
25 
26 protected:
28  ~vtkLookupTableItem() override;
29 
30  // Description:
31  // Reimplemented to return the range of the lookup table
32  void ComputeBounds(double bounds[4]) override;
33 
34  void ComputeTexture() override;
36 
37 private:
38  vtkLookupTableItem(const vtkLookupTableItem&) = delete;
39  void operator=(const vtkLookupTableItem&) = delete;
40 };
41 
42 VTK_ABI_NAMESPACE_END
43 #endif
a simple class to control print indentation
Definition: vtkIndent.h:108
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ComputeTexture() override
Need to be reimplemented by subclasses, ComputeTexture() is called at paint time if the texture is no...
void SetLookupTable(vtkLookupTable *t)
static vtkLookupTableItem * New()
void ComputeBounds(double bounds[4]) override
vtkLookupTable * LookupTable
~vtkLookupTableItem() override
map scalar values into colors via a lookup table
Abstract class for ScalarsToColors items.