VTK  9.7.1
QQuickVTKInteractorAdapter.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
3 
9 #ifndef QQuickVTKInteractorAdapter_h
10 #define QQuickVTKInteractorAdapter_h
11 
12 #include "QVTKInteractorAdapter.h"
13 #include "vtkGUISupportQtQuickModule.h" // For export macro
14 
15 VTK_ABI_NAMESPACE_BEGIN
16 
17 // Forward declarations
19 
36 class VTKGUISUPPORTQTQUICK_EXPORT QQuickVTKInteractorAdapter : public QVTKInteractorAdapter
37 {
38  Q_OBJECT
40 
41 public:
42  QQuickVTKInteractorAdapter(QObject* parent = nullptr);
43 
44  // Description:
45  // Process a QEvent and send it to the interactor
46  // returns whether the event was recognized and processed
47  bool ProcessEvent(QEvent* e, vtkRenderWindowInteractor* iren) override;
48 
49 private:
50  Q_DISABLE_COPY(QQuickVTKInteractorAdapter)
51 };
52 
53 VTK_ABI_NAMESPACE_END
54 
55 #endif // QQuickVTKInteractorAdapter_h
virtual bool ProcessEvent(QEvent *e, vtkRenderWindowInteractor *iren)
platform-independent render window interaction including picking and frame rate control.
Interactor that handles relaying custom QML handler events to VTK.