VTK  9.3.0
vtkContextItem.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
16#ifndef vtkContextItem_h
17#define vtkContextItem_h
18
20#include "vtkRenderingContext2DModule.h" // For export macro
21
22VTK_ABI_NAMESPACE_BEGIN
24
25class VTKRENDERINGCONTEXT2D_EXPORT vtkContextItem : public vtkAbstractContextItem
26{
27public:
29 void PrintSelf(ostream& os, vtkIndent indent) override;
30
32
35 vtkGetMacro(Opacity, double);
37
39
43 vtkSetMacro(Opacity, double);
45
50
51protected:
52 vtkContextItem() = default;
53 ~vtkContextItem() override;
54
55 double Opacity = 1.0;
56 vtkContextTransform* Transform = nullptr;
57
58private:
59 vtkContextItem(const vtkContextItem&) = delete;
60 void operator=(const vtkContextItem&) = delete;
61};
62
63VTK_ABI_NAMESPACE_END
64#endif // vtkContextItem_h
base class for items that are part of a vtkContextScene.
base class for items that are part of a vtkContextScene.
virtual void SetTransform(vtkContextTransform *)
Set the transform of the item.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkContextItem() override
vtkContextItem()=default
all children of this item are transformed by the vtkTransform2D of this item.
a simple class to control print indentation
Definition vtkIndent.h:29