VTK  9.3.0
vtkPiecewiseFunctionItem.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 vtkPiecewiseFunctionItem_h
5 #define vtkPiecewiseFunctionItem_h
6 
7 #include "vtkChartsCoreModule.h" // For export macro
9 
10 VTK_ABI_NAMESPACE_BEGIN
12 class vtkImageData;
13 
15 class VTKCHARTSCORE_EXPORT vtkPiecewiseFunctionItem : public vtkScalarsToColorsItem
16 {
17 public:
20  void PrintSelf(ostream& os, vtkIndent indent) override;
21 
23  vtkGetObjectMacro(PiecewiseFunction, vtkPiecewiseFunction);
24 
25 protected:
28 
29  // Description:
30  // Reimplemented to return the range of the piecewise function
31  void ComputeBounds(double bounds[4]) override;
32 
33  // Description
34  // Compute the texture from the PiecewiseFunction
35  void ComputeTexture() override;
36 
38 
39 private:
41  void operator=(const vtkPiecewiseFunctionItem&) = delete;
42 };
43 
44 VTK_ABI_NAMESPACE_END
45 #endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:52
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkPiecewiseFunctionItem internal uses vtkPlot::Color, white by default
void SetPiecewiseFunction(vtkPiecewiseFunction *t)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ComputeBounds(double bounds[4]) override
void ComputeTexture() override
Need to be reimplemented by subclasses, ComputeTexture() is called at paint time if the texture is no...
vtkPiecewiseFunction * PiecewiseFunction
static vtkPiecewiseFunctionItem * New()
~vtkPiecewiseFunctionItem() override
Defines a 1D piecewise function.
Abstract class for ScalarsToColors items.