VTK  9.7.1
vtkTableTopRotate.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
24 #ifndef vtkTableTopRotate_h
25 #define vtkTableTopRotate_h
26 
27 #include "vtkCameraManipulator.h"
28 
29 #include "vtkInteractionStyleModule.h" // needed for export macro
30 
31 VTK_ABI_NAMESPACE_BEGIN
32 class VTKINTERACTIONSTYLE_EXPORT vtkTableTopRotate : public vtkCameraManipulator
33 {
34 public:
35  static vtkTableTopRotate* New();
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
43  void StartInteraction() override {}
44  void EndInteraction() override {}
45  void OnKeyDown(vtkRenderWindowInteractor* vtkNotUsed(rwi)) override {}
46  void OnKeyUp(vtkRenderWindowInteractor* vtkNotUsed(rwi)) override {}
48 
50 
54  void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
55  void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
56  void OnButtonUp(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
58 
60 
71  vtkSetMacro(SimultaneouslyAdjustAzimuthElevation, bool);
72  vtkGetMacro(SimultaneouslyAdjustAzimuthElevation, bool);
73  vtkBooleanMacro(SimultaneouslyAdjustAzimuthElevation, bool);
75 
76 protected:
78  ~vtkTableTopRotate() override;
79 
80 private:
81  vtkTableTopRotate(const vtkTableTopRotate&) = delete;
82  void operator=(const vtkTableTopRotate&) = delete;
83 
84  bool SimultaneouslyAdjustAzimuthElevation = true;
85 };
86 VTK_ABI_NAMESPACE_END
87 #endif
void OnKeyUp(vtkRenderWindowInteractor *rwi) override
Unimplemented methods from vtkCameraManipulator.
abstract specification for renderers
Definition: vtkRenderer.h:63
Rotates camera with xy mouse movement.
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.
void OnKeyDown(vtkRenderWindowInteractor *rwi) override
Unimplemented methods from vtkCameraManipulator.
void StartInteraction() override
Unimplemented methods from vtkCameraManipulator.
platform-independent render window interaction including picking and frame rate control.
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...
void EndInteraction() override
Unimplemented methods from vtkCameraManipulator.