VTK  9.4.20250205
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
13#include "vtkGUISupportQtQuickModule.h" // For export macro
14
15VTK_ABI_NAMESPACE_BEGIN
16
17// Forward declarations
19
36class VTKGUISUPPORTQTQUICK_EXPORT QQuickVTKInteractorAdapter : public QVTKInteractorAdapter
37{
38 Q_OBJECT
40
41public:
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
49private:
50 Q_DISABLE_COPY(QQuickVTKInteractorAdapter)
51};
52
53VTK_ABI_NAMESPACE_END
54
55#endif // QQuickVTKInteractorAdapter_h
Interactor that handles relaying custom QML handler events to VTK.
QQuickVTKInteractorAdapter(QObject *parent=nullptr)
bool ProcessEvent(QEvent *e, vtkRenderWindowInteractor *iren) override
platform-independent render window interaction including picking and frame rate control.