vtkPVTrackballRotate.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkPVTrackballRotate_h
12 #define vtkPVTrackballRotate_h
13 
14 #include "vtkCameraManipulator.h"
15 #include "vtkPVVTKExtensionsInteractionStyleModule.h" // needed for export macro
16 
18 {
19 public:
20  static vtkPVTrackballRotate* New();
22  void PrintSelf(ostream& os, vtkIndent indent) override;
23 
25 
29  void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
30  void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
31  void OnButtonUp(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
33 
35 
41  void OnKeyUp(vtkRenderWindowInteractor* iren) override;
42  void OnKeyDown(vtkRenderWindowInteractor* iren) override;
44 
48  vtkGetMacro(KeyCode, char);
49 
50 protected:
52  ~vtkPVTrackballRotate() override;
53 
54  char KeyCode;
56  void operator=(const vtkPVTrackballRotate&) = delete;
57 };
58 
59 #endif
virtual void OnKeyUp(vtkRenderWindowInteractor *iren)
These methods are called on all registered manipulators, not just the active one. ...
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)
Rotates camera with xy mouse movement.
virtual void OnButtonUp(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)
virtual void OnButtonDown(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)