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_LAYERFILTERNODE_H
5#define QT3DRENDER_RENDER_LAYERFILTERNODE_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/QLayerFilter>
20#include <Qt3DRender/QLayer>
21#include <QStringList>
22
23QT_BEGIN_NAMESPACE
24
25namespace Qt3DRender {
26
27namespace Render {
28
29class Renderer;
30
31class Q_3DRENDERSHARED_PRIVATE_EXPORT LayerFilterNode : public FrameGraphNode
32{
33public:
34 LayerFilterNode();
35
36 void syncFromFrontEnd(const Qt3DCore::QNode *frontEnd, bool firstTime) override;
37
38 Qt3DCore::QNodeIdVector layerIds() const;
39 void setLayerIds(const Qt3DCore::QNodeIdVector &list);
40
41 QLayerFilter::FilterMode filterMode() const;
42
43private:
44 Qt3DCore::QNodeIdVector m_layerIds;
45 QLayerFilter::FilterMode m_filterMode;
46};
47
48} // namespace Render
49
50} // namespace Qt3DRender
51
52QT_END_NAMESPACE
53
54#endif // QT3DRENDER_RENDER_LAYERFILTERNODE_H
55

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