VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
vtkWinCEOpenGLRenderWindow.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkWinCEOpenGLRenderWindow.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
=========================================================================*/
23
#ifndef __vtkWinCEOpenGLRenderWindow_h
24
#define __vtkWinCEOpenGLRenderWindow_h
25
26
#include "
vtkOpenGLRenderWindow.h
"
27
28
#include "GL/osmesa.h"
// Needed for Mesa types
29
30
class
vtkIdList
;
31
32
class
VTK_RENDERING_EXPORT
vtkWinCEOpenGLRenderWindow
:
public
vtkOpenGLRenderWindow
33
{
34
public
:
35
static
vtkWinCEOpenGLRenderWindow
*
New
();
36
vtkTypeMacro(
vtkWinCEOpenGLRenderWindow
,
vtkOpenGLRenderWindow
);
37
void
PrintSelf
(ostream& os,
vtkIndent
indent);
38
40
virtual
void
Start
(
void
);
41
43
void
Frame
(
void
);
44
46
virtual
void
WindowInitialize(
void
);
47
52
virtual
void
Initialize(
void
);
53
58
virtual
void
Finalize
(
void
);
59
61
virtual
void
SetFullScreen
(
int
);
62
64
virtual
void
WindowRemap
(
void
);
65
67
virtual
void
PrefFullScreen(
void
);
68
70
virtual
void
SetSize
(
int
,
int
);
71
73
virtual
int
*
GetSize
();
74
76
virtual
void
SetPosition
(
int
,
int
);
77
79
virtual
int
*
GetScreenSize
();
80
82
virtual
int
*
GetPosition
();
83
86
virtual
void
SetWindowName
(
char
*);
87
89
void
SetWindowInfo
(
char
*);
90
91
void
SetNextWindowInfo
(
char
*);
92
94
void
SetParentInfo
(
char
*);
95
96
//BTX
97
virtual
void
*
GetGenericDisplayId
() {
return
(
void
*)this->OffScreenContextId;};
98
virtual
void
*
GetGenericWindowId
() {
return
(
void
*)this->WindowId;};
99
virtual
void
*
GetGenericParentId
() {
return
(
void
*)this->ParentId;};
100
virtual
void
*
GetGenericContext
() {
return
(
void
*)this->DeviceContext;};
101
virtual
void
SetDisplayId
(
void
*) {};
102
104
105
virtual
HWND GetWindowId();
106
void
SetWindowId
(
void
*foo) {this->
SetWindowId
((HWND)foo);};
108
110
virtual
void
SetWindowId
(HWND);
111
113
114
virtual
void
SetParentId
(HWND);
115
void
SetParentId
(
void
*foo) {this->
SetParentId
((HWND)foo);};
117
119
virtual
void
SetNextWindowId
(HWND);
120
121
virtual
void
SetNextWindowId
(
void
*);
122
//ETX
123
128
virtual
void
SetStereoCapableWindow
(
int
capable);
129
131
void
MakeCurrent
();
132
136
void
SetForceMakeCurrent
();
137
140
virtual
int
GetEventPending
();
141
143
void
Clean();
144
146
148
void
HideCursor
();
149
void
ShowCursor
();
151
152
protected
:
153
vtkWinCEOpenGLRenderWindow
();
154
~
vtkWinCEOpenGLRenderWindow
();
155
156
HINSTANCE
ApplicationInstance
;
157
158
OSMesaContext
OffScreenContextId
;
159
void
*
OffScreenWindow
;
160
161
HDC
DeviceContext
;
162
HWND
WindowId
;
163
HWND
ParentId
;
164
HWND
NextWindowId
;
165
int
OwnWindow
;
166
int
ScreenSize[2];
167
168
//BTX
169
// message handler
170
virtual
LRESULT MessageProc(HWND hWnd, UINT message,
171
WPARAM wParam, LPARAM lParam);
172
173
static
LRESULT APIENTRY WndProc(HWND hWnd, UINT message,
174
WPARAM wParam, LPARAM lParam);
175
//ETX
176
int
CursorHidden
;
177
int
ForceMakeCurrent
;
178
179
void
ResizeWhileOffscreen(
int
xsize,
int
ysize);
180
void
CreateAWindow
(
int
x,
int
y,
int
width,
int
height
);
181
void
InitializeApplication();
182
private
:
183
vtkWinCEOpenGLRenderWindow
(
const
vtkWinCEOpenGLRenderWindow
&);
// Not implemented.
184
void
operator=(
const
vtkWinCEOpenGLRenderWindow
&);
// Not implemented.
185
};
186
187
188
#endif
189
Generated on Wed Nov 21 2012 21:34:05 for VTK by
1.8.2