VTK
vtkInteractorStyleMultiTouchCamera.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInteractorStyleMultiTouchCamera.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 =========================================================================*/
33 #ifndef vtkInteractorStyleMultiTouchCamera_h
34 #define vtkInteractorStyleMultiTouchCamera_h
35 
36 #include "vtkInteractionStyleModule.h" // For export macro
37 #include "vtkRenderWindowInteractor.h" // for max pointers
39 
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
50  virtual void OnMouseMove();
51  virtual void OnLeftButtonDown();
52  virtual void OnLeftButtonUp();
54 
55  // These methods for the different interactions in different modes
56  // are overridden in subclasses to perform the correct motion. Since
57  // they are called by OnTimer, they do not have mouse coord parameters
58  // (use interactor's GetEventPosition and GetLastEventPosition)
59  virtual void AdjustCamera();
60 
62 
63  vtkSetMacro(MotionFactor,double);
64  vtkGetMacro(MotionFactor,double);
66 
67 protected:
70 
72  int PointersDown[VTKI_MAX_POINTERS];
73 
74  double MotionFactor;
75 
76 private:
78  void operator=(const vtkInteractorStyleMultiTouchCamera&); // Not implemented.
79 };
80 
81 #endif
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKINTERACTIONSTYLE_EXPORT
static vtkInteractorStyleTrackballCamera * New()
interactive manipulation of the camera
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKI_MAX_POINTERS
interactive manipulation of the camera