VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
OpenGL
vtkTDxWinDevice.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkTDxWinDevice.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
=========================================================================*/
27
#ifndef __vtkTDxWinDevice_h
28
#define __vtkTDxWinDevice_h
29
30
#include "vtkRenderingOpenGLModule.h"
// For export macro
31
#include "
vtkTDxDevice.h
"
32
33
class
vtkRenderWindowInteractor
;
34
35
// including <WinDef.h> directly leads to the following error:
36
// "C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(81) :
37
// fatal error C1189: #error : "No Target Architecture" "
38
// so we need to include <windows.h> instead.
39
#include <windows.h>
// we need HWND from <WinDef.h>
40
41
class
vtkTDxWinDevicePrivate;
42
43
class
VTKRENDERINGOPENGL_EXPORT
vtkTDxWinDevice
:
public
vtkTDxDevice
44
{
45
public
:
46
static
vtkTDxWinDevice
*
New
();
47
vtkTypeMacro(
vtkTDxWinDevice
,
vtkTDxDevice
);
48
void
PrintSelf
(ostream& os,
vtkIndent
indent);
49
51
HWND GetWindowHandle()
const
;
52
55
void
SetWindowHandle(HWND hWnd);
56
63
void
Initialize();
64
66
virtual
void
Close
();
67
69
bool
GetIsListening()
const
;
70
73
void
StartListening();
74
77
void
StopListening();
78
80
void
ProcessEvent();
81
82
protected
:
84
vtkTDxWinDevice
();
85
88
virtual
~
vtkTDxWinDevice
();
89
90
HWND
WindowHandle
;
91
92
vtkTDxWinDevicePrivate *
Private
;
93
bool
IsListening
;
94
95
private
:
96
vtkTDxWinDevice
(
const
vtkTDxWinDevice
&);
// Not implemented.
97
void
operator=(
const
vtkTDxWinDevice
&);
// Not implemented.
98
};
99
100
#endif
Generated on Thu May 24 2012 22:22:37 for VTK by
1.8.1