VTK: Rendering/Context2D/vtkContextItem.h Source File

| VTK 9.3.1

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
25 #ifndef vtkContextItem_h
26 #define vtkContextItem_h
27
28 #include "vtkAbstractContextItem.h"
29 #include "vtkRenderingContext2DModule.h" // For export macro
30
31 VTK_ABI_NAMESPACE_BEGIN
32 class vtkContextTransform;
33
34 class VTKRENDERINGCONTEXT2D_EXPORT vtkContextItem : public vtkAbstractContextItem
35 {
36 public:
37 vtkTypeMacro(vtkContextItem, vtkAbstractContextItem);
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
41
44 vtkGetMacro(Opacity, double);
46
48
52 vtkSetMacro(Opacity, double);
54
58 virtual void SetTransform(vtkContextTransform*);
59
60 protected:
61 vtkContextItem() = default;
62 ~vtkContextItem() override;
63
64 double Opacity = 1.0;
65 vtkContextTransform* Transform = nullptr;
66
67 private:
68 vtkContextItem(const vtkContextItem&) = delete;
69 void operator=(const vtkContextItem&) = delete;
70 };
71
72 VTK_ABI_NAMESPACE_END
73 #endif // vtkContextItem_h
vtkAbstractContextItem
base class for items that are part of a vtkContextScene.
Definition: vtkAbstractContextItem.h:30
vtkContextItem
base class for items that are part of a vtkContextScene.
Definition: vtkContextItem.h:35
vtkContextItem::SetTransform
virtual void SetTransform(vtkContextTransform *)
Set the transform of the item.
vtkContextItem::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkContextItem::~vtkContextItem
~vtkContextItem() override
vtkContextItem::vtkContextItem
vtkContextItem()=default
vtkContextTransform
all children of this item are transformed by the vtkTransform2D of this item.
Definition: vtkContextTransform.h:38
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkX3D::Transform
@ Transform
Definition: vtkX3D.h:41
vtkAbstractContextItem.h