VTK  9.1.0
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
25#ifndef vtkContextItem_h
26#define vtkContextItem_h
27
29#include "vtkRenderingContext2DModule.h" // For export macro
30
32
33class VTKRENDERINGCONTEXT2D_EXPORT vtkContextItem : public vtkAbstractContextItem
34{
35public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
40
43 vtkGetMacro(Opacity, double);
45
47
51 vtkSetMacro(Opacity, double);
53
57 vtkSetMacro(Transform, vtkContextTransform*);
58
59protected:
60 vtkContextItem() = default;
61 ~vtkContextItem() override = default;
62
63 double Opacity = 1.0;
64 vtkContextTransform* Transform = nullptr;
65
66private:
67 vtkContextItem(const vtkContextItem&) = delete;
68 void operator=(const vtkContextItem&) = delete;
69};
70
71#endif // vtkContextItem_h
base class for items that are part of a vtkContextScene.
base class for items that are part of a vtkContextScene.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkContextItem() override=default
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:34