VTK
vtkInteractorStyleTrackballCamera.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInteractorStyleTrackballCamera.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 =========================================================================*/
35 #ifndef vtkInteractorStyleTrackballCamera_h
36 #define vtkInteractorStyleTrackballCamera_h
37 
38 #include "vtkInteractionStyleModule.h" // For export macro
39 #include "vtkInteractorStyle.h"
40 
41 class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleTrackballCamera : public vtkInteractorStyle
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
53  void OnMouseMove() override;
54  void OnLeftButtonDown() override;
55  void OnLeftButtonUp() override;
56  void OnMiddleButtonDown() override;
57  void OnMiddleButtonUp() override;
58  void OnRightButtonDown() override;
59  void OnRightButtonUp() override;
60  void OnMouseWheelForward() override;
61  void OnMouseWheelBackward() override;
63 
64  // These methods for the different interactions in different modes
65  // are overridden in subclasses to perform the correct motion. Since
66  // they are called by OnTimer, they do not have mouse coord parameters
67  // (use interactor's GetEventPosition and GetLastEventPosition)
68  void Rotate() override;
69  void Spin() override;
70  void Pan() override;
71  void Dolly() override;
72 
74 
77  vtkSetMacro(MotionFactor,double);
78  vtkGetMacro(MotionFactor,double);
80 
81 protected:
84 
85  double MotionFactor;
86 
87  virtual void Dolly(double factor);
88 
89 private:
91  void operator=(const vtkInteractorStyleTrackballCamera&) = delete;
92 };
93 
94 #endif
vtkInteractorStyle::Dolly
virtual void Dolly()
Definition: vtkInteractorStyle.h:293
vtkInteractorStyle.h
vtkInteractorStyleTrackballCamera::MotionFactor
double MotionFactor
Definition: vtkInteractorStyleTrackballCamera.h:85
vtkInteractorStyle::Pan
virtual void Pan()
Definition: vtkInteractorStyle.h:292
vtkInteractorStyle::OnMiddleButtonUp
virtual void OnMiddleButtonUp()
Definition: vtkInteractorStyle.h:227
vtkInteractorStyle::OnMouseMove
virtual void OnMouseMove()
Generic event bindings can be overridden in subclasses.
Definition: vtkInteractorStyle.h:223
vtkInteractorStyle::Spin
virtual void Spin()
Definition: vtkInteractorStyle.h:291
vtkInteractorStyle::OnMiddleButtonDown
virtual void OnMiddleButtonDown()
Definition: vtkInteractorStyle.h:226
vtkInteractorStyle::OnRightButtonDown
virtual void OnRightButtonDown()
Definition: vtkInteractorStyle.h:228
vtkInteractorStyle::OnMouseWheelForward
virtual void OnMouseWheelForward()
Definition: vtkInteractorStyle.h:230
vtkInteractorStyle::OnLeftButtonDown
virtual void OnLeftButtonDown()
Definition: vtkInteractorStyle.h:224
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInteractorStyle
provide event-driven interface to the rendering window (defines trackball mode)
Definition: vtkInteractorStyle.h:135
vtkInteractorStyle::OnMouseWheelBackward
virtual void OnMouseWheelBackward()
Definition: vtkInteractorStyle.h:231
vtkInteractorStyle::OnLeftButtonUp
virtual void OnLeftButtonUp()
Definition: vtkInteractorStyle.h:225
vtkInteractorStyle::New
static vtkInteractorStyle * New()
This class must be supplied with a vtkRenderWindowInteractor wrapper or parent.
vtkInteractorStyleTrackballCamera
interactive manipulation of the camera
Definition: vtkInteractorStyleTrackballCamera.h:41
vtkInteractorStyle::Rotate
virtual void Rotate()
These methods for the different interactions in different modes are overridden in subclasses to perfo...
Definition: vtkInteractorStyle.h:290
vtkInteractorStyle::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInteractorStyle::OnRightButtonUp
virtual void OnRightButtonUp()
Definition: vtkInteractorStyle.h:229