VTK  9.7.1
vtkTrackballRoll.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
15 #ifndef vtkTrackballRoll_h
16 #define vtkTrackballRoll_h
17 
18 #include "vtkCameraManipulator.h"
19 
20 #include "vtkInteractionStyleModule.h" // needed for export macro
21 
22 VTK_ABI_NAMESPACE_BEGIN
23 class VTKINTERACTIONSTYLE_EXPORT vtkTrackballRoll : public vtkCameraManipulator
24 {
25 public:
26  static vtkTrackballRoll* New();
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
31 
34  void StartInteraction() override {};
35  void EndInteraction() override {};
36  void OnKeyDown(vtkRenderWindowInteractor* vtkNotUsed(rwi)) override {}
37  void OnKeyUp(vtkRenderWindowInteractor* vtkNotUsed(rwi)) 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 
50 protected:
52  ~vtkTrackballRoll() override;
53 
54 private:
55  vtkTrackballRoll(const vtkTrackballRoll&) = delete;
56  void operator=(const vtkTrackballRoll&) = delete;
57 };
58 VTK_ABI_NAMESPACE_END
59 #endif
void EndInteraction() override
Unimplemented methods from vtkCameraManipulator.
abstract specification for renderers
Definition: vtkRenderer.h:63
Abstraction of style away from button.
void OnKeyUp(vtkRenderWindowInteractor *rwi) override
Unimplemented methods from vtkCameraManipulator.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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.
platform-independent render window interaction including picking and frame rate control.
Rolls camera around a point.
a simple class to control print indentation
Definition: vtkIndent.h:28
void StartInteraction() override
Unimplemented methods from vtkCameraManipulator.
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...
void OnKeyDown(vtkRenderWindowInteractor *rwi) override
Unimplemented methods from vtkCameraManipulator.