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_P_H
5#define QT3DCORE_QCOREASPECT_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of other Qt classes. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <Qt3DCore/qcoreaspect.h>
19#include <Qt3DCore/private/qabstractaspect_p.h>
20#include <Qt3DCore/private/qt3dcore_global_p.h>
21
22#include <QSharedPointer>
23
24QT_BEGIN_NAMESPACE
25
26namespace Qt3DCore {
27
28class CalculateBoundingVolumeJob;
29using CalculateBoundingVolumeJobPtr = QSharedPointer<CalculateBoundingVolumeJob>;
30
31class Q_3DCORE_PRIVATE_EXPORT QCoreAspectPrivate : public Qt3DCore::QAbstractAspectPrivate
32{
33public:
34 QCoreAspectPrivate();
35 ~QCoreAspectPrivate();
36
37 Q_DECLARE_PUBLIC(QCoreAspect)
38 static QCoreAspectPrivate *get(QCoreAspect *aspect);
39
40 void jobsDone() override;
41 void frameDone() override;
42
43 bool m_initialized;
44 CalculateBoundingVolumeJobPtr m_calculateBoundingVolumeJob;
45 bool m_boundingVolumesEnabled;
46};
47
48}
49
50QT_END_NAMESPACE
51
52#endif // QT3DCORE_QCOREASPECT_P_H
53

source code of qt3d/src/core/aspect/qcoreaspect_p.h