VTK  9.3.20240721
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
35#ifndef vtkContextItem_h
36#define vtkContextItem_h
37
39#include "vtkRenderingContext2DModule.h" // For export macro
40#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
41
42VTK_ABI_NAMESPACE_BEGIN
44
45class VTKRENDERINGCONTEXT2D_EXPORT VTK_MARSHALAUTO vtkContextItem : public vtkAbstractContextItem
46{
47public:
49 void PrintSelf(ostream& os, vtkIndent indent) override;
50
52
55 vtkGetMacro(Opacity, double);
57
59
63 vtkSetMacro(Opacity, double);
65
70
71protected:
72 vtkContextItem() = default;
73 ~vtkContextItem() override;
74
75 double Opacity = 1.0;
76 vtkContextTransform* Transform = nullptr;
77
78private:
79 vtkContextItem(const vtkContextItem&) = delete;
80 void operator=(const vtkContextItem&) = delete;
81};
82
83VTK_ABI_NAMESPACE_END
84#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:108
#define VTK_MARSHALAUTO