ParaView
vtkTrackballPan.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkTrackballPan.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 =========================================================================*/
26 #ifndef vtkTrackballPan_h
27 #define vtkTrackballPan_h
28 
29 #include "vtkCameraManipulator.h"
30 #include "vtkPVVTKExtensionsRenderingModule.h" // needed for export macro
31 
32 class VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkTrackballPan : public vtkCameraManipulator
33 {
34 public:
35  static vtkTrackballPan* New();
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
40 
44  virtual void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren);
45  virtual void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren);
46  virtual void OnButtonUp(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren);
48 
49 protected:
51  ~vtkTrackballPan();
52 
53  vtkTrackballPan(const vtkTrackballPan&) VTK_DELETE_FUNCTION;
54  void operator=(const vtkTrackballPan&) VTK_DELETE_FUNCTION;
55 };
56 
57 #endif
Pans camera with x y mouse movements.
Abstraction of style away from button.
static vtkCameraManipulator * New()
virtual void OnMouseMove(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)
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)