VTK
vtkTDxMacDevice.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkTDxMacDevice.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 vtkTDxMacDevice_h
26#define vtkTDxMacDevice_h
27
28#include "vtkRenderingOpenGLModule.h" // For export macro
29#include "vtkTDxDevice.h"
30
31#include <3dConnexionClient/ConnexionClientAPI.h> // 3DxMacWare SDK
32
33class VTKRENDERINGOPENGL_EXPORT vtkTDxMacDevice : public vtkTDxDevice
34{
35public:
38 void PrintSelf(ostream& os, vtkIndent indent);
39
41
45 vtkGetStringMacro(ClientApplicationName);
46 vtkSetStringMacro(ClientApplicationName);
48
58 void Initialize();
59
63 virtual void Close();
64
74 void ProcessEvent(const ConnexionDeviceState *s);
75
76protected:
82
88
103 unsigned char *CStringToPascalString(const char *s);
104
106
107 UInt16 ClientID;
109
110private:
111 vtkTDxMacDevice(const vtkTDxMacDevice&) VTK_DELETE_FUNCTION;
112 void operator=(const vtkTDxMacDevice&) VTK_DELETE_FUNCTION;
113};
114
115#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
API to access a 3DConnexion input device.
Definition: vtkTDxDevice.h:38
Implementation of vtkTDxDevice on Mac.
virtual void Close()
See description in the superclass.
static vtkTDxMacDevice * New()
void Initialize()
Initialize the device with the current ClientApplicationName.
unsigned char * CStringToPascalString(const char *s)
Convert a C string to a Pascal String.
void ProcessEvent(const ConnexionDeviceState *s)
Translate the X11 event by invoking a VTK event, if the event came from the device.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
char * ClientApplicationName
virtual ~vtkTDxMacDevice()
Destructor.
vtkTDxMacDevice()
Default constructor.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.