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_QTECHNIQUEFILTER_H |
5 | #define QT3DRENDER_QTECHNIQUEFILTER_H |
6 | |
7 | #include <Qt3DRender/qt3drender_global.h> |
8 | #include <Qt3DRender/qframegraphnode.h> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | namespace Qt3DRender { |
13 | |
14 | class QTechniqueFilterPrivate; |
15 | class QFilterKey; |
16 | class QParameter; |
17 | |
18 | class Q_3DRENDERSHARED_EXPORT QTechniqueFilter : public QFrameGraphNode |
19 | { |
20 | Q_OBJECT |
21 | public: |
22 | explicit QTechniqueFilter(Qt3DCore::QNode *parent = nullptr); |
23 | ~QTechniqueFilter(); |
24 | |
25 | QList<QFilterKey *> matchAll() const; |
26 | void addMatch(QFilterKey *filterKey); |
27 | void removeMatch(QFilterKey *filterKey); |
28 | |
29 | void addParameter(QParameter *p); |
30 | void removeParameter(QParameter *p); |
31 | QList<QParameter *> parameters() const; |
32 | |
33 | protected: |
34 | QTechniqueFilter(QTechniqueFilterPrivate &dd, Qt3DCore::QNode *parent = nullptr); |
35 | |
36 | private: |
37 | Q_DECLARE_PRIVATE(QTechniqueFilter) |
38 | }; |
39 | |
40 | } // namespace Qt3DRender |
41 | |
42 | QT_END_NAMESPACE |
43 | |
44 | #endif // QT3DRENDER_QTECHNIQUEFILTER_H |
45 | |