VTK  9.6.1
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
21
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
29
30VTK_ABI_NAMESPACE_BEGIN
31class vtkContext2D;
32class vtkContextScene;
33
34class VTKVIEWSCONTEXT2D_EXPORT VTK_MARSHALAUTO vtkContextView : public vtkRenderViewBase
35{
36public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
39
41
46 virtual void SetContext(vtkContext2D* context);
47
53
57 virtual void SetScene(vtkContextScene* scene);
58
63
64protected:
66 ~vtkContextView() override;
67
70
71private:
72 vtkContextView(const vtkContextView&) = delete;
73 void operator=(const vtkContextView&) = delete;
74};
75
76VTK_ABI_NAMESPACE_END
77#endif
Class for drawing 2D primitives to a graphical context.
Provides a 2D scene for vtkContextItem objects.
virtual void SetContext(vtkContext2D *context)
Set the vtkContext2D for the view.
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
Hold a reference to a vtkObjectBase instance.
#define VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL
#define VTK_MARSHALAUTO
#define VTK_MARSHALEXCLUDE(reason)