ParaView
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 "vtkPVVTKExtensionsRenderingModule.h" // needed for export macro
28 
29 class VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkPVTrackballRotate : public vtkCameraManipulator
30 {
31 public:
32  static vtkPVTrackballRotate* New();
34  void PrintSelf(ostream& os, vtkIndent indent);
35 
37 
41  virtual void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi);
42  virtual void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi);
43  virtual void OnButtonUp(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi);
45 
47 
53  virtual void OnKeyUp(vtkRenderWindowInteractor* iren);
54  virtual void OnKeyDown(vtkRenderWindowInteractor* iren);
56 
58 
61  vtkSetVector3Macro(Center, double);
62  vtkGetVector3Macro(Center, double);
64 
66 
69  vtkGetMacro(KeyCode, char);
70 
71 protected:
75 
76  double Center[3];
77  double DisplayCenter[2];
78 
79  char KeyCode;
80 
81  vtkPVTrackballRotate(const vtkPVTrackballRotate&) VTK_DELETE_FUNCTION;
82  void operator=(const vtkPVTrackballRotate&) VTK_DELETE_FUNCTION;
83 };
84 
85 #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.
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)
void PrintSelf(ostream &os, vtkIndent indent)