/****************************************************************************
** Meta object code from reading C++ file 'qspotlight.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/lights/qspotlight.h"
#include <QtCore/qmetatype.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qspotlight.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_ZN10Qt3DRender10QSpotLightE_t {};
} // unnamed namespace

template <> constexpr inline auto Qt3DRender::QSpotLight::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DRender10QSpotLightE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DRender::QSpotLight",
        "constantAttenuationChanged",
        "",
        "constantAttenuation",
        "linearAttenuationChanged",
        "linearAttenuation",
        "quadraticAttenuationChanged",
        "quadraticAttenuation",
        "localDirectionChanged",
        "QVector3D",
        "localDirection",
        "cutOffAngleChanged",
        "cutOffAngle",
        "setConstantAttenuation",
        "value",
        "setLinearAttenuation",
        "setQuadraticAttenuation",
        "setLocalDirection",
        "setCutOffAngle"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'constantAttenuationChanged'
        QtMocHelpers::SignalData<void(float)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 3 },
        }}),
        // Signal 'linearAttenuationChanged'
        QtMocHelpers::SignalData<void(float)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 5 },
        }}),
        // Signal 'quadraticAttenuationChanged'
        QtMocHelpers::SignalData<void(float)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 7 },
        }}),
        // Signal 'localDirectionChanged'
        QtMocHelpers::SignalData<void(const QVector3D &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Signal 'cutOffAngleChanged'
        QtMocHelpers::SignalData<void(float)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 12 },
        }}),
        // Slot 'setConstantAttenuation'
        QtMocHelpers::SlotData<void(float)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 14 },
        }}),
        // Slot 'setLinearAttenuation'
        QtMocHelpers::SlotData<void(float)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 14 },
        }}),
        // Slot 'setQuadraticAttenuation'
        QtMocHelpers::SlotData<void(float)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 14 },
        }}),
        // Slot 'setLocalDirection'
        QtMocHelpers::SlotData<void(const QVector3D &)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Slot 'setCutOffAngle'
        QtMocHelpers::SlotData<void(float)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 12 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'constantAttenuation'
        QtMocHelpers::PropertyData<float>(3, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'linearAttenuation'
        QtMocHelpers::PropertyData<float>(5, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'quadraticAttenuation'
        QtMocHelpers::PropertyData<float>(7, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'localDirection'
        QtMocHelpers::PropertyData<QVector3D>(10, 0x80000000 | 9, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 3),
        // property 'cutOffAngle'
        QtMocHelpers::PropertyData<float>(12, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<QSpotLight, qt_meta_tag_ZN10Qt3DRender10QSpotLightE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DRender::QSpotLight::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractLight::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender10QSpotLightE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender10QSpotLightE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DRender10QSpotLightE_t>.metaTypes,
    nullptr
} };

void Qt3DRender::QSpotLight::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QSpotLight *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->constantAttenuationChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 1: _t->linearAttenuationChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 2: _t->quadraticAttenuationChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 3: _t->localDirectionChanged((*reinterpret_cast<std::add_pointer_t<QVector3D>>(_a[1]))); break;
        case 4: _t->cutOffAngleChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 5: _t->setConstantAttenuation((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 6: _t->setLinearAttenuation((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 7: _t->setQuadraticAttenuation((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 8: _t->setLocalDirection((*reinterpret_cast<std::add_pointer_t<QVector3D>>(_a[1]))); break;
        case 9: _t->setCutOffAngle((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QSpotLight::*)(float )>(_a, &QSpotLight::constantAttenuationChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QSpotLight::*)(float )>(_a, &QSpotLight::linearAttenuationChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QSpotLight::*)(float )>(_a, &QSpotLight::quadraticAttenuationChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (QSpotLight::*)(const QVector3D & )>(_a, &QSpotLight::localDirectionChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (QSpotLight::*)(float )>(_a, &QSpotLight::cutOffAngleChanged, 4))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<float*>(_v) = _t->constantAttenuation(); break;
        case 1: *reinterpret_cast<float*>(_v) = _t->linearAttenuation(); break;
        case 2: *reinterpret_cast<float*>(_v) = _t->quadraticAttenuation(); break;
        case 3: *reinterpret_cast<QVector3D*>(_v) = _t->localDirection(); break;
        case 4: *reinterpret_cast<float*>(_v) = _t->cutOffAngle(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setConstantAttenuation(*reinterpret_cast<float*>(_v)); break;
        case 1: _t->setLinearAttenuation(*reinterpret_cast<float*>(_v)); break;
        case 2: _t->setQuadraticAttenuation(*reinterpret_cast<float*>(_v)); break;
        case 3: _t->setLocalDirection(*reinterpret_cast<QVector3D*>(_v)); break;
        case 4: _t->setCutOffAngle(*reinterpret_cast<float*>(_v)); break;
        default: break;
        }
    }
}

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

void *Qt3DRender::QSpotLight::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender10QSpotLightE_t>.strings))
        return static_cast<void*>(this);
    return QAbstractLight::qt_metacast(_clname);
}

int Qt3DRender::QSpotLight::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAbstractLight::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 10)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 10;
    }
    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::QSpotLight::constantAttenuationChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DRender::QSpotLight::linearAttenuationChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Qt3DRender::QSpotLight::quadraticAttenuationChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Qt3DRender::QSpotLight::localDirectionChanged(const QVector3D & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Qt3DRender::QSpotLight::cutOffAngleChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
