VTK
9.3.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Rendering
Context2D
vtkAbstractContextBufferId.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
3
26
#ifndef vtkAbstractContextBufferId_h
27
#define vtkAbstractContextBufferId_h
28
29
#include "
vtkObject.h
"
30
#include "vtkRenderingContext2DModule.h"
// For export macro
31
32
VTK_ABI_NAMESPACE_BEGIN
33
class
vtkRenderWindow
;
34
35
class
VTKRENDERINGCONTEXT2D_EXPORT
vtkAbstractContextBufferId
:
public
vtkObject
36
{
37
public
:
38
vtkTypeMacro(
vtkAbstractContextBufferId
,
vtkObject
);
39
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
40
41
static
vtkAbstractContextBufferId
*
New
();
42
44
47
vtkGetMacro(Width,
int
);
49
51
54
vtkSetMacro(Width,
int
);
56
58
61
vtkGetMacro(Height,
int
);
63
65
68
vtkSetMacro(Height,
int
);
70
72
75
virtual
void
SetContext(
vtkRenderWindow
* context) = 0;
76
virtual
vtkRenderWindow
* GetContext() = 0;
78
83
virtual
bool
IsSupported() = 0;
84
90
virtual
void
Allocate() = 0;
91
95
virtual
bool
IsAllocated()
const
= 0;
96
102
virtual
void
SetValues(
int
srcXmin,
int
srcYmin) = 0;
103
112
virtual
vtkIdType
GetPickedItem(
int
x,
int
y) = 0;
113
118
virtual
void
ReleaseGraphicsResources();
119
120
protected
:
121
vtkAbstractContextBufferId
();
122
~
vtkAbstractContextBufferId
()
override
;
123
124
int
Width
;
125
int
Height
;
126
127
private
:
128
vtkAbstractContextBufferId
(
const
vtkAbstractContextBufferId
&) =
delete
;
129
void
operator=(
const
vtkAbstractContextBufferId
&) =
delete
;
130
};
131
132
VTK_ABI_NAMESPACE_END
133
#endif // #ifndef vtkAbstractContextBufferId_h
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:51
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAbstractContextBufferId::Height
int Height
Definition:
vtkAbstractContextBufferId.h:125
vtkIdType
int vtkIdType
Definition:
vtkType.h:315
vtkAbstractContextBufferId::Width
int Width
Definition:
vtkAbstractContextBufferId.h:124
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:28
vtkAbstractContextBufferId
2D array of ids, used for picking.
Definition:
vtkAbstractContextBufferId.h:35
vtkRenderWindow
create a window for renderers to draw into
Definition:
vtkRenderWindow.h:85
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkObject.h
Generated on Sun Mar 23 2025 01:22:44 for VTK by
1.8.10