vtkPVTrackballRotate.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVTrackballRotate.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 =========================================================================*/
23 #ifndef vtkPVTrackballRotate_h
24 #define vtkPVTrackballRotate_h
25 
26 #include "vtkCameraManipulator.h"
27 #include "vtkPVVTKExtensionsInteractionStyleModule.h" // needed for export macro
28 
30 {
31 public:
32  static vtkPVTrackballRotate* New();
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
37 
41  void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
42  void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
43  void OnButtonUp(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
45 
47 
53  void OnKeyUp(vtkRenderWindowInteractor* iren) override;
54  void OnKeyDown(vtkRenderWindowInteractor* iren) override;
56 
60  vtkGetMacro(KeyCode, char);
61 
62 protected:
64  ~vtkPVTrackballRotate() override;
65 
66  char KeyCode;
68  void operator=(const vtkPVTrackballRotate&) = delete;
69 };
70 
71 #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)