vtkPVTrackballZoomToMouse.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkPVTrackballZoomToMouse_h
12 #define vtkPVTrackballZoomToMouse_h
13 
14 #include "vtkPVTrackballZoom.h"
15 #include "vtkPVVTKExtensionsInteractionStyleModule.h" // needed for export macro
16 
18  : public vtkPVTrackballZoom
19 {
20 public:
23  void PrintSelf(ostream& os, vtkIndent indent) override;
24 
26 
30  void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
31  void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
33 
34 protected:
36  ~vtkPVTrackballZoomToMouse() override;
37 
38  int ZoomPosition[2];
39 
41  void operator=(const vtkPVTrackballZoomToMouse&) = delete;
42 };
43 
44 #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.