VTK
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
=========================================================================*/
25
#ifndef vtkTDxWinDevice_h
26
#define vtkTDxWinDevice_h
27
28
#include "vtkRenderingOpenGLModule.h"
// For export macro
29
#include "
vtkTDxDevice.h
"
30
31
class
vtkRenderWindowInteractor
;
32
33
// including <WinDef.h> directly leads to the following error:
34
// "C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(81) :
35
// fatal error C1189: #error : "No Target Architecture" "
36
// so we need to include <windows.h> instead.
37
#include <windows.h>
// we need HWND from <WinDef.h>
38
39
class
vtkTDxWinDevicePrivate;
40
41
class
VTKRENDERINGOPENGL_EXPORT
vtkTDxWinDevice
:
public
vtkTDxDevice
42
{
43
public
:
44
static
vtkTDxWinDevice
*
New
();
45
vtkTypeMacro(
vtkTDxWinDevice
,
vtkTDxDevice
);
46
void
PrintSelf
(ostream& os,
vtkIndent
indent);
47
51
HWND GetWindowHandle()
const
;
52
57
void
SetWindowHandle(HWND hWnd);
58
68
void
Initialize();
69
73
virtual
void
Close
();
74
78
bool
GetIsListening()
const
;
79
85
void
StartListening();
86
92
void
StopListening();
93
98
void
ProcessEvent();
99
100
protected
:
104
vtkTDxWinDevice
();
105
110
virtual
~
vtkTDxWinDevice
();
111
112
HWND
WindowHandle
;
113
114
vtkTDxWinDevicePrivate *
Private
;
115
bool
IsListening
;
116
117
private
:
118
vtkTDxWinDevice
(
const
vtkTDxWinDevice
&) VTK_DELETE_FUNCTION;
119
void
operator=(
const
vtkTDxWinDevice
&) VTK_DELETE_FUNCTION;
120
};
121
122
#endif
vtkTDxWinDevice::Private
vtkTDxWinDevicePrivate * Private
Definition:
vtkTDxWinDevice.h:114
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkTDxWinDevice
Implementation of vtkTDxDevice on Windows.
Definition:
vtkTDxWinDevice.h:41
vtkTDxDevice.h
vtkTDxWinDevice::WindowHandle
HWND WindowHandle
Definition:
vtkTDxWinDevice.h:112
vtkTDxDevice::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkRenderWindowInteractor
platform-independent render window interaction including picking and frame rate control.
Definition:
vtkRenderWindowInteractor.h:78
vtkTDxDevice
API to access a 3DConnexion input device.
Definition:
vtkTDxDevice.h:37
vtkTDxWinDevice::IsListening
bool IsListening
Definition:
vtkTDxWinDevice.h:115
vtkTDxDevice::Close
virtual void Close()=0
Close the device.
Generated by
1.8.17