VTK
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
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
39class vtkTDxWinDevicePrivate;
40
41class VTKRENDERINGOPENGL_EXPORT vtkTDxWinDevice : public vtkTDxDevice
42{
43public:
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
86
93
99
100protected:
105
111
113
114 vtkTDxWinDevicePrivate *Private;
116
117private:
118 vtkTDxWinDevice(const vtkTDxWinDevice&) VTK_DELETE_FUNCTION;
119 void operator=(const vtkTDxWinDevice&) VTK_DELETE_FUNCTION;
120};
121
122#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
platform-independent render window interaction including picking and frame rate control.
API to access a 3DConnexion input device.
Definition: vtkTDxDevice.h:38
Implementation of vtkTDxDevice on Windows.
bool GetIsListening() const
Tells if we are listening events on the device.
virtual void Close()
See description in the superclass.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void SetWindowHandle(HWND hWnd)
Set the handle of the Window.
vtkTDxWinDevice()
Default constructor.
void Initialize()
Initialize the device with the current display and window ids.
static vtkTDxWinDevice * New()
void ProcessEvent()
Process the 3DConnexion event.
void StopListening()
Call it when the window lose the focus.
virtual ~vtkTDxWinDevice()
Destructor.
void StartListening()
Call it when the window has or get the focus.
vtkTDxWinDevicePrivate * Private
HWND GetWindowHandle() const
Get the Handle of the Window.