vtkPVTrackballPanAxisConstrained.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
15 #ifndef vtkTrackballPan_h
16 #define vtkTrackballPan_h
17 
18 #include "vtkPVCameraManipulator.h"
19 #include "vtkPVVTKExtensionsInteractionStyleModule.h" // needed for export macro
20 #include <memory> // for std::unique_ptr
21 
23  : public vtkPVCameraManipulator
24 {
25 public:
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
30  void OnKeyUp(vtkRenderWindowInteractor*) override;
31  void OnKeyDown(vtkRenderWindowInteractor*) override;
32 
34 
38  void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren) override;
39  void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren) override;
40  void OnButtonUp(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren) override;
42 
43 protected:
46 
48  void operator=(const vtkPVTrackballPanAxisConstrained&) = delete;
49 
50  struct Internal;
51  std::unique_ptr<Internal> Internals;
52 };
53 
54 #endif
virtual void OnButtonUp(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)
Pans camera with x y mouse movements.
virtual void OnButtonDown(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)
#define VTKPVVTKEXTENSIONSINTERACTIONSTYLE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) override
virtual void OnKeyUp(vtkRenderWindowInteractor *iren)
These methods are called on all registered manipulators, not just the active one. ...
static vtkPVCameraManipulator * New()
virtual void OnKeyDown(vtkRenderWindowInteractor *iren)
These methods are called on all registered manipulators, not just the active one. ...
Abstraction of style away from button.
virtual void OnMouseMove(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)