vtkPVTrackballZoomToMouse.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVTrackballZoomToMouse.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 vtkPVTrackballZoomToMouse_h
24 #define vtkPVTrackballZoomToMouse_h
25 
26 #include "vtkPVTrackballZoom.h"
27 #include "vtkPVVTKExtensionsInteractionStyleModule.h" // needed for export macro
28 
30  : public vtkPVTrackballZoom
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
38 
42  void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
43  void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
45 
46 protected:
48  ~vtkPVTrackballZoomToMouse() override;
49 
50  int ZoomPosition[2];
51 
53  void operator=(const vtkPVTrackballZoomToMouse&) = delete;
54 };
55 
56 #endif
void operator=(const vtkPVTrackballZoom &)=delete
void OnButtonDown(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *rwi) override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
#define VTKPVVTKEXTENSIONSINTERACTIONSTYLE_EXPORT
void OnMouseMove(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *rwi) override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void PrintSelf(ostream &os, vtkIndent indent) override
static vtkPVTrackballZoom * New()
Zooms camera with vertical mouse movement.
Zooms camera with vertical mouse movement to mouse position.