| 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 QT3DEXTRAS_EXTRAS_QUICK_QUICK3DLEVELOFDETAILLOADER_P_H |
| 5 | #define |
| 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 <Qt3DQuickExtras/private/qt3dquickextras_global_p.h> |
| 19 | #include <Qt3DCore/qentity.h> |
| 20 | #include <Qt3DRender/qlevelofdetail.h> |
| 21 | |
| 22 | QT_BEGIN_NAMESPACE |
| 23 | |
| 24 | namespace Qt3DExtras { |
| 25 | namespace Extras { |
| 26 | namespace Quick { |
| 27 | |
| 28 | class ; |
| 29 | |
| 30 | class Q_3DQUICKEXTRASSHARED_PRIVATE_EXPORT : public Qt3DCore::QEntity |
| 31 | { |
| 32 | Q_OBJECT |
| 33 | |
| 34 | QML_NAMED_ELEMENT(LevelOfDetailLoader) |
| 35 | QML_ADDED_IN_VERSION(2, 9) |
| 36 | |
| 37 | Q_PROPERTY(QVariantList sources READ sources WRITE setSources NOTIFY sourcesChanged) |
| 38 | |
| 39 | Q_PROPERTY(Qt3DRender::QCamera *camera READ camera WRITE setCamera NOTIFY cameraChanged) |
| 40 | Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged) |
| 41 | Q_PROPERTY(Qt3DRender::QLevelOfDetail::ThresholdType thresholdType READ thresholdType WRITE setThresholdType NOTIFY thresholdTypeChanged) |
| 42 | Q_PROPERTY(QList<qreal> thresholds READ thresholds WRITE setThresholds NOTIFY thresholdsChanged) |
| 43 | Q_PROPERTY(Qt3DRender::QLevelOfDetailBoundingSphere volumeOverride READ volumeOverride WRITE setVolumeOverride NOTIFY volumeOverrideChanged) |
| 44 | |
| 45 | Q_PROPERTY(QObject *entity READ entity NOTIFY entityChanged) |
| 46 | Q_PROPERTY(QUrl source READ source NOTIFY sourceChanged) |
| 47 | public: |
| 48 | explicit (QNode *parent = 0); |
| 49 | |
| 50 | QVariantList () const; |
| 51 | void (const QVariantList &sources); |
| 52 | |
| 53 | Qt3DRender::QCamera *() const; |
| 54 | void (Qt3DRender::QCamera *camera); |
| 55 | int () const; |
| 56 | void (int currentIndex); |
| 57 | Qt3DRender::QLevelOfDetail::ThresholdType () const; |
| 58 | void (Qt3DRender::QLevelOfDetail::ThresholdType thresholdType); |
| 59 | QList<qreal> () const; |
| 60 | void (const QList<qreal> &thresholds); |
| 61 | Qt3DRender::QLevelOfDetailBoundingSphere () const; |
| 62 | void (const Qt3DRender::QLevelOfDetailBoundingSphere &volumeOverride); |
| 63 | |
| 64 | Q_INVOKABLE Qt3DRender::QLevelOfDetailBoundingSphere (const QVector3D ¢er, float radius); |
| 65 | |
| 66 | QObject *() const; |
| 67 | QUrl () const; |
| 68 | |
| 69 | Q_SIGNALS: |
| 70 | void (); |
| 71 | void (); |
| 72 | void (); |
| 73 | void (); |
| 74 | void (); |
| 75 | void (); |
| 76 | void (); |
| 77 | void (); |
| 78 | |
| 79 | private: |
| 80 | Q_DECLARE_PRIVATE(Quick3DLevelOfDetailLoader) |
| 81 | }; |
| 82 | |
| 83 | } // namespace Quick |
| 84 | } // namespace Extras |
| 85 | } // namespace Qt3DExtras |
| 86 | |
| 87 | QT_END_NAMESPACE |
| 88 | |
| 89 | #endif // QT3DEXTRAS_EXTRAS_QUICK_QUICK3DLEVELOFDETAILLOADER_P_H |
| 90 | |