forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vtkTDxInteractorStyle.h
98 lines (81 loc) · 3.03 KB
/
vtkTDxInteractorStyle.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/*=========================================================================
Program: Visualization Toolkit
Module: vtkTDxInteractorStyle.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/**
* @class vtkTDxInteractorStyle
* @brief provide 3DConnexion device event-driven interface to the rendering window
*
*
* vtkTDxInteractorStyle is an abstract class defining an event-driven
* interface to support 3DConnexion device events send by
* vtkRenderWindowInteractor.
* vtkRenderWindowInteractor forwards events in a platform independent form to
* vtkInteractorStyle which can then delegate some processing to
* vtkTDxInteractorStyle.
*
* @sa
* vtkInteractorStyle vtkRenderWindowInteractor
* vtkTDxInteractorStyleCamera
*/
#ifndef vtkTDxInteractorStyle_h
#define vtkTDxInteractorStyle_h
#include "vtkRenderingCoreModule.h" // For export macro
#include "vtkObject.h"
class vtkTDxMotionEventInfo;
class vtkRenderer;
class vtkTDxInteractorStyleSettings;
class VTKRENDERINGCORE_EXPORT vtkTDxInteractorStyle : public vtkObject
{
public:
vtkTypeMacro(vtkTDxInteractorStyle,vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
/**
* Action on motion event. Default implementation is empty.
* \pre: motionInfo_exist: motionInfo!=0
*/
virtual void OnMotionEvent(vtkTDxMotionEventInfo *motionInfo);
/**
* Action on button pressed event. Default implementation is empty.
*/
virtual void OnButtonPressedEvent(int button);
/**
* Action on button released event. Default implementation is empty.
*/
virtual void OnButtonReleasedEvent(int button);
/**
* Dispatch the events TDxMotionEvent, TDxButtonPressEvent and
* TDxButtonReleaseEvent to OnMotionEvent(), OnButtonPressedEvent() and
* OnButtonReleasedEvent() respectively.
* It is called by the vtkInteractorStyle.
* This method is virtual for convenient but you should really override
* the On*Event() methods only.
* \pre renderer can be null.
*/
virtual void ProcessEvent(vtkRenderer *renderer,
unsigned long event,
void *calldata);
//@{
/**
* 3Dconnexion device settings. (sensitivity, individual axis filters).
* Initial object is not null.
*/
vtkGetObjectMacro(Settings,vtkTDxInteractorStyleSettings);
virtual void SetSettings(vtkTDxInteractorStyleSettings *settings);
//@}
protected:
vtkTDxInteractorStyle();
virtual ~vtkTDxInteractorStyle();
vtkTDxInteractorStyleSettings *Settings;
vtkRenderer *Renderer;
private:
vtkTDxInteractorStyle(const vtkTDxInteractorStyle&) VTK_DELETE_FUNCTION;
void operator=(const vtkTDxInteractorStyle&) VTK_DELETE_FUNCTION;
};
#endif