VTK  9.7.1
vtkTrackballEnvironmentRotate.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkTrackballEnvironmentRotate_h
14 #define vtkTrackballEnvironmentRotate_h
15 
16 #include "vtkCameraManipulator.h"
17 
18 #include "vtkInteractionStyleModule.h" // needed for export macro
19 
20 VTK_ABI_NAMESPACE_BEGIN
21 class VTKINTERACTIONSTYLE_EXPORT vtkTrackballEnvironmentRotate : public vtkCameraManipulator
22 {
23 public:
26  void PrintSelf(ostream& os, vtkIndent indent) override;
27 
29 
32  void StartInteraction() override {};
33  void EndInteraction() override {};
34  void OnKeyDown(vtkRenderWindowInteractor* vtkNotUsed(rwi)) override {}
35  void OnKeyUp(vtkRenderWindowInteractor* vtkNotUsed(rwi)) override {}
36  void OnButtonDown(int vtkNotUsed(x), int vtkNotUsed(y), vtkRenderer* vtkNotUsed(ren),
37  vtkRenderWindowInteractor* vtkNotUsed(rwi)) override
38  {
39  }
40  void OnButtonUp(int vtkNotUsed(x), int vtkNotUsed(y), vtkRenderer* vtkNotUsed(ren),
41  vtkRenderWindowInteractor* vtkNotUsed(rwi)) override
42  {
43  }
45 
47 
51  void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
53 
54 protected:
56  ~vtkTrackballEnvironmentRotate() override = default;
57 
58 private:
60  void operator=(const vtkTrackballEnvironmentRotate&) = delete;
61 
62  void EnvironmentRotate(vtkRenderer* ren, vtkRenderWindowInteractor* rwi);
63 };
64 VTK_ABI_NAMESPACE_END
65 #endif
void StartInteraction() override
Unimplemented methods from vtkCameraManipulator.
Rotates the environment with xy mouse movement.
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 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.
a simple class to control print indentation
Definition: vtkIndent.h:28
void OnButtonDown(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *rwi) override
Unimplemented methods from vtkCameraManipulator.
void OnButtonUp(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *rwi) override
Unimplemented methods from vtkCameraManipulator.
void OnKeyDown(vtkRenderWindowInteractor *rwi) override
Unimplemented methods from vtkCameraManipulator.
void EndInteraction() override
Unimplemented methods from vtkCameraManipulator.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void OnKeyUp(vtkRenderWindowInteractor *rwi) override
Unimplemented methods from vtkCameraManipulator.