VTK
vtkTDxUnixDevice.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTDxUnixDevice.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 vtkTDxUnixDevice_h
26 #define vtkTDxUnixDevice_h
27 
28 #include "vtkRenderingOpenGLModule.h" // For export macro
29 #include "vtkTDxDevice.h"
30 //#include <X11/Xlib.h> // Needed for X types used in the public interface
32 
33 // We cannot include <X11/Xlib.h> (which defines "Display *",
34 // "Window" and "XEvent *") because it defines macro like None that would
35 // conflict with qt4/Qt/qcoreevent.h which defines None as a QEvent::Type
36 // value.
38 typedef unsigned int vtkTDxUnixDeviceWindow;
40 
41 class VTKRENDERINGOPENGL_EXPORT vtkTDxUnixDevice : public vtkTDxDevice
42 {
43 public:
44  static vtkTDxUnixDevice *New();
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
53 
59 
66 
72 
87  void Initialize();
88 
92  virtual void Close();
93 
106 
108 
112  vtkGetMacro(TranslationScale,double);
113  vtkSetMacro(TranslationScale,double);
115 
117 
121  vtkGetMacro(RotationScale,double);
122  vtkSetMacro(RotationScale,double);
124 
130  void SetSensitivity(double sensitivity);
131 
132 protected:
139 
144  virtual ~vtkTDxUnixDevice();
145 
148 
151 
152 private:
153  vtkTDxUnixDevice(const vtkTDxUnixDevice&) VTK_DELETE_FUNCTION;
154  void operator=(const vtkTDxUnixDevice&) VTK_DELETE_FUNCTION;
155 };
156 
157 #endif
vtkTDxUnixDeviceDisplay
void vtkTDxUnixDeviceDisplay
Definition: vtkTDxUnixDevice.h:31
vtkTDxUnixDevice::DisplayId
vtkTDxUnixDeviceDisplay * DisplayId
Definition: vtkTDxUnixDevice.h:146
vtkTDxUnixDevice::Initialize
void Initialize()
Initialize the device with the current display and window ids.
vtkTDxUnixDevice::vtkTDxUnixDevice
vtkTDxUnixDevice()
Default constructor.
vtkTDxUnixDevice
Implementation of vtkTDxDevice on Unix.
Definition: vtkTDxUnixDevice.h:42
vtkTDxUnixDevice::~vtkTDxUnixDevice
virtual ~vtkTDxUnixDevice()
Destructor.
vtkTDxUnixDeviceXEvent
void vtkTDxUnixDeviceXEvent
Definition: vtkTDxUnixDevice.h:39
vtkTDxDevice.h
vtkTDxUnixDevice::WindowId
vtkTDxUnixDeviceWindow WindowId
Definition: vtkTDxUnixDevice.h:147
vtkTDxUnixDevice::SetDisplayId
void SetDisplayId(vtkTDxUnixDeviceDisplay *id)
Set the ID of the X Display.
vtkTDxUnixDevice::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkTDxUnixDevice::GetWindowId
vtkTDxUnixDeviceWindow GetWindowId() const
Get the ID of the X Window.
vtkTDxUnixDevice::GetDisplayId
vtkTDxUnixDeviceDisplay * GetDisplayId() const
Get the ID of the X Display.
vtkTDxUnixDevice::RotationScale
double RotationScale
Definition: vtkTDxUnixDevice.h:150
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkTDxUnixDevice::TranslationScale
double TranslationScale
Definition: vtkTDxUnixDevice.h:149
vtkTDxUnixDevice::SetWindowId
void SetWindowId(vtkTDxUnixDeviceWindow id)
Set the ID of the X Window.
vtkRenderWindowInteractor
platform-independent render window interaction including picking and frame rate control.
Definition: vtkRenderWindowInteractor.h:79
vtkTDxUnixDevice::Close
virtual void Close()
See description in the superclass.
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkTDxDevice
API to access a 3DConnexion input device.
Definition: vtkTDxDevice.h:38
vtkTDxUnixDeviceWindow
unsigned int vtkTDxUnixDeviceWindow
Definition: vtkTDxUnixDevice.h:38
vtkTDxUnixDevice::ProcessEvent
bool ProcessEvent(const vtkTDxUnixDeviceXEvent *e)
Translate the X11 event by invoking a VTK event, if the event came from the device.
vtkTDxUnixDevice::SetSensitivity
void SetSensitivity(double sensitivity)
Set the sensitivity of the device for the current application.
vtkTDxUnixDevice::New
static vtkTDxUnixDevice * New()