vtkTrackballPan.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkTrackballPan_h
15 #define vtkTrackballPan_h
16 
17 #include "vtkCameraManipulator.h"
18 #include "vtkPVVTKExtensionsInteractionStyleModule.h" // needed for export macro
19 #include <memory> // for std::unique_ptr
20 
22 {
23 public:
24  static vtkTrackballPan* New();
26  void PrintSelf(ostream& os, vtkIndent indent) override;
27 
28  void OnKeyUp(vtkRenderWindowInteractor*) override;
29  void OnKeyDown(vtkRenderWindowInteractor*) override;
30 
32 
36  void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren) override;
37  void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren) override;
38  void OnButtonUp(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren) override;
40 
41 protected:
43  ~vtkTrackballPan() override;
44 
45  vtkTrackballPan(const vtkTrackballPan&) = delete;
46  void operator=(const vtkTrackballPan&) = delete;
47 
48  struct Internal;
49  std::unique_ptr<Internal> Internals;
50 };
51 
52 #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)