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 
47 #ifndef vtkContextItem_h
48 #define vtkContextItem_h
49 
50 #include "vtkAbstractContextItem.h"
51 #include "vtkRenderingContext2DModule.h" // For export macro
52 
54 
55 class VTKRENDERINGCONTEXT2D_EXPORT vtkContextItem : public vtkAbstractContextItem
56 {
57 public:
59  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
62 
65  vtkGetMacro(Opacity, double);
67 
69 
73  vtkSetMacro(Opacity, double);
75 
80 
81 protected:
82  vtkContextItem() = default;
83  ~vtkContextItem() override;
84 
85  double Opacity = 1.0;
87 
88 private:
89  vtkContextItem(const vtkContextItem&) = delete;
90  void operator=(const vtkContextItem&) = delete;
91 };
92 
93 #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:119
@ Transform
Definition: vtkX3D.h:47