1 | // Copyright (C) 2020 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 QT3DCORE_QCOREASPECT_H |
5 | #define QT3DCORE_QCOREASPECT_H |
6 | |
7 | #include <Qt3DCore/qabstractaspect.h> |
8 | |
9 | QT_BEGIN_NAMESPACE |
10 | |
11 | namespace Qt3DCore { |
12 | |
13 | class QCoreAspectPrivate; |
14 | |
15 | class Q_3DCORESHARED_EXPORT QCoreAspect : public Qt3DCore::QAbstractAspect |
16 | { |
17 | Q_OBJECT |
18 | public: |
19 | explicit QCoreAspect(QObject *parent = nullptr); |
20 | ~QCoreAspect(); |
21 | |
22 | QAspectJobPtr calculateBoundingVolumeJob() const; |
23 | |
24 | protected: |
25 | Q_DECLARE_PRIVATE(QCoreAspect) |
26 | |
27 | private: |
28 | std::vector<Qt3DCore::QAspectJobPtr> jobsToExecute(qint64 time) override; |
29 | QVariant executeCommand(const QStringList &args) override; |
30 | void onRegistered() override; |
31 | void onUnregistered() override; |
32 | void onEngineStartup() override; |
33 | void frameDone() override; |
34 | }; |
35 | |
36 | } |
37 | |
38 | QT_END_NAMESPACE |
39 | |
40 | #endif // QT3DCORE_QCOREASPECT_H |
41 |