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_QBOUNDINGVOLUME_P_H
5#define QT3DCORE_QBOUNDINGVOLUME_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/private/qnode_p.h>
19#include <Qt3DCore/qt3dcore_global.h>
20#include <private/qcomponent_p.h>
21
22QT_BEGIN_NAMESPACE
23
24namespace Qt3DCore {
25class QBoundingVolume;
26class QGeometryView;
27
28class Q_3DCORESHARED_EXPORT QBoundingVolumePrivate : public Qt3DCore::QComponentPrivate
29{
30public:
31 Q_DECLARE_PUBLIC(QBoundingVolume)
32
33 QBoundingVolumePrivate();
34
35 void setImplicitBounds(const QVector3D &minPoint, const QVector3D &maxPoint, const QVector3D &center, float radius);
36 virtual void setView(QGeometryView *view);
37
38 static QBoundingVolumePrivate *get(QBoundingVolume *q);
39
40 QGeometryView *m_view;
41 QVector3D m_implicitMinPoint;
42 QVector3D m_implicitMaxPoint;
43 QVector3D m_implicitCenter;
44 QVector3D m_minPoint;
45 QVector3D m_maxPoint;
46 float m_implicitRadius;
47 bool m_implicitPointsValid;
48 bool m_explicitPointsValid;
49 bool m_primaryProvider;
50};
51
52} // namespace Qt3DCore
53
54QT_END_NAMESPACE
55
56#endif // QT3DCORE_QBOUNDINGVOLUME_P_H
57

source code of qt3d/src/core/geometry/qboundingvolume_p.h