summaryrefslogtreecommitdiffstats
path: root/src/core/aspect/qcoreaspect.h
blob: 24878ad1a7dc65acd472c0a34ff3bb5c08067f7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright (C) 2020 Klaralvdalens Datakonsult AB (KDAB).
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#ifndef QT3DCORE_QCOREASPECT_H
#define QT3DCORE_QCOREASPECT_H

#include <Qt3DCore/qabstractaspect.h>

QT_BEGIN_NAMESPACE

namespace Qt3DCore {

class QCoreAspectPrivate;

class Q_3DCORESHARED_EXPORT QCoreAspect : public Qt3DCore::QAbstractAspect
{
    Q_OBJECT
public:
    explicit QCoreAspect(QObject *parent = nullptr);
    ~QCoreAspect();

    QAspectJobPtr calculateBoundingVolumeJob() const;

protected:
    Q_DECLARE_PRIVATE(QCoreAspect)

private:
    std::vector<Qt3DCore::QAspectJobPtr> jobsToExecute(qint64 time) override;
    QVariant executeCommand(const QStringList &args) override;
    void onRegistered() override;
    void onUnregistered() override;
    void onEngineStartup() override;
    void frameDone() override;
};

}

QT_END_NAMESPACE

#endif // QT3DCORE_QCOREASPECT_H