vtkPVTrackballPan.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVTrackballPan.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 vtkPVTrackballPan_h
27 #define vtkPVTrackballPan_h
28 
29 #include "vtkCameraManipulator.h"
30 #include "vtkPVVTKExtensionsInteractionStyleModule.h" // needed for export macro
31 
33 {
34 public:
35  static vtkPVTrackballPan* New();
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
44  void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren) override;
45  void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren) override;
46  void OnButtonUp(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren) override;
48 
49 protected:
51  ~vtkPVTrackballPan() override;
52 
53  vtkPVTrackballPan(const vtkPVTrackballPan&) = delete;
54  void operator=(const vtkPVTrackballPan&) = delete;
55 };
56 
57 #endif
Abstraction of style away from button.
void PrintSelf(ostream &os, vtkIndent indent) override
#define VTKPVVTKEXTENSIONSINTERACTIONSTYLE_EXPORT
static vtkCameraManipulator * New()
virtual void OnMouseMove(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)
virtual void OnButtonUp(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)
virtual void OnButtonDown(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)
Pans camera with x y mouse movements.