VTK  9.2.6
vtkContextItem.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkContextItem.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
28 #ifndef vtkContextItem_h
29 #define vtkContextItem_h
30 
31 #include "vtkAbstractContextItem.h"
32 #include "vtkRenderingContext2DModule.h" // For export macro
33 
35 
36 class VTKRENDERINGCONTEXT2D_EXPORT vtkContextItem : public vtkAbstractContextItem
37 {
38 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43 
46  vtkGetMacro(Opacity, double);
48 
50 
54  vtkSetMacro(Opacity, double);
56 
60  virtual void SetTransform(vtkContextTransform*);
61 
62 protected:
63  vtkContextItem() = default;
64  ~vtkContextItem() override;
65 
66  double Opacity = 1.0;
68 
69 private:
70  vtkContextItem(const vtkContextItem&) = delete;
71  void operator=(const vtkContextItem&) = delete;
72 };
73 
74 #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:39
base class for items that are part of a vtkContextScene.