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.
38typedef unsigned int vtkTDxUnixDeviceWindow;
40
41class VTKRENDERINGOPENGL_EXPORT vtkTDxUnixDevice : public vtkTDxDevice
42{
43public:
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
132protected:
139
145
148
151
152private:
153 vtkTDxUnixDevice(const vtkTDxUnixDevice&) VTK_DELETE_FUNCTION;
154 void operator=(const vtkTDxUnixDevice&) VTK_DELETE_FUNCTION;
155};
156
157#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
platform-independent render window interaction including picking and frame rate control.
API to access a 3DConnexion input device.
Definition: vtkTDxDevice.h:38
Implementation of vtkTDxDevice on Unix.
vtkTDxUnixDeviceDisplay * DisplayId
vtkTDxUnixDeviceWindow WindowId
vtkTDxUnixDevice()
Default constructor.
static vtkTDxUnixDevice * New()
virtual ~vtkTDxUnixDevice()
Destructor.
void SetSensitivity(double sensitivity)
Set the sensitivity of the device for the current application.
virtual void Close()
See description in the superclass.
vtkTDxUnixDeviceDisplay * GetDisplayId() const
Get the ID of the X Display.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
bool ProcessEvent(const vtkTDxUnixDeviceXEvent *e)
Translate the X11 event by invoking a VTK event, if the event came from the device.
void SetWindowId(vtkTDxUnixDeviceWindow id)
Set the ID of the X Window.
void Initialize()
Initialize the device with the current display and window ids.
vtkTDxUnixDeviceWindow GetWindowId() const
Get the ID of the X Window.
void SetDisplayId(vtkTDxUnixDeviceDisplay *id)
Set the ID of the X Display.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
unsigned int vtkTDxUnixDeviceWindow
void vtkTDxUnixDeviceXEvent
void vtkTDxUnixDeviceDisplay