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_TECHNIQUEFILTER_H
5#define QT3DRENDER_RENDER_TECHNIQUEFILTER_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
21#include <QList>
22#include <QString>
23#include <QVariant>
24
25QT_BEGIN_NAMESPACE
26
27namespace Qt3DRender {
28
29class QFilterKey;
30class QTechniqueFilter;
31
32template <typename T>
33class QHandle;
34
35namespace Render {
36
37class Q_3DRENDERSHARED_PRIVATE_EXPORT TechniqueFilter
38 : public FrameGraphNode
39{
40public:
41 TechniqueFilter();
42
43 QList<Qt3DCore::QNodeId> parameters() const;
44
45 QList<Qt3DCore::QNodeId> filters() const;
46 void syncFromFrontEnd(const Qt3DCore::QNode *frontEnd, bool firstTime) override;
47
48private:
49 void appendFilter(Qt3DCore::QNodeId criterionId);
50 void removeFilter(Qt3DCore::QNodeId criterionId);
51
52 QList<Qt3DCore::QNodeId> m_filters;
53 ParameterPack m_parameterPack;
54};
55
56} // namespace Render
57
58} // namespace Qt3DRender
59
60QT_END_NAMESPACE
61
62#endif // QT3DRENDER_RENDER_TECHNIQUEFILTER_H
63

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