| 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 | |
| 25 | QT_BEGIN_NAMESPACE |
| 26 | |
| 27 | namespace Qt3DRender { |
| 28 | |
| 29 | class QFilterKey; |
| 30 | class QTechniqueFilter; |
| 31 | |
| 32 | template <typename T> |
| 33 | class QHandle; |
| 34 | |
| 35 | namespace Render { |
| 36 | |
| 37 | class Q_3DRENDERSHARED_PRIVATE_EXPORT TechniqueFilter |
| 38 | : public FrameGraphNode |
| 39 | { |
| 40 | public: |
| 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 | |
| 48 | private: |
| 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 | |
| 60 | QT_END_NAMESPACE |
| 61 | |
| 62 | #endif // QT3DRENDER_RENDER_TECHNIQUEFILTER_H |
| 63 | |