VTK  9.7.1
vtkTrackballMoveActor.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
30 #ifndef vtkTrackballMoveActor_h
31 #define vtkTrackballMoveActor_h
32 
33 #include "vtkCameraManipulator.h"
34 
35 #include "vtkCommand.h" // for vtkCommand::UserEvent
36 #include "vtkInteractionStyleModule.h" // needed for export macro
37 
38 VTK_ABI_NAMESPACE_BEGIN
39 class VTKINTERACTIONSTYLE_EXPORT vtkTrackballMoveActor : public vtkCameraManipulator
40 {
41 public:
42  static vtkTrackballMoveActor* New();
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47  {
48  RequestActiveSourceBoundsEvent = vtkCommand::UserEvent + 1,
49  RequestActiveSourcePositionEvent = vtkCommand::UserEvent + 3,
50  ApplyActiveSourcePositionEvent = vtkCommand::UserEvent + 2
51  };
52 
54 
57  void StartInteraction() override {};
58  void EndInteraction() override {};
59  void OnKeyDown(vtkRenderWindowInteractor* vtkNotUsed(rwi)) override {}
60  void OnKeyUp(vtkRenderWindowInteractor* vtkNotUsed(rwi)) override {}
61  void OnButtonUp(int vtkNotUsed(x), int vtkNotUsed(y), vtkRenderer* vtkNotUsed(ren),
62  vtkRenderWindowInteractor* vtkNotUsed(rwi)) override
63  {
64  }
66 
68 
72  void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren) override;
73  void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren) override;
75 
76 protected:
78  ~vtkTrackballMoveActor() override;
79 
80 private:
82  void operator=(const vtkTrackballMoveActor&) = delete;
83 };
84 VTK_ABI_NAMESPACE_END
85 #endif
void OnButtonUp(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *rwi) override
Unimplemented methods from vtkCameraManipulator.
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.
void OnKeyUp(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.
void EndInteraction() 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
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.