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
10QT_BEGIN_NAMESPACE
11
12namespace Qt3DRender {
13
14class QTechniqueFilterPrivate;
15class QFilterKey;
16class QParameter;
17
18class Q_3DRENDERSHARED_EXPORT QTechniqueFilter : public QFrameGraphNode
19{
20 Q_OBJECT
21public:
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
33protected:
34 QTechniqueFilter(QTechniqueFilterPrivate &dd, Qt3DCore::QNode *parent = nullptr);
35
36private:
37 Q_DECLARE_PRIVATE(QTechniqueFilter)
38};
39
40} // namespace Qt3DRender
41
42QT_END_NAMESPACE
43
44#endif // QT3DRENDER_QTECHNIQUEFILTER_H
45

source code of qt3d/src/render/framegraph/qtechniquefilter.h