VTK  9.7.20261003
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
21
22VTK_ABI_NAMESPACE_BEGIN
23class VTKINTERACTIONSTYLE_EXPORT VTK_MARSHALAUTO vtkTrackballZoomToMouse : public vtkTrackballZoom
24{
25public:
28 void PrintSelf(ostream& os, vtkIndent indent) override;
29
31
35 void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
36 void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
38
39protected:
42
43private:
45 void operator=(const vtkTrackballZoomToMouse&) = delete;
46
47 int ZoomPosition[2] = { 0, 0 };
48};
49VTK_ABI_NAMESPACE_END
50#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.
#define VTK_MARSHALAUTO