vtkTrackballPan.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkTrackballPan.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
26 #ifndef vtkTrackballPan_h
27 #define vtkTrackballPan_h
28 
29 #include "vtkCameraManipulator.h"
30 #include "vtkPVVTKExtensionsInteractionStyleModule.h" // needed for export macro
31 #include <memory>
32 
34 {
35 public:
36  static vtkTrackballPan* New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
40  void OnKeyUp(vtkRenderWindowInteractor*) override;
41  void OnKeyDown(vtkRenderWindowInteractor*) override;
42 
44 
48  void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren) override;
49  void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren) override;
50  void OnButtonUp(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren) override;
52 
53 protected:
55  ~vtkTrackballPan() override;
56 
57  vtkTrackballPan(const vtkTrackballPan&) = delete;
58  void operator=(const vtkTrackballPan&) = delete;
59 
60  struct Internal;
61  std::unique_ptr<Internal> Internals;
62 };
63 
64 #endif
virtual void OnKeyUp(vtkRenderWindowInteractor *iren)
These methods are called on all registered manipulators, not just the active one. ...
Pans camera with x y mouse movements.
Abstraction of style away from button.
void PrintSelf(ostream &os, vtkIndent indent) override
#define VTKPVVTKEXTENSIONSINTERACTIONSTYLE_EXPORT
static vtkCameraManipulator * New()
virtual void OnKeyDown(vtkRenderWindowInteractor *iren)
These methods are called on all registered manipulators, not just the active one. ...
virtual void OnMouseMove(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)
std::unique_ptr< Internal > Internals
virtual void OnButtonUp(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)
virtual void OnButtonDown(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)