VTK
dox
opt
build
vtk6-6.3.0+dfsg2
Rendering
OpenGL2
vtkXOpenGLRenderDevice.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
5
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
6
All rights reserved.
7
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8
9
This software is distributed WITHOUT ANY WARRANTY; without even
10
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11
PURPOSE. See the above copyright notice for more information.
12
13
=========================================================================*/
14
#ifndef vtkXOpenGLRenderDevice_h
15
#define vtkXOpenGLRenderDevice_h
16
17
#include "
vtkAbstractRenderDevice.h
"
18
#include "vtkRenderingOpenGL2Module.h"
// For export macro
19
#include <X11/Xutil.h>
// Needed for X types used in the public interface
20
21
class
vtkXInteractionDevice
;
22
23
class
VTKRENDERINGOPENGL2_EXPORT
vtkXOpenGLRenderDevice
24
:
public
vtkAbstractRenderDevice
25
{
26
public
:
27
vtkTypeMacro
(
vtkXOpenGLRenderDevice
,
vtkAbstractRenderDevice
)
28
void
PrintSelf(ostream& os,
vtkIndent
indent);
29
30
static
vtkXOpenGLRenderDevice
* New();
31
32
virtual
bool
CreateNewWindow(const
vtkRecti
&geometry, const std::
string
&
name
);
33
34
virtual
void
MakeCurrent();
35
36
protected:
37
vtkXOpenGLRenderDevice
();
38
~
vtkXOpenGLRenderDevice
();
39
40
Window ParentId;
41
Window WindowId;
42
Display *DisplayId;
43
Colormap ColorMap;
44
45
bool
OwnDisplay;
// Do we own the display?
46
bool
OwnWindow;
// Do we own the window?
47
bool
OffScreenRendering;
// Is this for off screen rendering?
48
bool
Mapped;
49
50
double
Borders;
51
52
private:
53
vtkXOpenGLRenderDevice
(const
vtkXOpenGLRenderDevice
&);
// Not implemented.
54
void
operator=(const
vtkXOpenGLRenderDevice
&);
// Not implemented.
55
56
class Private;
57
Private *Internal;
58
59
friend class
vtkXInteractionDevice
;
60
};
61
62
#endif
vtkAbstractRenderDevice.h
vtkXInteractionDevice
Definition:
vtkXInteractionDevice.h:23
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition:
vtkSetGet.h:642
vtkgl::name
GLuint const GLchar * name
Definition:
vtkgl.h:11983
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkAbstractRenderDevice
Definition:
vtkAbstractRenderDevice.h:24
vtkXOpenGLRenderDevice
Definition:
vtkXOpenGLRenderDevice.h:25
vtkRecti
Definition:
vtkRect.h:88
vtkgl::void
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
Generated by
1.8.20