1 | // Copyright (C) 2016 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 | #ifndef QT3DRENDER_RENDER_PARAMETERPACK_H |
4 | #define QT3DRENDER_RENDER_PARAMETERPACK_H |
5 | |
6 | // |
7 | // W A R N I N G |
8 | // ------------- |
9 | // |
10 | // This file is not part of the Qt API. It exists for the convenience |
11 | // of other Qt classes. This header file may change from version to |
12 | // version without notice, or even be removed. |
13 | // |
14 | // We mean it. |
15 | // |
16 | |
17 | #include <Qt3DCore/qnodeid.h> |
18 | #include <QList> |
19 | #include <private/qglobal_p.h> |
20 | |
21 | QT_BEGIN_NAMESPACE |
22 | |
23 | namespace Qt3DRender { |
24 | |
25 | namespace Render { |
26 | |
27 | class ParameterPack |
28 | { |
29 | public: |
30 | ParameterPack(); |
31 | ~ParameterPack(); |
32 | void clear(); |
33 | void appendParameter(Qt3DCore::QNodeId parameterId); |
34 | void removeParameter(Qt3DCore::QNodeId parameterId); |
35 | QList<Qt3DCore::QNodeId> parameters() const; |
36 | |
37 | void setParameters(const Qt3DCore::QNodeIdVector ¶meterIds) |
38 | { |
39 | m_peers = parameterIds; |
40 | } |
41 | |
42 | private: |
43 | QList<Qt3DCore::QNodeId> m_peers; |
44 | }; |
45 | |
46 | } // namespace Render |
47 | |
48 | } // namespace Qt3DRender |
49 | |
50 | QT_END_NAMESPACE |
51 | |
52 | #endif // QT3DRENDER_RENDER_PARAMETERPACK_H |
53 | |