VTK  9.7.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 
16 #ifndef vtkContextItem_h
17 #define vtkContextItem_h
18 
19 #include "vtkAbstractContextItem.h"
20 #include "vtkRenderingContext2DModule.h" // For export macro
21 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
22 
23 VTK_ABI_NAMESPACE_BEGIN
25 
26 class VTKRENDERINGCONTEXT2D_EXPORT VTK_MARSHALAUTO vtkContextItem : public vtkAbstractContextItem
27 {
28 public:
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
33 
36  vtkGetMacro(Opacity, double);
38 
40 
44  vtkSetMacro(Opacity, double);
46 
50  virtual void SetTransform(vtkContextTransform*);
51 
52 protected:
53  vtkContextItem() = default;
54  ~vtkContextItem() override;
55 
56  double Opacity = 1.0;
58 
59 private:
60  vtkContextItem(const vtkContextItem&) = delete;
61  void operator=(const vtkContextItem&) = delete;
62 };
63 
64 VTK_ABI_NAMESPACE_END
65 #endif // vtkContextItem_h
base class for items that are part of a vtkContextScene.
all children of this item are transformed by the vtkTransform2D of this item.
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
base class for items that are part of a vtkContextScene.
#define VTK_MARSHALAUTO