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