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 
39 class vtkTDxWinDevicePrivate;
40 
41 class VTKRENDERINGOPENGL_EXPORT vtkTDxWinDevice : public vtkTDxDevice
42 {
43 public:
44  static vtkTDxWinDevice *New();
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 
113 
114  vtkTDxWinDevicePrivate *Private;
116 
117 private:
118  vtkTDxWinDevice(const vtkTDxWinDevice&) VTK_DELETE_FUNCTION;
119  void operator=(const vtkTDxWinDevice&) VTK_DELETE_FUNCTION;
120 };
121 
122 #endif
Implementation of vtkTDxDevice on Windows.
virtual void Close()=0
Close the device.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
platform-independent render window interaction including picking and frame rate control.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkTDxWinDevicePrivate * Private
API to access a 3DConnexion input device.
Definition: vtkTDxDevice.h:37
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...