VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
Context2D
vtkOpenGLContextBufferId.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkOpenGLContextBufferId.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
24
#ifndef __vtkOpenGLContextBufferId_h
25
#define __vtkOpenGLContextBufferId_h
26
27
#include "vtkRenderingContext2DModule.h"
// For export macro
28
#include "
vtkAbstractContextBufferId.h
"
29
30
class
vtkTextureObject
;
31
class
vtkOpenGLRenderWindow
;
32
33
class
VTKRENDERINGCONTEXT2D_EXPORT
vtkOpenGLContextBufferId
:
public
vtkAbstractContextBufferId
34
{
35
public
:
36
vtkTypeMacro(
vtkOpenGLContextBufferId
,
vtkAbstractContextBufferId
);
37
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
38
40
static
vtkOpenGLContextBufferId
*
New
();
41
44
virtual
void
ReleaseGraphicsResources
();
45
47
48
void
SetContext(
vtkOpenGLRenderWindow
*context);
49
vtkOpenGLRenderWindow
*GetContext();
51
54
bool
IsSupported();
55
59
virtual
void
Allocate
();
60
62
virtual
bool
IsAllocated
()
const
;
63
65
68
virtual
void
SetValues
(
int
srcXmin,
69
int
srcYmin);
71
76
virtual
vtkIdType
GetPickedItem
(
int
x,
int
y);
77
78
protected
:
79
vtkOpenGLContextBufferId
();
80
virtual
~
vtkOpenGLContextBufferId
();
81
82
vtkOpenGLRenderWindow
*
Context
;
83
vtkTextureObject
*
Texture
;
84
85
private
:
86
vtkOpenGLContextBufferId
(
const
vtkOpenGLContextBufferId
&);
// Not implemented.
87
void
operator=(
const
vtkOpenGLContextBufferId
&);
// Not implemented.
88
};
89
90
#endif // #ifndef __vtkOpenGLContextBufferId_h
Generated on Thu May 24 2012 22:22:33 for VTK by
1.8.1