VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Charts
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 "
vtkAbstractContextBufferId.h
"
28
29
class
vtkTextureObject;
30
class
vtkOpenGLRenderWindow;
31
32
class
VTK_CHARTS_EXPORT
vtkOpenGLContextBufferId
:
public
vtkAbstractContextBufferId
33
{
34
public
:
35
vtkTypeMacro(
vtkOpenGLContextBufferId
,
vtkAbstractContextBufferId
);
36
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
37
39
static
vtkOpenGLContextBufferId
*
New
();
40
43
virtual
void
ReleaseGraphicsResources
();
44
46
47
void
SetContext(vtkOpenGLRenderWindow *context);
48
vtkOpenGLRenderWindow *GetContext();
50
53
bool
IsSupported();
54
58
virtual
void
Allocate
();
59
61
virtual
bool
IsAllocated
()
const
;
62
64
67
virtual
void
SetValues
(
int
srcXmin,
68
int
srcYmin);
70
75
virtual
vtkIdType
GetPickedItem
(
int
x,
int
y);
76
77
protected
:
78
vtkOpenGLContextBufferId
();
79
virtual
~
vtkOpenGLContextBufferId
();
80
81
vtkOpenGLRenderWindow *
Context
;
82
vtkTextureObject *
Texture
;
83
84
private
:
85
vtkOpenGLContextBufferId
(
const
vtkOpenGLContextBufferId
&);
// Not implemented.
86
void
operator=(
const
vtkOpenGLContextBufferId
&);
// Not implemented.
87
};
88
89
#endif // #ifndef __vtkOpenGLContextBufferId_h
Generated on Sun Sep 15 2013 03:44:18 for VTK by
1.8.4