VTK  9.2.6
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=========================================================================*/
43#ifndef vtkContextView_h
44#define vtkContextView_h
45
46#include "vtkRenderViewBase.h"
47#include "vtkSmartPointer.h" // Needed for SP ivars
48#include "vtkViewsContext2DModule.h" // For export macro
49
50class vtkContext2D;
51class vtkContextScene;
52
53class VTKVIEWSCONTEXT2D_EXPORT vtkContextView : public vtkRenderViewBase
54{
55public:
56 void PrintSelf(ostream& os, vtkIndent indent) override;
58
60
64 virtual void SetContext(vtkContext2D* context);
65
70
74 virtual void SetScene(vtkContextScene* scene);
75
80
81protected:
83 ~vtkContextView() override;
84
87
88private:
89 vtkContextView(const vtkContextView&) = delete;
90 void operator=(const vtkContextView&) = delete;
91};
92
93#endif
Class for drawing 2D primitives to a graphical context.
Provides a 2D scene for vtkContextItem objects.
provides a view of the vtkContextScene.
virtual void SetContext(vtkContext2D *context)
Set the vtkContext2D for the view.
~vtkContextView() override
virtual vtkContext2D * GetContext()
Get the vtkContext2D for the view.
vtkSmartPointer< vtkContextScene > Scene
virtual void SetScene(vtkContextScene *scene)
Set the scene object for the view.
virtual vtkContextScene * GetScene()
Get the scene of the view.
vtkSmartPointer< vtkContext2D > Context
static vtkContextView * New()
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:49
A base view containing a renderer.
Hold a reference to a vtkObjectBase instance.