VTK  9.3.1
vtkZSpaceRenderWindowInteractor.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
16 #ifndef vtkZSpaceRenderWindowInteractor_h
17 #define vtkZSpaceRenderWindowInteractor_h
18 
19 #include "vtkEventData.h" // For vtkEventDataDevice
21 #include "vtkRenderingZSpaceModule.h" // For export macro
22 
23 VTK_ABI_NAMESPACE_BEGIN
24 
25 class VTKRENDERINGZSPACE_EXPORT vtkZSpaceRenderWindowInteractor : public vtkRenderWindowInteractor3D
26 {
27 public:
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
39  virtual void ExitCallback();
40 
45  void ProcessEvents() override;
46 
47  /*
48  * Return the pointer index as a device
49  */
50  vtkEventDataDevice GetPointerDevice();
51 
53 
58  void OnLeftButtonDown(vtkEventDataDevice3D*);
59  void OnLeftButtonUp(vtkEventDataDevice3D*);
61 
63 
67  void OnMiddleButtonDown(vtkEventDataDevice3D*);
68  void OnMiddleButtonUp(vtkEventDataDevice3D*);
70 
72 
77  void OnRightButtonDown(vtkEventDataDevice3D*);
78  void OnRightButtonUp(vtkEventDataDevice3D*);
80 
81 protected:
83  ~vtkZSpaceRenderWindowInteractor() override = default;
84 
89  void StartEventLoop() override;
90 
91 private:
93  void operator=(const vtkZSpaceRenderWindowInteractor&) = delete;
94 };
95 
96 VTK_ABI_NAMESPACE_END
97 
98 #endif
Handle zSpace specific interactions.
adds support for 3D events to vtkRenderWindowInteractor.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual void ExitCallback()
These methods correspond to the Exit, User and Pick callbacks.
virtual void StartEventLoop()
Run the event loop (does not return until TerminateApp is called).
vtkEventDataDevice
platform-independent event data structures
Definition: vtkEventData.h:14
virtual void ProcessEvents()
Process all user-interaction, timer events and return.
static vtkRenderWindowInteractor3D * New()
Construct object so that light follows camera motion.