1 | // Copyright (C) 2019 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 | |
5 | #ifndef QT3DRENDER_RENDER_UPDATEENTITYLAYERSJOB_P_H |
6 | #define QT3DRENDER_RENDER_UPDATEENTITYLAYERSJOB_P_H |
7 | |
8 | // |
9 | // W A R N I N G |
10 | // ------------- |
11 | // |
12 | // This file is not part of the Qt API. It exists for the convenience |
13 | // of other Qt classes. This header file may change from version to |
14 | // version without notice, or even be removed. |
15 | // |
16 | // We mean it. |
17 | // |
18 | |
19 | #include <Qt3DRender/private/qt3drender_global_p.h> |
20 | #include <Qt3DCore/qaspectjob.h> |
21 | |
22 | QT_BEGIN_NAMESPACE |
23 | |
24 | namespace Qt3DRender { |
25 | |
26 | namespace Render { |
27 | |
28 | class Entity; |
29 | class NodeManagers; |
30 | |
31 | |
32 | class Q_3DRENDERSHARED_PRIVATE_EXPORT UpdateEntityLayersJob: public Qt3DCore::QAspectJob |
33 | { |
34 | public: |
35 | UpdateEntityLayersJob(); |
36 | |
37 | inline void setManager(NodeManagers *manager) { m_manager = manager; } |
38 | inline NodeManagers *manager() const { return m_manager; } |
39 | |
40 | // QAspectJob interface |
41 | void run() final; |
42 | |
43 | private: |
44 | NodeManagers *m_manager; |
45 | }; |
46 | |
47 | |
48 | typedef QSharedPointer<UpdateEntityLayersJob> UpdateEntityLayersJobPtr; |
49 | |
50 | } // Render |
51 | |
52 | } // Qt3DRender |
53 | |
54 | QT_END_NAMESPACE |
55 | |
56 | #endif // QT3DRENDER_RENDER_UPDATEENTITYLAYERSJOB_P_H |
57 | |