VTK  9.6.20260326
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
24VTK_ABI_NAMESPACE_BEGIN
25class VTKINTERACTIONSTYLE_EXPORT vtkTrackballRotate : public vtkCameraManipulator
26{
27public:
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
33
36 void StartInteraction() override{};
37 void EndInteraction() override{};
39
41
45 void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
46 void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
47 void OnButtonUp(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
49
51
54 void OnKeyUp(vtkRenderWindowInteractor* iren) override;
57
61 vtkGetMacro(KeyCode, char);
62
63protected:
66
67private:
69 void operator=(const vtkTrackballRotate&) = delete;
70
71 char KeyCode = 0;
72};
73VTK_ABI_NAMESPACE_END
74#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.