-
Notifications
You must be signed in to change notification settings - Fork 4
/
vtkVRPNTrackerStyleCamera.h
60 lines (42 loc) · 1.83 KB
/
vtkVRPNTrackerStyleCamera.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*=========================================================================
Name: vtkVRPNTrackerStyleCamera.h
Author: David Borland, The Renaissance Computing Institute (RENCI)
Copyright: The Renaissance Computing Institute (RENCI)
License: Licensed under the RENCI Open Source Software License v. 1.0.
See included License.txt or
http://www.renci.org/resources/open-source-software-license
for details.
=========================================================================*/
// .NAME vtkVRPNTrackerStyleCamera
// .SECTION Description
// vtkVRPNTrackerStyleCamera moves the camera based on tracker events
// generated by devices using the Virtual Reality Peripheral Network
// (VRPN: http://www.cs.unc.edu/Research/vrpn/).
// .SECTION see also
// vtkDeviceInteractor vtkInteractionDevice
#ifndef __vtkVRPNTrackerStyleCamera_h
#define __vtkVRPNTrackerStyleCamera_h
#include "vtkInteractionDeviceConfigure.h"
#include "vtkDeviceInteractorStyle.h"
class vtkVRPNTracker;
class VTK_INTERACTIONDEVICE_EXPORT vtkVRPNTrackerStyleCamera : public vtkDeviceInteractorStyle
{
public:
static vtkVRPNTrackerStyleCamera* New();
vtkTypeRevisionMacro(vtkVRPNTrackerStyleCamera,vtkDeviceInteractorStyle);
void PrintSelf(ostream&, vtkIndent);
// Description:
// Perform interaction based on an event
virtual void OnEvent(vtkObject* caller, unsigned long eid, void* callData);
// Description:
// Set the tracker receiving events from
void SetTracker(vtkVRPNTracker*);
protected:
vtkVRPNTrackerStyleCamera();
~vtkVRPNTrackerStyleCamera();
virtual void OnTracker(vtkVRPNTracker*);
private:
vtkVRPNTrackerStyleCamera(const vtkVRPNTrackerStyleCamera&); // Not implemented.
void operator=(const vtkVRPNTrackerStyleCamera&); // Not implemented.
};
#endif