VTK
dox
build
vtk6-aGN9bD
vtk6-6.3.0+dfsg1
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::CreateNewWindow
virtual bool CreateNewWindow(const vtkRecti &geometry, const std::string &name)=0
Create a window with the desired geometry.
vtkXOpenGLRenderDevice::OwnWindow
bool OwnWindow
Definition:
vtkXOpenGLRenderDevice.h:46
vtkXInteractionDevice
Definition:
vtkXInteractionDevice.h:21
vtkAbstractRenderDevice::New
static vtkAbstractRenderDevice * New()
Make a new device, this class is abstract and one of its derived forms will be returned, or NULL if no override has been provided.
vtkXOpenGLRenderDevice::ColorMap
Colormap ColorMap
Definition:
vtkXOpenGLRenderDevice.h:43
vtkAbstractRenderDevice::MakeCurrent
virtual void MakeCurrent()=0
Make the context current so that it can be used by OpenGL.
vtkX3D::string
Definition:
vtkX3D.h:490
vtkXOpenGLRenderDevice::OffScreenRendering
bool OffScreenRendering
Definition:
vtkXOpenGLRenderDevice.h:47
vtkAbstractRenderDevice.h
vtkXOpenGLRenderDevice::Mapped
bool Mapped
Definition:
vtkXOpenGLRenderDevice.h:48
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition:
vtkSetGet.h:642
vtkRecti
Definition:
vtkRect.h:87
vtkX3D::name
Definition:
vtkX3D.h:219
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkAbstractRenderDevice::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkXOpenGLRenderDevice::ParentId
Window ParentId
Definition:
vtkXOpenGLRenderDevice.h:40
vtkXOpenGLRenderDevice::Borders
double Borders
Definition:
vtkXOpenGLRenderDevice.h:50
vtkXOpenGLRenderDevice::WindowId
Window WindowId
Definition:
vtkXOpenGLRenderDevice.h:41
vtkAbstractRenderDevice
Definition:
vtkAbstractRenderDevice.h:23
vtkXOpenGLRenderDevice::DisplayId
Display * DisplayId
Definition:
vtkXOpenGLRenderDevice.h:42
vtkXOpenGLRenderDevice::OwnDisplay
bool OwnDisplay
Definition:
vtkXOpenGLRenderDevice.h:45
vtkXOpenGLRenderDevice
Definition:
vtkXOpenGLRenderDevice.h:23
Generated by
1.8.13