VTK  9.7.1
vtkTrackballZoomToMouse.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkTrackballZoomToMouse_h
15 #define vtkTrackballZoomToMouse_h
16 
17 #include "vtkTrackballZoom.h"
18 
19 #include "vtkInteractionStyleModule.h" // needed for export macro
20 
21 VTK_ABI_NAMESPACE_BEGIN
22 class VTKINTERACTIONSTYLE_EXPORT vtkTrackballZoomToMouse : public vtkTrackballZoom
23 {
24 public:
25  static vtkTrackballZoomToMouse* New();
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
30 
34  void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
35  void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
37 
38 protected:
40  ~vtkTrackballZoomToMouse() override;
41 
42 private:
44  void operator=(const vtkTrackballZoomToMouse&) = delete;
45 
46  int ZoomPosition[2] = { 0, 0 };
47 };
48 VTK_ABI_NAMESPACE_END
49 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void OnMouseMove(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *rwi) override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
static vtkTrackballZoom * New()
abstract specification for renderers
Definition: vtkRenderer.h:63
platform-independent render window interaction including picking and frame rate control.
a simple class to control print indentation
Definition: vtkIndent.h:28
void OnButtonDown(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *rwi) override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
Zooms camera with vertical mouse movement.
Zooms camera with vertical mouse movement to mouse position.