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 =========================================================================*/
27 #ifndef __vtkTDxWinDevice_h
28 #define __vtkTDxWinDevice_h
29 
30 #include "vtkTDxDevice.h"
31 
33 
34 // including <WinDef.h> directly leads to the following error:
35 // "C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(81) :
36 // fatal error C1189: #error : "No Target Architecture" "
37 // so we need to include <windows.h> instead.
38 #include <windows.h> // we need HWND from <WinDef.h>
39 
40 class vtkTDxWinDevicePrivate;
41 
43 {
44 public:
45  static vtkTDxWinDevice *New();
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50  HWND GetWindowHandle() const;
51 
54  void SetWindowHandle(HWND hWnd);
55 
62  void Initialize();
63 
65  virtual void Close();
66 
68  bool GetIsListening() const;
69 
72  void StartListening();
73 
76  void StopListening();
77 
79  void ProcessEvent();
80 
81 protected:
84 
87  virtual ~vtkTDxWinDevice();
88 
90 
91  vtkTDxWinDevicePrivate *Private;
92  bool IsListening;
93 
94 private:
95  vtkTDxWinDevice(const vtkTDxWinDevice&); // Not implemented.
96  void operator=(const vtkTDxWinDevice&); // Not implemented.
97 };
98 
99 #endif
Implementation of vtkTDxDevice on Windows.
virtual void Close()=0
void PrintSelf(ostream &os, vtkIndent indent)
platform-independent render window interaction including picking and frame rate control.
a simple class to control print indentation
Definition: vtkIndent.h:37
vtkTDxWinDevicePrivate * Private
#define VTK_RENDERING_EXPORT
API to access a 3DConnexion input device.
Definition: vtkTDxDevice.h:35
static vtkObject * New()