1 | // Copyright (C) 2015 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 QT3DLOGIC_QLOGICASPECT_H |
5 | #define QT3DLOGIC_QLOGICASPECT_H |
6 | |
7 | #include <Qt3DLogic/qt3dlogic_global.h> |
8 | #include <Qt3DCore/qabstractaspect.h> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | namespace Qt3DLogic { |
13 | |
14 | class QLogicAspectPrivate; |
15 | |
16 | class Q_3DLOGICSHARED_EXPORT QLogicAspect : public Qt3DCore::QAbstractAspect |
17 | { |
18 | Q_OBJECT |
19 | public: |
20 | explicit QLogicAspect(QObject *parent = nullptr); |
21 | ~QLogicAspect(); |
22 | |
23 | private: |
24 | std::vector<Qt3DCore::QAspectJobPtr> jobsToExecute(qint64 time) override; |
25 | void onRegistered() override; |
26 | void onEngineStartup() override; |
27 | |
28 | Q_DECLARE_PRIVATE(QLogicAspect) |
29 | explicit QLogicAspect(QLogicAspectPrivate &dd, QObject *parent); |
30 | }; |
31 | |
32 | } // namespace Qt3DLogic |
33 | |
34 | QT_END_NAMESPACE |
35 | |
36 | #endif // QT3DLOGIC_QLOGICASPECT_H |
37 |