VTK  9.7.20261003
vtkTrackballRotate.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2// SPDX-License-Identifier: BSD-3-Clause
16
17#ifndef vtkTrackballRotate_h
18#define vtkTrackballRotate_h
19
21
22#include "vtkInteractionStyleModule.h" // needed for export macro
23#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
24
25VTK_ABI_NAMESPACE_BEGIN
26class VTKINTERACTIONSTYLE_EXPORT VTK_MARSHALAUTO vtkTrackballRotate : public vtkCameraManipulator
27{
28public:
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
34
37 void StartInteraction() override {};
38 void EndInteraction() override {};
40
42
46 void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
47 void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
48 void OnButtonUp(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
50
52
55 void OnKeyUp(vtkRenderWindowInteractor* iren) override;
58
62 vtkGetMacro(KeyCode, char);
63
64protected:
67
68private:
70 void operator=(const vtkTrackballRotate&) = delete;
71
72 char KeyCode = 0;
73};
74VTK_ABI_NAMESPACE_END
75#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
void OnButtonDown(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *rwi) override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void EndInteraction() override
Unimplemented methods from vtkCameraManipulator.
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 OnKeyDown(vtkRenderWindowInteractor *iren) override
Overridden to capture if the x,y,z key is pressed.
~vtkTrackballRotate() override
static vtkTrackballRotate * New()
void StartInteraction() override
Unimplemented methods from vtkCameraManipulator.
void OnButtonUp(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.
void OnKeyUp(vtkRenderWindowInteractor *iren) override
Overridden to capture if the x,y,z key is pressed.
#define VTK_MARSHALAUTO