VTK  9.5.20250718
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
131#ifndef vtkContextView_h
132#define vtkContextView_h
133
134#include "vtkRenderViewBase.h"
135#include "vtkSmartPointer.h" // Needed for SP ivars
136#include "vtkViewsContext2DModule.h" // For export macro
137#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
138
139VTK_ABI_NAMESPACE_BEGIN
140class vtkContext2D;
141class vtkContextScene;
142
143class VTKVIEWSCONTEXT2D_EXPORT VTK_MARSHALAUTO vtkContextView : public vtkRenderViewBase
144{
145public:
146 void PrintSelf(ostream& os, vtkIndent indent) override;
148
150
155 virtual void SetContext(vtkContext2D* context);
156
161 virtual vtkContext2D* GetContext();
162
166 virtual void SetScene(vtkContextScene* scene);
167
171 virtual vtkContextScene* GetScene();
172
173protected:
175 ~vtkContextView() override;
176
179
180private:
181 vtkContextView(const vtkContextView&) = delete;
182 void operator=(const vtkContextView&) = delete;
183};
184
185VTK_ABI_NAMESPACE_END
186#endif
Class for drawing 2D primitives to a graphical context.
Provides a 2D scene for vtkContextItem objects.
provides a view of the vtkContextScene.
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:108
A base view containing a renderer.
Hold a reference to a vtkObjectBase instance.
#define VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL
#define VTK_MARSHALAUTO
#define VTK_MARSHALEXCLUDE(reason)