VTK  9.7.1
vtkCompositeTransferFunctionItem.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 vtkCompositeTransferFunctionItem_h
5 #define vtkCompositeTransferFunctionItem_h
6 
7 #include "vtkChartsCoreModule.h" // For export macro
9 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
10 
11 VTK_ABI_NAMESPACE_BEGIN
13 
14 // Description:
15 // vtkPlot::Color and vtkPlot::Brush have no effect here.
18 {
19 public:
22  void PrintSelf(ostream& os, vtkIndent indent) override;
23 
24  void SetOpacityFunction(vtkPiecewiseFunction* opacity);
25  vtkGetObjectMacro(OpacityFunction, vtkPiecewiseFunction);
26 
27 protected:
30 
31  // Description:
32  // Reimplemented to return the range of the piecewise function
33  void ComputeBounds(double bounds[4]) override;
34 
35  void ComputeTexture() override;
37 
38 private:
40  void operator=(const vtkCompositeTransferFunctionItem&) = delete;
41 };
42 
43 VTK_ABI_NAMESPACE_END
44 #endif
Defines a 1D piecewise function.
void ComputeTexture() override
Need to be reimplemented by subclasses, ComputeTexture() is called at paint time if the texture is no...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
#define VTK_MARSHALAUTO
void ComputeBounds(double bounds[4]) override
static vtkColorTransferFunctionItem * New()