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_QRENDERTARGETSELECTOR_H |
5 | #define QT3DRENDER_QRENDERTARGETSELECTOR_H |
6 | |
7 | #include <Qt3DRender/qt3drender_global.h> |
8 | #include <Qt3DCore/qnode.h> |
9 | #include <Qt3DRender/qframegraphnode.h> |
10 | #include <Qt3DRender/qrendertargetoutput.h> |
11 | #include <Qt3DRender/qrendertarget.h> |
12 | |
13 | QT_BEGIN_NAMESPACE |
14 | |
15 | namespace Qt3DRender { |
16 | |
17 | class QRenderTargetSelectorPrivate; |
18 | |
19 | class Q_3DRENDERSHARED_EXPORT QRenderTargetSelector : public QFrameGraphNode |
20 | { |
21 | Q_OBJECT |
22 | Q_PROPERTY(Qt3DRender::QRenderTarget *target READ target WRITE setTarget NOTIFY targetChanged) |
23 | public: |
24 | explicit QRenderTargetSelector(Qt3DCore::QNode *parent = nullptr); |
25 | ~QRenderTargetSelector(); |
26 | |
27 | QRenderTarget *target() const; |
28 | |
29 | public Q_SLOTS: |
30 | void setTarget(QRenderTarget *target); |
31 | |
32 | Q_SIGNALS: |
33 | void targetChanged(QRenderTarget *target); |
34 | |
35 | protected: |
36 | explicit QRenderTargetSelector(QRenderTargetSelectorPrivate &dd, Qt3DCore::QNode *parent = nullptr); |
37 | |
38 | private: |
39 | Q_DECLARE_PRIVATE(QRenderTargetSelector) |
40 | }; |
41 | |
42 | } // namespace Qt3DRender |
43 | |
44 | QT_END_NAMESPACE |
45 | |
46 | Q_DECLARE_METATYPE(QList<Qt3DRender::QRenderTargetOutput::AttachmentPoint>) // LCOV_EXCL_LINE |
47 | |
48 | #endif // QT3DRENDER_QRENDERTARGETSELECTOR_H |
49 |