VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Charts
vtkOpenGL2ContextDevice2D.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkOpenGL2ContextDevice2D.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
36
#ifndef __vtkOpenGL2ContextDevice2D_h
37
#define __vtkOpenGL2ContextDevice2D_h
38
39
#include "
vtkOpenGLContextDevice2D.h
"
40
41
class
VTK_CHARTS_EXPORT
vtkOpenGL2ContextDevice2D
:
42
public
vtkOpenGLContextDevice2D
43
{
44
public
:
45
vtkTypeMacro(
vtkOpenGL2ContextDevice2D
,
vtkOpenGLContextDevice2D
);
46
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
47
49
static
vtkOpenGL2ContextDevice2D
*
New
();
50
52
static
bool
IsSupported(
vtkViewport
*viewport);
53
55
59
virtual
void
DrawPointSprites
(
vtkImageData
*sprite,
float
*
points
,
int
n,
60
unsigned
char
* colors = 0,
int
nc_comps = 0);
62
65
virtual
void
DrawImage
(
float
p[2],
float
scale
,
vtkImageData
*
image
);
66
70
void
DrawImage
(
const
vtkRectf
& pos,
vtkImageData
*
image
);
71
75
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*window);
76
77
protected
:
78
vtkOpenGL2ContextDevice2D
();
79
virtual
~
vtkOpenGL2ContextDevice2D
();
80
82
virtual
bool
LoadExtensions
(
vtkOpenGLExtensionManager
*m);
83
84
private
:
85
vtkOpenGL2ContextDevice2D
(
const
vtkOpenGL2ContextDevice2D
&);
// Not implemented.
86
void
operator=(
const
vtkOpenGL2ContextDevice2D
&);
// Not implemented.
87
};
88
89
#endif //__vtkOpenGL2ContextDevice2D_h
Generated on Sun Sep 9 2012 13:03:25 for VTK by
1.8.1.2