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 
16 #ifndef vtkContextItem_h
17 #define vtkContextItem_h
18 
19 #include "vtkAbstractContextItem.h"
20 #include "vtkRenderingContext2DModule.h" // For export macro
21 
22 VTK_ABI_NAMESPACE_BEGIN
24 
25 class VTKRENDERINGCONTEXT2D_EXPORT vtkContextItem : public vtkAbstractContextItem
26 {
27 public:
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
32 
35  vtkGetMacro(Opacity, double);
37 
39 
43  vtkSetMacro(Opacity, double);
45 
49  virtual void SetTransform(vtkContextTransform*);
50 
51 protected:
52  vtkContextItem() = default;
53  ~vtkContextItem() override;
54 
55  double Opacity = 1.0;
57 
58 private:
59  vtkContextItem(const vtkContextItem&) = delete;
60  void operator=(const vtkContextItem&) = delete;
61 };
62 
63 VTK_ABI_NAMESPACE_END
64 #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.