VTK  9.0.20210422
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 
28 #include "vtkAbstractContextItem.h"
29 #include "vtkRenderingContext2DModule.h" // For export macro
30 
31 class VTKRENDERINGCONTEXT2D_EXPORT vtkContextItem : public vtkAbstractContextItem
32 {
33 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
38 
41  vtkGetMacro(Opacity, double);
43 
45 
49  vtkSetMacro(Opacity, double);
51 
52 protected:
54  ~vtkContextItem() override;
55 
56  double Opacity;
57 
58 private:
59  vtkContextItem(const vtkContextItem&) = delete;
60  void operator=(const vtkContextItem&) = delete;
61 };
62 
63 #endif // vtkContextItem_h
vtkAbstractContextItem
base class for items that are part of a vtkContextScene.
Definition: vtkAbstractContextItem.h:41
vtkContextItem::Opacity
double Opacity
Definition: vtkContextItem.h:56
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkContextItem::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkContextItem
base class for items that are part of a vtkContextScene.
Definition: vtkContextItem.h:32
vtkAbstractContextItem.h
vtkContextItem::~vtkContextItem
~vtkContextItem() override
vtkContextItem::vtkContextItem
vtkContextItem()