Loading [MathJax]/extensions/tex2jax.js
VTK  9.4.20250418
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
10
11VTK_ABI_NAMESPACE_BEGIN
13class vtkImageData;
14
17{
18public:
21 void PrintSelf(ostream& os, vtkIndent indent) override;
22
24 vtkGetObjectMacro(PiecewiseFunction, vtkPiecewiseFunction);
25
26protected:
29
30 // Description:
31 // Reimplemented to return the range of the piecewise function
32 void ComputeBounds(double bounds[4]) override;
33
34 // Description
35 // Compute the texture from the PiecewiseFunction
36 void ComputeTexture() override;
37
39
40private:
42 void operator=(const vtkPiecewiseFunctionItem&) = delete;
43};
44
45VTK_ABI_NAMESPACE_END
46#endif
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:108
vtkPiecewiseFunctionItem internal uses vtkPlot::Color, white by default
static vtkPiecewiseFunctionItem * New()
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
~vtkPiecewiseFunctionItem() override
Defines a 1D piecewise function.
Abstract class for ScalarsToColors items.
#define VTK_MARSHALAUTO