1// Copyright (C) 2017 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 QT3DRENDER_QLEVELOFDETAIL_P_H
5#define QT3DRENDER_QLEVELOFDETAIL_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 <private/qcomponent_p.h>
19#include <qlevelofdetail.h>
20#include <Qt3DRender/qlevelofdetailboundingsphere.h>
21#include <Qt3DRender/private/qt3drender_global_p.h>
22
23#include <QVector3D>
24
25QT_BEGIN_NAMESPACE
26
27namespace Qt3DRender {
28
29class Q_3DRENDERSHARED_PRIVATE_EXPORT QLevelOfDetailPrivate : public Qt3DCore::QComponentPrivate
30{
31public:
32 QLevelOfDetailPrivate();
33
34 Q_DECLARE_PUBLIC(QLevelOfDetail)
35
36 void _q_radiusChanged(float radius);
37 void _q_centerChanged(const QVector3D &center);
38
39 virtual void setCurrentIndex(int currentIndex);
40
41 QCamera *m_camera;
42 int m_currentIndex;
43 QLevelOfDetail::ThresholdType m_thresholdType;
44 QList<qreal> m_thresholds;
45 QLevelOfDetailBoundingSphere m_volumeOverride;
46};
47
48struct QLevelOfDetailData
49{
50 Qt3DCore::QNodeId camera;
51 int currentIndex;
52 QLevelOfDetail::ThresholdType thresholdType;
53 QList<qreal> thresholds;
54 QLevelOfDetailBoundingSphere volumeOverride;
55};
56
57} // namespace Qt3DRender
58
59QT_END_NAMESPACE
60
61#endif // QT3DRENDER_QLEVELOFDETAIL_P_H
62

source code of qt3d/src/render/frontend/qlevelofdetail_p.h