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

#include "../../../../../qt3d/src/extras/defaults/qphongalphamaterial.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 'qphongalphamaterial.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.2. 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_ZN10Qt3DExtras19QPhongAlphaMaterialE_t {};
} // unnamed namespace

template <> constexpr inline auto Qt3DExtras::QPhongAlphaMaterial::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DExtras19QPhongAlphaMaterialE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DExtras::QPhongAlphaMaterial",
        "ambientChanged",
        "",
        "QColor",
        "ambient",
        "diffuseChanged",
        "diffuse",
        "specularChanged",
        "specular",
        "shininessChanged",
        "shininess",
        "alphaChanged",
        "alpha",
        "sourceRgbArgChanged",
        "Qt3DRender::QBlendEquationArguments::Blending",
        "sourceRgbArg",
        "destinationRgbArgChanged",
        "destinationRgbArg",
        "sourceAlphaArgChanged",
        "sourceAlphaArg",
        "destinationAlphaArgChanged",
        "destinationAlphaArg",
        "blendFunctionArgChanged",
        "Qt3DRender::QBlendEquation::BlendFunction",
        "blendFunctionArg",
        "setAmbient",
        "setDiffuse",
        "setSpecular",
        "setShininess",
        "setAlpha",
        "setSourceRgbArg",
        "setDestinationRgbArg",
        "setSourceAlphaArg",
        "setDestinationAlphaArg",
        "setBlendFunctionArg"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'ambientChanged'
        QtMocHelpers::SignalData<void(const QColor &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'diffuseChanged'
        QtMocHelpers::SignalData<void(const QColor &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 6 },
        }}),
        // Signal 'specularChanged'
        QtMocHelpers::SignalData<void(const QColor &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 8 },
        }}),
        // Signal 'shininessChanged'
        QtMocHelpers::SignalData<void(float)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 10 },
        }}),
        // Signal 'alphaChanged'
        QtMocHelpers::SignalData<void(float)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 12 },
        }}),
        // Signal 'sourceRgbArgChanged'
        QtMocHelpers::SignalData<void(Qt3DRender::QBlendEquationArguments::Blending)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 15 },
        }}),
        // Signal 'destinationRgbArgChanged'
        QtMocHelpers::SignalData<void(Qt3DRender::QBlendEquationArguments::Blending)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 17 },
        }}),
        // Signal 'sourceAlphaArgChanged'
        QtMocHelpers::SignalData<void(Qt3DRender::QBlendEquationArguments::Blending)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 19 },
        }}),
        // Signal 'destinationAlphaArgChanged'
        QtMocHelpers::SignalData<void(Qt3DRender::QBlendEquationArguments::Blending)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 21 },
        }}),
        // Signal 'blendFunctionArgChanged'
        QtMocHelpers::SignalData<void(Qt3DRender::QBlendEquation::BlendFunction)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 23, 24 },
        }}),
        // Slot 'setAmbient'
        QtMocHelpers::SlotData<void(const QColor &)>(25, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'setDiffuse'
        QtMocHelpers::SlotData<void(const QColor &)>(26, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 6 },
        }}),
        // Slot 'setSpecular'
        QtMocHelpers::SlotData<void(const QColor &)>(27, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 8 },
        }}),
        // Slot 'setShininess'
        QtMocHelpers::SlotData<void(float)>(28, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 10 },
        }}),
        // Slot 'setAlpha'
        QtMocHelpers::SlotData<void(float)>(29, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 12 },
        }}),
        // Slot 'setSourceRgbArg'
        QtMocHelpers::SlotData<void(Qt3DRender::QBlendEquationArguments::Blending)>(30, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 15 },
        }}),
        // Slot 'setDestinationRgbArg'
        QtMocHelpers::SlotData<void(Qt3DRender::QBlendEquationArguments::Blending)>(31, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 17 },
        }}),
        // Slot 'setSourceAlphaArg'
        QtMocHelpers::SlotData<void(Qt3DRender::QBlendEquationArguments::Blending)>(32, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 19 },
        }}),
        // Slot 'setDestinationAlphaArg'
        QtMocHelpers::SlotData<void(Qt3DRender::QBlendEquationArguments::Blending)>(33, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 21 },
        }}),
        // Slot 'setBlendFunctionArg'
        QtMocHelpers::SlotData<void(Qt3DRender::QBlendEquation::BlendFunction)>(34, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 23, 24 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'ambient'
        QtMocHelpers::PropertyData<QColor>(4, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'diffuse'
        QtMocHelpers::PropertyData<QColor>(6, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'specular'
        QtMocHelpers::PropertyData<QColor>(8, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 2),
        // property 'shininess'
        QtMocHelpers::PropertyData<float>(10, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
        // property 'alpha'
        QtMocHelpers::PropertyData<float>(12, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
        // property 'sourceRgbArg'
        QtMocHelpers::PropertyData<Qt3DRender::QBlendEquationArguments::Blending>(15, 0x80000000 | 14, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 5),
        // property 'destinationRgbArg'
        QtMocHelpers::PropertyData<Qt3DRender::QBlendEquationArguments::Blending>(17, 0x80000000 | 14, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 6),
        // property 'sourceAlphaArg'
        QtMocHelpers::PropertyData<Qt3DRender::QBlendEquationArguments::Blending>(19, 0x80000000 | 14, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 7),
        // property 'destinationAlphaArg'
        QtMocHelpers::PropertyData<Qt3DRender::QBlendEquationArguments::Blending>(21, 0x80000000 | 14, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 8),
        // property 'blendFunctionArg'
        QtMocHelpers::PropertyData<Qt3DRender::QBlendEquation::BlendFunction>(24, 0x80000000 | 23, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 9),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<QPhongAlphaMaterial, qt_meta_tag_ZN10Qt3DExtras19QPhongAlphaMaterialE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT static const QMetaObject::SuperData qt_meta_extradata_ZN10Qt3DExtras19QPhongAlphaMaterialE[] = {
    QMetaObject::SuperData::link<Qt3DRender::QBlendEquationArguments::staticMetaObject>(),
    QMetaObject::SuperData::link<Qt3DRender::QBlendEquation::staticMetaObject>(),
    nullptr
};

Q_CONSTINIT const QMetaObject Qt3DExtras::QPhongAlphaMaterial::staticMetaObject = { {
    QMetaObject::SuperData::link<Qt3DRender::QMaterial::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DExtras19QPhongAlphaMaterialE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DExtras19QPhongAlphaMaterialE_t>.data,
    qt_static_metacall,
    qt_meta_extradata_ZN10Qt3DExtras19QPhongAlphaMaterialE,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DExtras19QPhongAlphaMaterialE_t>.metaTypes,
    nullptr
} };

void Qt3DExtras::QPhongAlphaMaterial::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QPhongAlphaMaterial *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->ambientChanged((*reinterpret_cast<std::add_pointer_t<QColor>>(_a[1]))); break;
        case 1: _t->diffuseChanged((*reinterpret_cast<std::add_pointer_t<QColor>>(_a[1]))); break;
        case 2: _t->specularChanged((*reinterpret_cast<std::add_pointer_t<QColor>>(_a[1]))); break;
        case 3: _t->shininessChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 4: _t->alphaChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 5: _t->sourceRgbArgChanged((*reinterpret_cast<std::add_pointer_t<Qt3DRender::QBlendEquationArguments::Blending>>(_a[1]))); break;
        case 6: _t->destinationRgbArgChanged((*reinterpret_cast<std::add_pointer_t<Qt3DRender::QBlendEquationArguments::Blending>>(_a[1]))); break;
        case 7: _t->sourceAlphaArgChanged((*reinterpret_cast<std::add_pointer_t<Qt3DRender::QBlendEquationArguments::Blending>>(_a[1]))); break;
        case 8: _t->destinationAlphaArgChanged((*reinterpret_cast<std::add_pointer_t<Qt3DRender::QBlendEquationArguments::Blending>>(_a[1]))); break;
        case 9: _t->blendFunctionArgChanged((*reinterpret_cast<std::add_pointer_t<Qt3DRender::QBlendEquation::BlendFunction>>(_a[1]))); break;
        case 10: _t->setAmbient((*reinterpret_cast<std::add_pointer_t<QColor>>(_a[1]))); break;
        case 11: _t->setDiffuse((*reinterpret_cast<std::add_pointer_t<QColor>>(_a[1]))); break;
        case 12: _t->setSpecular((*reinterpret_cast<std::add_pointer_t<QColor>>(_a[1]))); break;
        case 13: _t->setShininess((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 14: _t->setAlpha((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 15: _t->setSourceRgbArg((*reinterpret_cast<std::add_pointer_t<Qt3DRender::QBlendEquationArguments::Blending>>(_a[1]))); break;
        case 16: _t->setDestinationRgbArg((*reinterpret_cast<std::add_pointer_t<Qt3DRender::QBlendEquationArguments::Blending>>(_a[1]))); break;
        case 17: _t->setSourceAlphaArg((*reinterpret_cast<std::add_pointer_t<Qt3DRender::QBlendEquationArguments::Blending>>(_a[1]))); break;
        case 18: _t->setDestinationAlphaArg((*reinterpret_cast<std::add_pointer_t<Qt3DRender::QBlendEquationArguments::Blending>>(_a[1]))); break;
        case 19: _t->setBlendFunctionArg((*reinterpret_cast<std::add_pointer_t<Qt3DRender::QBlendEquation::BlendFunction>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QPhongAlphaMaterial::*)(const QColor & )>(_a, &QPhongAlphaMaterial::ambientChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QPhongAlphaMaterial::*)(const QColor & )>(_a, &QPhongAlphaMaterial::diffuseChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QPhongAlphaMaterial::*)(const QColor & )>(_a, &QPhongAlphaMaterial::specularChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (QPhongAlphaMaterial::*)(float )>(_a, &QPhongAlphaMaterial::shininessChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (QPhongAlphaMaterial::*)(float )>(_a, &QPhongAlphaMaterial::alphaChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (QPhongAlphaMaterial::*)(Qt3DRender::QBlendEquationArguments::Blending )>(_a, &QPhongAlphaMaterial::sourceRgbArgChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (QPhongAlphaMaterial::*)(Qt3DRender::QBlendEquationArguments::Blending )>(_a, &QPhongAlphaMaterial::destinationRgbArgChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (QPhongAlphaMaterial::*)(Qt3DRender::QBlendEquationArguments::Blending )>(_a, &QPhongAlphaMaterial::sourceAlphaArgChanged, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (QPhongAlphaMaterial::*)(Qt3DRender::QBlendEquationArguments::Blending )>(_a, &QPhongAlphaMaterial::destinationAlphaArgChanged, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (QPhongAlphaMaterial::*)(Qt3DRender::QBlendEquation::BlendFunction )>(_a, &QPhongAlphaMaterial::blendFunctionArgChanged, 9))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QColor*>(_v) = _t->ambient(); break;
        case 1: *reinterpret_cast<QColor*>(_v) = _t->diffuse(); break;
        case 2: *reinterpret_cast<QColor*>(_v) = _t->specular(); break;
        case 3: *reinterpret_cast<float*>(_v) = _t->shininess(); break;
        case 4: *reinterpret_cast<float*>(_v) = _t->alpha(); break;
        case 5: *reinterpret_cast<Qt3DRender::QBlendEquationArguments::Blending*>(_v) = _t->sourceRgbArg(); break;
        case 6: *reinterpret_cast<Qt3DRender::QBlendEquationArguments::Blending*>(_v) = _t->destinationRgbArg(); break;
        case 7: *reinterpret_cast<Qt3DRender::QBlendEquationArguments::Blending*>(_v) = _t->sourceAlphaArg(); break;
        case 8: *reinterpret_cast<Qt3DRender::QBlendEquationArguments::Blending*>(_v) = _t->destinationAlphaArg(); break;
        case 9: *reinterpret_cast<Qt3DRender::QBlendEquation::BlendFunction*>(_v) = _t->blendFunctionArg(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setAmbient(*reinterpret_cast<QColor*>(_v)); break;
        case 1: _t->setDiffuse(*reinterpret_cast<QColor*>(_v)); break;
        case 2: _t->setSpecular(*reinterpret_cast<QColor*>(_v)); break;
        case 3: _t->setShininess(*reinterpret_cast<float*>(_v)); break;
        case 4: _t->setAlpha(*reinterpret_cast<float*>(_v)); break;
        case 5: _t->setSourceRgbArg(*reinterpret_cast<Qt3DRender::QBlendEquationArguments::Blending*>(_v)); break;
        case 6: _t->setDestinationRgbArg(*reinterpret_cast<Qt3DRender::QBlendEquationArguments::Blending*>(_v)); break;
        case 7: _t->setSourceAlphaArg(*reinterpret_cast<Qt3DRender::QBlendEquationArguments::Blending*>(_v)); break;
        case 8: _t->setDestinationAlphaArg(*reinterpret_cast<Qt3DRender::QBlendEquationArguments::Blending*>(_v)); break;
        case 9: _t->setBlendFunctionArg(*reinterpret_cast<Qt3DRender::QBlendEquation::BlendFunction*>(_v)); break;
        default: break;
        }
    }
}

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

void *Qt3DExtras::QPhongAlphaMaterial::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DExtras19QPhongAlphaMaterialE_t>.strings))
        return static_cast<void*>(this);
    return Qt3DRender::QMaterial::qt_metacast(_clname);
}

int Qt3DExtras::QPhongAlphaMaterial::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Qt3DRender::QMaterial::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 20)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 20;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    return _id;
}

// SIGNAL 0
void Qt3DExtras::QPhongAlphaMaterial::ambientChanged(const QColor & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DExtras::QPhongAlphaMaterial::diffuseChanged(const QColor & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Qt3DExtras::QPhongAlphaMaterial::specularChanged(const QColor & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Qt3DExtras::QPhongAlphaMaterial::shininessChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Qt3DExtras::QPhongAlphaMaterial::alphaChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void Qt3DExtras::QPhongAlphaMaterial::sourceRgbArgChanged(Qt3DRender::QBlendEquationArguments::Blending _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void Qt3DExtras::QPhongAlphaMaterial::destinationRgbArgChanged(Qt3DRender::QBlendEquationArguments::Blending _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}

// SIGNAL 7
void Qt3DExtras::QPhongAlphaMaterial::sourceAlphaArgChanged(Qt3DRender::QBlendEquationArguments::Blending _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}

// SIGNAL 8
void Qt3DExtras::QPhongAlphaMaterial::destinationAlphaArgChanged(Qt3DRender::QBlendEquationArguments::Blending _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}

// SIGNAL 9
void Qt3DExtras::QPhongAlphaMaterial::blendFunctionArgChanged(Qt3DRender::QBlendEquation::BlendFunction _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 9, nullptr, _t1);
}
QT_WARNING_POP
