VTK  9.5.20251215
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
130
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
162
166 virtual void SetScene(vtkContextScene* scene);
167
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.
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:108
Hold a reference to a vtkObjectBase instance.
#define VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL
#define VTK_MARSHALAUTO
#define VTK_MARSHALEXCLUDE(reason)