1 | // Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB). |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QT3DRENDER_QCAMERASELECTOR_H |
5 | #define QT3DRENDER_QCAMERASELECTOR_H |
6 | |
7 | #include <Qt3DCore/qentity.h> |
8 | #include <Qt3DRender/qt3drender_global.h> |
9 | #include <Qt3DRender/qframegraphnode.h> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | namespace Qt3DRender { |
14 | |
15 | class QCameraSelectorPrivate; |
16 | |
17 | class Q_3DRENDERSHARED_EXPORT QCameraSelector : public QFrameGraphNode |
18 | { |
19 | Q_OBJECT |
20 | Q_PROPERTY(Qt3DCore::QEntity *camera READ camera WRITE setCamera NOTIFY cameraChanged) |
21 | |
22 | public: |
23 | explicit QCameraSelector(Qt3DCore::QNode *parent = nullptr); |
24 | ~QCameraSelector(); |
25 | |
26 | Qt3DCore::QEntity *camera() const; |
27 | |
28 | public Q_SLOTS: |
29 | void setCamera(Qt3DCore::QEntity *camera); |
30 | |
31 | Q_SIGNALS: |
32 | void cameraChanged(Qt3DCore::QEntity *camera); |
33 | |
34 | protected: |
35 | explicit QCameraSelector(QCameraSelectorPrivate &dd, Qt3DCore::QNode *parent = nullptr); |
36 | |
37 | private: |
38 | Q_DECLARE_PRIVATE(QCameraSelector) |
39 | }; |
40 | |
41 | } // namespace Qt3DRender |
42 | |
43 | QT_END_NAMESPACE |
44 | |
45 | |
46 | #endif // QT3DRENDER_QCAMERASELECTOR_H |
47 | |