VTK  9.1.0
vtkContextView.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkContextView.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 =========================================================================*/
137 #ifndef vtkContextView_h
138 #define vtkContextView_h
139 
140 #include "vtkRenderViewBase.h"
141 #include "vtkSmartPointer.h" // Needed for SP ivars
142 #include "vtkViewsContext2DModule.h" // For export macro
143 
144 class vtkContext2D;
145 class vtkContextScene;
146 
147 class VTKVIEWSCONTEXT2D_EXPORT vtkContextView : public vtkRenderViewBase
148 {
149 public:
150  void PrintSelf(ostream& os, vtkIndent indent) override;
152 
153  static vtkContextView* New();
154 
158  virtual void SetContext(vtkContext2D* context);
159 
164 
168  virtual void SetScene(vtkContextScene* scene);
169 
174 
175 protected:
177  ~vtkContextView() override;
178 
181 
182 private:
183  vtkContextView(const vtkContextView&) = delete;
184  void operator=(const vtkContextView&) = delete;
185 };
186 
187 #endif
vtkContextView::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkContextView::SetScene
virtual void SetScene(vtkContextScene *scene)
Set the scene object for the view.
vtkSmartPointer< vtkContextScene >
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:73
vtkContextView::~vtkContextView
~vtkContextView() override
vtkContextView::Scene
vtkSmartPointer< vtkContextScene > Scene
Definition: vtkContextView.h:179
vtkContextView
provides a view of the vtkContextScene.
Definition: vtkContextView.h:148
vtkContextScene
Provides a 2D scene for vtkContextItem objects.
Definition: vtkContextScene.h:157
vtkContextView::New
static vtkContextView * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkSmartPointer.h
vtkContextView::Context
vtkSmartPointer< vtkContext2D > Context
Definition: vtkContextView.h:180
vtkRenderViewBase
A base view containing a renderer.
Definition: vtkRenderViewBase.h:42
vtkContextView::GetScene
virtual vtkContextScene * GetScene()
Get the scene of the view.
vtkContextView::vtkContextView
vtkContextView()
vtkContextView::GetContext
virtual vtkContext2D * GetContext()
Get the vtkContext2D for the view.
vtkContextView::SetContext
virtual void SetContext(vtkContext2D *context)
Set the vtkContext2D for the view.
vtkRenderViewBase.h