VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
Context2D
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 "vtkRenderingContext2DModule.h"
// For export macro
40
#include "
vtkOpenGLContextDevice2D.h
"
41
42
class
VTKRENDERINGCONTEXT2D_EXPORT
vtkOpenGL2ContextDevice2D
:
43
public
vtkOpenGLContextDevice2D
44
{
45
public
:
46
vtkTypeMacro(
vtkOpenGL2ContextDevice2D
,
vtkOpenGLContextDevice2D
);
47
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
48
50
static
vtkOpenGL2ContextDevice2D
*
New
();
51
53
static
bool
IsSupported(
vtkViewport
*viewport);
54
56
60
virtual
void
DrawPointSprites
(
vtkImageData
*sprite,
float
*
points
,
int
n,
61
unsigned
char
* colors = 0,
int
nc_comps = 0);
63
66
virtual
void
DrawImage
(
float
p[2],
float
scale
,
vtkImageData
*
image
);
67
71
void
DrawImage
(
const
vtkRectf
& pos,
vtkImageData
*
image
);
72
76
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*window);
77
78
protected
:
79
vtkOpenGL2ContextDevice2D
();
80
virtual
~
vtkOpenGL2ContextDevice2D
();
81
83
virtual
bool
LoadExtensions
(
vtkOpenGLExtensionManager
*m);
84
85
private
:
86
vtkOpenGL2ContextDevice2D
(
const
vtkOpenGL2ContextDevice2D
&);
// Not implemented.
87
void
operator=(
const
vtkOpenGL2ContextDevice2D
&);
// Not implemented.
88
};
89
90
#endif //__vtkOpenGL2ContextDevice2D_h
Generated on Thu May 24 2012 22:22:33 for VTK by
1.8.1