/****************************************************************************
** Meta object code from reading C++ file 'qlevelofdetail.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/render/frontend/qlevelofdetail.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 'qlevelofdetail.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_ZN10Qt3DRender14QLevelOfDetailE_t {};
} // unnamed namespace

template <> constexpr inline auto Qt3DRender::QLevelOfDetail::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DRender14QLevelOfDetailE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DRender::QLevelOfDetail",
        "cameraChanged",
        "",
        "QCamera*",
        "camera",
        "currentIndexChanged",
        "currentIndex",
        "thresholdTypeChanged",
        "ThresholdType",
        "thresholdType",
        "thresholdsChanged",
        "QList<qreal>",
        "thresholds",
        "volumeOverrideChanged",
        "QLevelOfDetailBoundingSphere",
        "volumeOverride",
        "setCamera",
        "setCurrentIndex",
        "setThresholdType",
        "setThresholds",
        "setVolumeOverride",
        "createBoundingSphere",
        "Qt3DRender::QLevelOfDetailBoundingSphere",
        "QVector3D",
        "center",
        "radius",
        "Qt3DRender::QCamera*",
        "DistanceToCameraThreshold",
        "ProjectedScreenPixelSizeThreshold"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'cameraChanged'
        QtMocHelpers::SignalData<void(QCamera *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'currentIndexChanged'
        QtMocHelpers::SignalData<void(int)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 6 },
        }}),
        // Signal 'thresholdTypeChanged'
        QtMocHelpers::SignalData<void(enum ThresholdType)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Signal 'thresholdsChanged'
        QtMocHelpers::SignalData<void(const QList<qreal> &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Signal 'volumeOverrideChanged'
        QtMocHelpers::SignalData<void(const QLevelOfDetailBoundingSphere &)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 15 },
        }}),
        // Slot 'setCamera'
        QtMocHelpers::SlotData<void(QCamera *)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'setCurrentIndex'
        QtMocHelpers::SlotData<void(int)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 6 },
        }}),
        // Slot 'setThresholdType'
        QtMocHelpers::SlotData<void(enum ThresholdType)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Slot 'setThresholds'
        QtMocHelpers::SlotData<void(const QList<qreal> &)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Slot 'setVolumeOverride'
        QtMocHelpers::SlotData<void(const QLevelOfDetailBoundingSphere &)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 15 },
        }}),
        // Method 'createBoundingSphere'
        QtMocHelpers::MethodData<Qt3DRender::QLevelOfDetailBoundingSphere(const QVector3D &, float)>(21, 2, QMC::AccessPublic, 0x80000000 | 22, {{
            { 0x80000000 | 23, 24 }, { QMetaType::Float, 25 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'camera'
        QtMocHelpers::PropertyData<Qt3DRender::QCamera*>(4, 0x80000000 | 26, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'currentIndex'
        QtMocHelpers::PropertyData<int>(6, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'thresholdType'
        QtMocHelpers::PropertyData<enum ThresholdType>(9, 0x80000000 | 8, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 2),
        // property 'thresholds'
        QtMocHelpers::PropertyData<QList<qreal>>(12, 0x80000000 | 11, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 3),
        // property 'volumeOverride'
        QtMocHelpers::PropertyData<Qt3DRender::QLevelOfDetailBoundingSphere>(15, 0x80000000 | 22, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 4),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'ThresholdType'
        QtMocHelpers::EnumData<enum ThresholdType>(8, 8, QMC::EnumFlags{}).add({
            {   27, ThresholdType::DistanceToCameraThreshold },
            {   28, ThresholdType::ProjectedScreenPixelSizeThreshold },
        }),
    };
    return QtMocHelpers::metaObjectData<QLevelOfDetail, qt_meta_tag_ZN10Qt3DRender14QLevelOfDetailE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DRender::QLevelOfDetail::staticMetaObject = { {
    QMetaObject::SuperData::link<Qt3DCore::QComponent::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender14QLevelOfDetailE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender14QLevelOfDetailE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DRender14QLevelOfDetailE_t>.metaTypes,
    nullptr
} };

void Qt3DRender::QLevelOfDetail::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QLevelOfDetail *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->cameraChanged((*reinterpret_cast<std::add_pointer_t<QCamera*>>(_a[1]))); break;
        case 1: _t->currentIndexChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 2: _t->thresholdTypeChanged((*reinterpret_cast<std::add_pointer_t<enum ThresholdType>>(_a[1]))); break;
        case 3: _t->thresholdsChanged((*reinterpret_cast<std::add_pointer_t<QList<qreal>>>(_a[1]))); break;
        case 4: _t->volumeOverrideChanged((*reinterpret_cast<std::add_pointer_t<QLevelOfDetailBoundingSphere>>(_a[1]))); break;
        case 5: _t->setCamera((*reinterpret_cast<std::add_pointer_t<QCamera*>>(_a[1]))); break;
        case 6: _t->setCurrentIndex((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 7: _t->setThresholdType((*reinterpret_cast<std::add_pointer_t<enum ThresholdType>>(_a[1]))); break;
        case 8: _t->setThresholds((*reinterpret_cast<std::add_pointer_t<QList<qreal>>>(_a[1]))); break;
        case 9: _t->setVolumeOverride((*reinterpret_cast<std::add_pointer_t<QLevelOfDetailBoundingSphere>>(_a[1]))); break;
        case 10: { 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::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QCamera* >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<qreal> >(); break;
            }
            break;
        case 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QCamera* >(); break;
            }
            break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QList<qreal> >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QLevelOfDetail::*)(QCamera * )>(_a, &QLevelOfDetail::cameraChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QLevelOfDetail::*)(int )>(_a, &QLevelOfDetail::currentIndexChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QLevelOfDetail::*)(ThresholdType )>(_a, &QLevelOfDetail::thresholdTypeChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (QLevelOfDetail::*)(const QList<qreal> & )>(_a, &QLevelOfDetail::thresholdsChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (QLevelOfDetail::*)(const QLevelOfDetailBoundingSphere & )>(_a, &QLevelOfDetail::volumeOverrideChanged, 4))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 3:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<qreal> >(); break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Qt3DRender::QCamera* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<Qt3DRender::QCamera**>(_v) = _t->camera(); break;
        case 1: *reinterpret_cast<int*>(_v) = _t->currentIndex(); break;
        case 2: *reinterpret_cast<enum ThresholdType*>(_v) = _t->thresholdType(); break;
        case 3: *reinterpret_cast<QList<qreal>*>(_v) = _t->thresholds(); break;
        case 4: *reinterpret_cast<Qt3DRender::QLevelOfDetailBoundingSphere*>(_v) = _t->volumeOverride(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setCamera(*reinterpret_cast<Qt3DRender::QCamera**>(_v)); break;
        case 1: _t->setCurrentIndex(*reinterpret_cast<int*>(_v)); break;
        case 2: _t->setThresholdType(*reinterpret_cast<enum ThresholdType*>(_v)); break;
        case 3: _t->setThresholds(*reinterpret_cast<QList<qreal>*>(_v)); break;
        case 4: _t->setVolumeOverride(*reinterpret_cast<Qt3DRender::QLevelOfDetailBoundingSphere*>(_v)); break;
        default: break;
        }
    }
}

const QMetaObject *Qt3DRender::QLevelOfDetail::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *Qt3DRender::QLevelOfDetail::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender14QLevelOfDetailE_t>.strings))
        return static_cast<void*>(this);
    return Qt3DCore::QComponent::qt_metacast(_clname);
}

int Qt3DRender::QLevelOfDetail::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Qt3DCore::QComponent::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    }
    return _id;
}

// SIGNAL 0
void Qt3DRender::QLevelOfDetail::cameraChanged(QCamera * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DRender::QLevelOfDetail::currentIndexChanged(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Qt3DRender::QLevelOfDetail::thresholdTypeChanged(ThresholdType _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Qt3DRender::QLevelOfDetail::thresholdsChanged(const QList<qreal> & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Qt3DRender::QLevelOfDetail::volumeOverrideChanged(const QLevelOfDetailBoundingSphere & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
