Drake Designer
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
vtkTDxInteractorStyleCallback.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTDxInteractorStyleCallback.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 =========================================================================*/
15 // .NAME vtkTDxInteractorStyleCallback - sends TDx events to observers
16 
17 // .SECTION Description
18 // vtkTDxInteractorStyleCallback sends motion and button events from a
19 // 3DConnexion device to observers.
20 
21 #ifndef __vtkTDxInteractorStyleCallback_h
22 #define __vtkTDxInteractorStyleCallback_h
23 
24 #include "vtkTDxInteractorStyle.h"
25 #include "ddAppConfigure.h"
26 
27 class vtkTransform;
28 
29 class DD_APP_EXPORT vtkTDxInteractorStyleCallback : public vtkTDxInteractorStyle
30 {
31 public:
32  static vtkTDxInteractorStyleCallback *New();
33  vtkTypeMacro(vtkTDxInteractorStyleCallback, vtkTDxInteractorStyle);
34  void PrintSelf(ostream& os, vtkIndent indent);
35 
36  vtkGetVector3Macro(Translation, double);
37  vtkGetVector4Macro(AngleAxis, double);
38 
39  virtual void OnMotionEvent(vtkTDxMotionEventInfo *motionInfo);
40 
41  virtual void OnButtonPressedEvent(int button);
42 
43  virtual void OnButtonReleasedEvent(int button);
44 
45 protected:
46 
49 
50  int Button;
51  double Translation[3];
52  double AngleAxis[4];
53 
54 private:
56  void operator=(const vtkTDxInteractorStyleCallback&); // Not implemented.
57 };
58 #endif
#define DD_APP_EXPORT