VTK
9.0.1
Rendering
Context2D
vtkAbstractContextBufferId.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkAbstractContextBufferId.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
15
38
#ifndef vtkAbstractContextBufferId_h
39
#define vtkAbstractContextBufferId_h
40
41
#include "
vtkObject.h
"
42
#include "vtkRenderingContext2DModule.h"
// For export macro
43
44
class
vtkRenderWindow
;
45
46
class
VTKRENDERINGCONTEXT2D_EXPORT
vtkAbstractContextBufferId
:
public
vtkObject
47
{
48
public
:
49
vtkTypeMacro(
vtkAbstractContextBufferId
,
vtkObject
);
50
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
51
52
static
vtkAbstractContextBufferId
*
New
();
53
55
58
vtkGetMacro(Width,
int
);
60
62
65
vtkSetMacro(Width,
int
);
67
69
72
vtkGetMacro(Height,
int
);
74
76
79
vtkSetMacro(Height,
int
);
81
83
86
virtual
void
SetContext(
vtkRenderWindow
* context) = 0;
87
virtual
vtkRenderWindow
* GetContext() = 0;
89
94
virtual
bool
IsSupported() = 0;
95
101
virtual
void
Allocate() = 0;
102
106
virtual
bool
IsAllocated()
const
= 0;
107
113
virtual
void
SetValues(
int
srcXmin,
int
srcYmin) = 0;
114
123
virtual
vtkIdType
GetPickedItem(
int
x,
int
y) = 0;
124
129
virtual
void
ReleaseGraphicsResources();
130
131
protected
:
132
vtkAbstractContextBufferId
();
133
~
vtkAbstractContextBufferId
()
override
;
134
135
int
Width
;
136
int
Height
;
137
138
private
:
139
vtkAbstractContextBufferId
(
const
vtkAbstractContextBufferId
&) =
delete
;
140
void
operator=(
const
vtkAbstractContextBufferId
&) =
delete
;
141
};
142
143
#endif // #ifndef vtkAbstractContextBufferId_h
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:62
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:136
vtkIdType
int vtkIdType
Definition:
vtkType.h:338
vtkAbstractContextBufferId::Width
int Width
Definition:
vtkAbstractContextBufferId.h:135
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkAbstractContextBufferId
2D array of ids, used for picking.
Definition:
vtkAbstractContextBufferId.h:46
vtkRenderWindow
create a window for renderers to draw into
Definition:
vtkRenderWindow.h:93
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 Sat Jun 12 2021 02:00:33 for VTK by
1.8.14