VTK: Charts/Core/vtkCompositeTransferFunctionItem.h Source File

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