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 
86 
92  void StopListening();
93 
98  void ProcessEvent();
99 
100 protected:
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
vtkTDxWinDevice::New
static vtkTDxWinDevice * New()
vtkTDxWinDevice::Private
vtkTDxWinDevicePrivate * Private
Definition: vtkTDxWinDevice.h:114
vtkTDxWinDevice
Implementation of vtkTDxDevice on Windows.
Definition: vtkTDxWinDevice.h:42
vtkTDxDevice.h
vtkTDxWinDevice::StartListening
void StartListening()
Call it when the window has or get the focus.
vtkTDxWinDevice::WindowHandle
HWND WindowHandle
Definition: vtkTDxWinDevice.h:112
vtkTDxWinDevice::GetIsListening
bool GetIsListening() const
Tells if we are listening events on the device.
vtkTDxWinDevice::GetWindowHandle
HWND GetWindowHandle() const
Get the Handle of the Window.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkTDxWinDevice::SetWindowHandle
void SetWindowHandle(HWND hWnd)
Set the handle of the Window.
vtkTDxWinDevice::vtkTDxWinDevice
vtkTDxWinDevice()
Default constructor.
vtkRenderWindowInteractor
platform-independent render window interaction including picking and frame rate control.
Definition: vtkRenderWindowInteractor.h:79
vtkTDxWinDevice::ProcessEvent
void ProcessEvent()
Process the 3DConnexion event.
vtkTDxDevice
API to access a 3DConnexion input device.
Definition: vtkTDxDevice.h:38
vtkTDxWinDevice::StopListening
void StopListening()
Call it when the window lose the focus.
vtkTDxWinDevice::Close
virtual void Close()
See description in the superclass.
vtkTDxWinDevice::IsListening
bool IsListening
Definition: vtkTDxWinDevice.h:115
vtkTDxWinDevice::Initialize
void Initialize()
Initialize the device with the current display and window ids.
vtkTDxWinDevice::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkTDxWinDevice::~vtkTDxWinDevice
virtual ~vtkTDxWinDevice()
Destructor.