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 "vtkRenderingOpenGLModule.h" // For export macro
31 #include "vtkTDxDevice.h"
32 
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 
44 {
45 public:
46  static vtkTDxWinDevice *New();
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:
85 
88  virtual ~vtkTDxWinDevice();
89 
91 
92  vtkTDxWinDevicePrivate *Private;
94 
95 private:
96  vtkTDxWinDevice(const vtkTDxWinDevice&); // Not implemented.
97  void operator=(const vtkTDxWinDevice&); // Not implemented.
98 };
99 
100 #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:38
vtkTDxWinDevicePrivate * Private
#define VTKRENDERINGOPENGL_EXPORT
API to access a 3DConnexion input device.
Definition: vtkTDxDevice.h:36
static vtkObject * New()