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 
17 class VTKPVVTKEXTENSIONSINTERACTIONSTYLE_EXPORT vtkPVTrackballZoomToMouse
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
vtkPVTrackballZoomToMouse
Zooms camera with vertical mouse movement to mouse position.
Definition: vtkPVTrackballZoomToMouse.h:17
vtkPVTrackballZoom.h
vtkPVTrackballZoom::OnButtonDown
void OnButtonDown(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *rwi) override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkPVTrackballZoom::New
static vtkPVTrackballZoom * New()
vtkPVTrackballZoom
Zooms camera with vertical mouse movement.
Definition: vtkPVTrackballZoom.h:24
vtkIndent
vtkPVTrackballZoom::OnMouseMove
void OnMouseMove(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *rwi) override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkRenderWindowInteractor
vtkPVTrackballZoom::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkRenderer
vtkPVTrackballZoom::operator=
void operator=(const vtkPVTrackballZoom &)=delete