ParaView
vtkPVTrackballZoom.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVTrackballZoom.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 =========================================================================*/
24 #ifndef vtkPVTrackballZoom_h
25 #define vtkPVTrackballZoom_h
26 
27 #include "vtkCameraManipulator.h"
28 #include "vtkPVVTKExtensionsRenderingModule.h" // needed for export macro
29 
30 class VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkPVTrackballZoom : public vtkCameraManipulator
31 {
32 public:
33  static vtkPVTrackballZoom* New();
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
38 
42  virtual void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi);
43  virtual void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi);
44  virtual void OnButtonUp(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi);
46 
47 protected:
50 
51  double ZoomScale;
52 
53  vtkPVTrackballZoom(const vtkPVTrackballZoom&) VTK_DELETE_FUNCTION;
54  void operator=(const vtkPVTrackballZoom&) VTK_DELETE_FUNCTION;
55 };
56 
57 #endif
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)
Zooms camera with vertical mouse movement.
virtual void OnButtonDown(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)
void PrintSelf(ostream &os, vtkIndent indent)