VTK
9.7.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Views
Context2D
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
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
29
30
VTK_ABI_NAMESPACE_BEGIN
31
class
vtkContext2D
;
32
class
vtkContextScene
;
33
34
class
VTKVIEWSCONTEXT2D_EXPORT
VTK_MARSHALAUTO
vtkContextView
:
public
vtkRenderViewBase
35
{
36
public
:
37
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
38
vtkTypeMacro(
vtkContextView
,
vtkRenderViewBase
);
39
40
static
vtkContextView
*
New
();
41
45
VTK_MARSHALEXCLUDE
(
VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL
)
46
virtual
void
SetContext(
vtkContext2D
* context);
47
51
VTK_MARSHALEXCLUDE
(
VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL
)
52
virtual
vtkContext2D
* GetContext();
53
57
virtual
void
SetScene(
vtkContextScene
* scene);
58
62
virtual
vtkContextScene
* GetScene();
63
64
protected:
65
vtkContextView
();
66
~vtkContextView() override;
67
68
vtkSmartPointer
<
vtkContextScene
>
Scene
;
69
vtkSmartPointer
<
vtkContext2D
> Context;
70
71
private:
72
vtkContextView(const vtkContextView&) = delete;
73
void
operator=(const vtkContextView&) = delete;
74
};
75
76
VTK_ABI_NAMESPACE_END
77
#endif
vtkWrappingHints.h
vtkSmartPointer
Hold a reference to a vtkObjectBase instance.
Definition:
vtkMeta.h:23
vtkRenderViewBase
A base view containing a renderer.
Definition:
vtkRenderViewBase.h:31
vtkRenderViewBase::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:49
vtkContextScene
Provides a 2D scene for vtkContextItem objects.
Definition:
vtkContextScene.h:43
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:28
vtkX3D::Scene
Definition:
vtkX3D.h:155
VTK_MARSHALEXCLUDE
#define VTK_MARSHALEXCLUDE(reason)
Definition:
vtkWrappingHints.h:77
vtkSmartPointer.h
vtkRenderViewBase.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition:
vtkWrappingHints.h:75
vtkRenderViewBase::New
static vtkRenderViewBase * New()
vtkContextView
provides a view of the vtkContextScene.
Definition:
vtkContextView.h:34
VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL
#define VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL
Definition:
vtkWrappingHints.h:83
Generated on Tue Oct 20 2026 10:48:25 for VTK by
1.8.10