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_RENDER_RENDERPASSFILTER_H |
5 | #define QT3DRENDER_RENDER_RENDERPASSFILTER_H |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists for the convenience |
12 | // of other Qt classes. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include <Qt3DRender/private/framegraphnode_p.h> |
19 | #include <Qt3DRender/private/parameterpack_p.h> |
20 | #include <QList> |
21 | |
22 | QT_BEGIN_NAMESPACE |
23 | |
24 | namespace Qt3DRender { |
25 | |
26 | class QFilterKey; |
27 | class QRenderPassFilter; |
28 | |
29 | template <typename T> |
30 | class QHandle; |
31 | |
32 | namespace Render { |
33 | |
34 | class Q_3DRENDERSHARED_PRIVATE_EXPORT RenderPassFilter : public Render::FrameGraphNode |
35 | { |
36 | public: |
37 | RenderPassFilter(); |
38 | |
39 | QList<Qt3DCore::QNodeId> filters() const; |
40 | QList<Qt3DCore::QNodeId> parameters() const; |
41 | void appendFilter(Qt3DCore::QNodeId criterionId); |
42 | void removeFilter(Qt3DCore::QNodeId criterionId); |
43 | void syncFromFrontEnd(const Qt3DCore::QNode *frontEnd, bool firstTime) override; |
44 | |
45 | private: |
46 | QList<Qt3DCore::QNodeId> m_filters; |
47 | ParameterPack m_parameterPack; |
48 | }; |
49 | |
50 | } // namespace Render |
51 | } // namespace Qt3DRender |
52 | |
53 | QT_END_NAMESPACE |
54 | |
55 | #endif // QT3DRENDER_RENDER_RENDERPASSFILTER_H |
56 | |