/****************************************************************************
** Meta object code from reading C++ file 'quick3dlevelofdetailloader_p.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.12.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../../../../qt3d/src/quick3d/quick3dextras/items/quick3dlevelofdetailloader_p.h"
#include <QtCore/qmetatype.h>
#include <QtCore/QList>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'quick3dlevelofdetailloader_p.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.12.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {
struct qt_meta_tag_ZN10Qt3DExtras6Extras5Quick26Quick3DLevelOfDetailLoaderE_t {};
} // unnamed namespace

template <> constexpr inline auto Qt3DExtras::Extras::Quick::Quick3DLevelOfDetailLoader::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DExtras6Extras5Quick26Quick3DLevelOfDetailLoaderE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DExtras::Extras::Quick::Quick3DLevelOfDetailLoader",
        "QML.Element",
        "LevelOfDetailLoader",
        "QML.AddedInVersion",
        "521",
        "sourcesChanged",
        "",
        "cameraChanged",
        "currentIndexChanged",
        "thresholdTypeChanged",
        "thresholdsChanged",
        "volumeOverrideChanged",
        "entityChanged",
        "sourceChanged",
        "createBoundingSphere",
        "Qt3DRender::QLevelOfDetailBoundingSphere",
        "QVector3D",
        "center",
        "radius",
        "sources",
        "QVariantList",
        "camera",
        "Qt3DRender::QCamera*",
        "currentIndex",
        "thresholdType",
        "Qt3DRender::QLevelOfDetail::ThresholdType",
        "thresholds",
        "QList<qreal>",
        "volumeOverride",
        "entity",
        "source",
        "QUrl"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'sourcesChanged'
        QtMocHelpers::SignalData<void()>(5, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'cameraChanged'
        QtMocHelpers::SignalData<void()>(7, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'currentIndexChanged'
        QtMocHelpers::SignalData<void()>(8, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'thresholdTypeChanged'
        QtMocHelpers::SignalData<void()>(9, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'thresholdsChanged'
        QtMocHelpers::SignalData<void()>(10, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'volumeOverrideChanged'
        QtMocHelpers::SignalData<void()>(11, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'entityChanged'
        QtMocHelpers::SignalData<void()>(12, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'sourceChanged'
        QtMocHelpers::SignalData<void()>(13, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'createBoundingSphere'
        QtMocHelpers::MethodData<Qt3DRender::QLevelOfDetailBoundingSphere(const QVector3D &, float)>(14, 6, QMC::AccessPublic, 0x80000000 | 15, {{
            { 0x80000000 | 16, 17 }, { QMetaType::Float, 18 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'sources'
        QtMocHelpers::PropertyData<QVariantList>(19, 0x80000000 | 20, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'camera'
        QtMocHelpers::PropertyData<Qt3DRender::QCamera*>(21, 0x80000000 | 22, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'currentIndex'
        QtMocHelpers::PropertyData<int>(23, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'thresholdType'
        QtMocHelpers::PropertyData<Qt3DRender::QLevelOfDetail::ThresholdType>(24, 0x80000000 | 25, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 3),
        // property 'thresholds'
        QtMocHelpers::PropertyData<QList<qreal>>(26, 0x80000000 | 27, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 4),
        // property 'volumeOverride'
        QtMocHelpers::PropertyData<Qt3DRender::QLevelOfDetailBoundingSphere>(28, 0x80000000 | 15, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 5),
        // property 'entity'
        QtMocHelpers::PropertyData<QObject*>(29, QMetaType::QObjectStar, QMC::DefaultPropertyFlags, 6),
        // property 'source'
        QtMocHelpers::PropertyData<QUrl>(30, 0x80000000 | 31, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 7),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<Quick3DLevelOfDetailLoader, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT static const QMetaObject::SuperData qt_meta_extradata_ZN10Qt3DExtras6Extras5Quick26Quick3DLevelOfDetailLoaderE[] = {
    QMetaObject::SuperData::link<Qt3DRender::QLevelOfDetail::staticMetaObject>(),
    nullptr
};

Q_CONSTINIT const QMetaObject Qt3DExtras::Extras::Quick::Quick3DLevelOfDetailLoader::staticMetaObject = { {
    QMetaObject::SuperData::link<Qt3DCore::QEntity::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DExtras6Extras5Quick26Quick3DLevelOfDetailLoaderE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DExtras6Extras5Quick26Quick3DLevelOfDetailLoaderE_t>.data,
    qt_static_metacall,
    qt_meta_extradata_ZN10Qt3DExtras6Extras5Quick26Quick3DLevelOfDetailLoaderE,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DExtras6Extras5Quick26Quick3DLevelOfDetailLoaderE_t>.metaTypes,
    nullptr
} };

void Qt3DExtras::Extras::Quick::Quick3DLevelOfDetailLoader::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Quick3DLevelOfDetailLoader *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->sourcesChanged(); break;
        case 1: _t->cameraChanged(); break;
        case 2: _t->currentIndexChanged(); break;
        case 3: _t->thresholdTypeChanged(); break;
        case 4: _t->thresholdsChanged(); break;
        case 5: _t->volumeOverrideChanged(); break;
        case 6: _t->entityChanged(); break;
        case 7: _t->sourceChanged(); break;
        case 8: { Qt3DRender::QLevelOfDetailBoundingSphere _r = _t->createBoundingSphere((*reinterpret_cast<std::add_pointer_t<QVector3D>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<float>>(_a[2])));
            if (_a[0]) *reinterpret_cast<Qt3DRender::QLevelOfDetailBoundingSphere*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Quick3DLevelOfDetailLoader::*)()>(_a, &Quick3DLevelOfDetailLoader::sourcesChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Quick3DLevelOfDetailLoader::*)()>(_a, &Quick3DLevelOfDetailLoader::cameraChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Quick3DLevelOfDetailLoader::*)()>(_a, &Quick3DLevelOfDetailLoader::currentIndexChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Quick3DLevelOfDetailLoader::*)()>(_a, &Quick3DLevelOfDetailLoader::thresholdTypeChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Quick3DLevelOfDetailLoader::*)()>(_a, &Quick3DLevelOfDetailLoader::thresholdsChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (Quick3DLevelOfDetailLoader::*)()>(_a, &Quick3DLevelOfDetailLoader::volumeOverrideChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (Quick3DLevelOfDetailLoader::*)()>(_a, &Quick3DLevelOfDetailLoader::entityChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (Quick3DLevelOfDetailLoader::*)()>(_a, &Quick3DLevelOfDetailLoader::sourceChanged, 7))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 4:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<qreal> >(); break;
        case 1:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Qt3DRender::QCamera* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QVariantList*>(_v) = _t->sources(); break;
        case 1: *reinterpret_cast<Qt3DRender::QCamera**>(_v) = _t->camera(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->currentIndex(); break;
        case 3: *reinterpret_cast<Qt3DRender::QLevelOfDetail::ThresholdType*>(_v) = _t->thresholdType(); break;
        case 4: *reinterpret_cast<QList<qreal>*>(_v) = _t->thresholds(); break;
        case 5: *reinterpret_cast<Qt3DRender::QLevelOfDetailBoundingSphere*>(_v) = _t->volumeOverride(); break;
        case 6: *reinterpret_cast<QObject**>(_v) = _t->entity(); break;
        case 7: *reinterpret_cast<QUrl*>(_v) = _t->source(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setSources(*reinterpret_cast<QVariantList*>(_v)); break;
        case 1: _t->setCamera(*reinterpret_cast<Qt3DRender::QCamera**>(_v)); break;
        case 2: _t->setCurrentIndex(*reinterpret_cast<int*>(_v)); break;
        case 3: _t->setThresholdType(*reinterpret_cast<Qt3DRender::QLevelOfDetail::ThresholdType*>(_v)); break;
        case 4: _t->setThresholds(*reinterpret_cast<QList<qreal>*>(_v)); break;
        case 5: _t->setVolumeOverride(*reinterpret_cast<Qt3DRender::QLevelOfDetailBoundingSphere*>(_v)); break;
        default: break;
        }
    }
}

const QMetaObject *Qt3DExtras::Extras::Quick::Quick3DLevelOfDetailLoader::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *Qt3DExtras::Extras::Quick::Quick3DLevelOfDetailLoader::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DExtras6Extras5Quick26Quick3DLevelOfDetailLoaderE_t>.strings))
        return static_cast<void*>(this);
    return Qt3DCore::QEntity::qt_metacast(_clname);
}

int Qt3DExtras::Extras::Quick::Quick3DLevelOfDetailLoader::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Qt3DCore::QEntity::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 9)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 9;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    return _id;
}

// SIGNAL 0
void Qt3DExtras::Extras::Quick::Quick3DLevelOfDetailLoader::sourcesChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void Qt3DExtras::Extras::Quick::Quick3DLevelOfDetailLoader::cameraChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void Qt3DExtras::Extras::Quick::Quick3DLevelOfDetailLoader::currentIndexChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void Qt3DExtras::Extras::Quick::Quick3DLevelOfDetailLoader::thresholdTypeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void Qt3DExtras::Extras::Quick::Quick3DLevelOfDetailLoader::thresholdsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void Qt3DExtras::Extras::Quick::Quick3DLevelOfDetailLoader::volumeOverrideChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void Qt3DExtras::Extras::Quick::Quick3DLevelOfDetailLoader::entityChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void Qt3DExtras::Extras::Quick::Quick3DLevelOfDetailLoader::sourceChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}
QT_WARNING_POP
