VTK  9.7.1
vtkTrackballRotate.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
17 #ifndef vtkTrackballRotate_h
18 #define vtkTrackballRotate_h
19 
20 #include "vtkCameraManipulator.h"
21 
22 #include "vtkInteractionStyleModule.h" // needed for export macro
23 
24 VTK_ABI_NAMESPACE_BEGIN
25 class VTKINTERACTIONSTYLE_EXPORT vtkTrackballRotate : public vtkCameraManipulator
26 {
27 public:
28  static vtkTrackballRotate* New();
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;
55  void OnKeyDown(vtkRenderWindowInteractor* iren) override;
57 
61  vtkGetMacro(KeyCode, char);
62 
63 protected:
65  ~vtkTrackballRotate() override;
66 
67 private:
68  vtkTrackballRotate(const vtkTrackballRotate&) = delete;
69  void operator=(const vtkTrackballRotate&) = delete;
70 
71  char KeyCode = 0;
72 };
73 VTK_ABI_NAMESPACE_END
74 #endif
virtual void OnKeyDown(vtkRenderWindowInteractor *iren)=0
These methods are called on all registered manipulators, not just the active one. ...
abstract specification for renderers
Definition: vtkRenderer.h:63
Abstraction of style away from button.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void OnKeyUp(vtkRenderWindowInteractor *iren)=0
These methods are called on all registered manipulators, not just the active one. ...
virtual void OnMouseMove(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)=0
These methods are called on the active manipulator when the corresponding events occur.
void EndInteraction() override
Unimplemented methods from vtkCameraManipulator.
platform-independent render window interaction including picking and frame rate control.
Rotates camera with xy mouse movement.
void StartInteraction() override
Unimplemented methods from vtkCameraManipulator.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual void OnButtonDown(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)=0
virtual void OnButtonUp(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)=0
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...