VTK  9.3.0
vtkContextView.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
22#ifndef vtkContextView_h
23#define vtkContextView_h
24
25#include "vtkRenderViewBase.h"
26#include "vtkSmartPointer.h" // Needed for SP ivars
27#include "vtkViewsContext2DModule.h" // For export macro
28
29VTK_ABI_NAMESPACE_BEGIN
30class vtkContext2D;
31class vtkContextScene;
32
33class VTKVIEWSCONTEXT2D_EXPORT vtkContextView : public vtkRenderViewBase
34{
35public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
38
40
44 virtual void SetContext(vtkContext2D* context);
45
50
54 virtual void SetScene(vtkContextScene* scene);
55
60
61protected:
63 ~vtkContextView() override;
64
67
68private:
69 vtkContextView(const vtkContextView&) = delete;
70 void operator=(const vtkContextView&) = delete;
71};
72
73VTK_ABI_NAMESPACE_END
74#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:29
A base view containing a renderer.
Hold a reference to a vtkObjectBase instance.