/****************************************************************************
** Meta object code from reading C++ file 'qmetalroughmaterial.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/extras/defaults/qmetalroughmaterial.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 'qmetalroughmaterial.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_ZN10Qt3DExtras19QMetalRoughMaterialE_t {};
} // unnamed namespace

template <> constexpr inline auto Qt3DExtras::QMetalRoughMaterial::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DExtras19QMetalRoughMaterialE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DExtras::QMetalRoughMaterial",
        "baseColorChanged",
        "",
        "QVariant",
        "baseColor",
        "metalnessChanged",
        "metalness",
        "roughnessChanged",
        "roughness",
        "ambientOcclusionChanged",
        "ambientOcclusion",
        "normalChanged",
        "normal",
        "textureScaleChanged",
        "textureScale",
        "setBaseColor",
        "setMetalness",
        "setRoughness",
        "setAmbientOcclusion",
        "setNormal",
        "setTextureScale"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'baseColorChanged'
        QtMocHelpers::SignalData<void(const QVariant &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'metalnessChanged'
        QtMocHelpers::SignalData<void(const QVariant &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 6 },
        }}),
        // Signal 'roughnessChanged'
        QtMocHelpers::SignalData<void(const QVariant &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 8 },
        }}),
        // Signal 'ambientOcclusionChanged'
        QtMocHelpers::SignalData<void(const QVariant &)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 10 },
        }}),
        // Signal 'normalChanged'
        QtMocHelpers::SignalData<void(const QVariant &)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 12 },
        }}),
        // Signal 'textureScaleChanged'
        QtMocHelpers::SignalData<void(float)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 14 },
        }}),
        // Slot 'setBaseColor'
        QtMocHelpers::SlotData<void(const QVariant &)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'setMetalness'
        QtMocHelpers::SlotData<void(const QVariant &)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 6 },
        }}),
        // Slot 'setRoughness'
        QtMocHelpers::SlotData<void(const QVariant &)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 8 },
        }}),
        // Slot 'setAmbientOcclusion'
        QtMocHelpers::SlotData<void(const QVariant &)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 10 },
        }}),
        // Slot 'setNormal'
        QtMocHelpers::SlotData<void(const QVariant &)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 12 },
        }}),
        // Slot 'setTextureScale'
        QtMocHelpers::SlotData<void(float)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 14 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'baseColor'
        QtMocHelpers::PropertyData<QVariant>(4, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'metalness'
        QtMocHelpers::PropertyData<QVariant>(6, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'roughness'
        QtMocHelpers::PropertyData<QVariant>(8, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 2),
        // property 'ambientOcclusion'
        QtMocHelpers::PropertyData<QVariant>(10, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 3, 0xff0a),
        // property 'normal'
        QtMocHelpers::PropertyData<QVariant>(12, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 4, 0xff0a),
        // property 'textureScale'
        QtMocHelpers::PropertyData<float>(14, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 5, 0xff0a),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<QMetalRoughMaterial, qt_meta_tag_ZN10Qt3DExtras19QMetalRoughMaterialE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DExtras::QMetalRoughMaterial::staticMetaObject = { {
    QMetaObject::SuperData::link<Qt3DRender::QMaterial::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DExtras19QMetalRoughMaterialE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DExtras19QMetalRoughMaterialE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DExtras19QMetalRoughMaterialE_t>.metaTypes,
    nullptr
} };

void Qt3DExtras::QMetalRoughMaterial::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QMetalRoughMaterial *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->baseColorChanged((*reinterpret_cast<std::add_pointer_t<QVariant>>(_a[1]))); break;
        case 1: _t->metalnessChanged((*reinterpret_cast<std::add_pointer_t<QVariant>>(_a[1]))); break;
        case 2: _t->roughnessChanged((*reinterpret_cast<std::add_pointer_t<QVariant>>(_a[1]))); break;
        case 3: _t->ambientOcclusionChanged((*reinterpret_cast<std::add_pointer_t<QVariant>>(_a[1]))); break;
        case 4: _t->normalChanged((*reinterpret_cast<std::add_pointer_t<QVariant>>(_a[1]))); break;
        case 5: _t->textureScaleChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 6: _t->setBaseColor((*reinterpret_cast<std::add_pointer_t<QVariant>>(_a[1]))); break;
        case 7: _t->setMetalness((*reinterpret_cast<std::add_pointer_t<QVariant>>(_a[1]))); break;
        case 8: _t->setRoughness((*reinterpret_cast<std::add_pointer_t<QVariant>>(_a[1]))); break;
        case 9: _t->setAmbientOcclusion((*reinterpret_cast<std::add_pointer_t<QVariant>>(_a[1]))); break;
        case 10: _t->setNormal((*reinterpret_cast<std::add_pointer_t<QVariant>>(_a[1]))); break;
        case 11: _t->setTextureScale((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QMetalRoughMaterial::*)(const QVariant & )>(_a, &QMetalRoughMaterial::baseColorChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QMetalRoughMaterial::*)(const QVariant & )>(_a, &QMetalRoughMaterial::metalnessChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QMetalRoughMaterial::*)(const QVariant & )>(_a, &QMetalRoughMaterial::roughnessChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (QMetalRoughMaterial::*)(const QVariant & )>(_a, &QMetalRoughMaterial::ambientOcclusionChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (QMetalRoughMaterial::*)(const QVariant & )>(_a, &QMetalRoughMaterial::normalChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (QMetalRoughMaterial::*)(float )>(_a, &QMetalRoughMaterial::textureScaleChanged, 5))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QVariant*>(_v) = _t->baseColor(); break;
        case 1: *reinterpret_cast<QVariant*>(_v) = _t->metalness(); break;
        case 2: *reinterpret_cast<QVariant*>(_v) = _t->roughness(); break;
        case 3: *reinterpret_cast<QVariant*>(_v) = _t->ambientOcclusion(); break;
        case 4: *reinterpret_cast<QVariant*>(_v) = _t->normal(); break;
        case 5: *reinterpret_cast<float*>(_v) = _t->textureScale(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setBaseColor(*reinterpret_cast<QVariant*>(_v)); break;
        case 1: _t->setMetalness(*reinterpret_cast<QVariant*>(_v)); break;
        case 2: _t->setRoughness(*reinterpret_cast<QVariant*>(_v)); break;
        case 3: _t->setAmbientOcclusion(*reinterpret_cast<QVariant*>(_v)); break;
        case 4: _t->setNormal(*reinterpret_cast<QVariant*>(_v)); break;
        case 5: _t->setTextureScale(*reinterpret_cast<float*>(_v)); break;
        default: break;
        }
    }
}

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

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

int Qt3DExtras::QMetalRoughMaterial::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 < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 12;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    }
    return _id;
}

// SIGNAL 0
void Qt3DExtras::QMetalRoughMaterial::baseColorChanged(const QVariant & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DExtras::QMetalRoughMaterial::metalnessChanged(const QVariant & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Qt3DExtras::QMetalRoughMaterial::roughnessChanged(const QVariant & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Qt3DExtras::QMetalRoughMaterial::ambientOcclusionChanged(const QVariant & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Qt3DExtras::QMetalRoughMaterial::normalChanged(const QVariant & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void Qt3DExtras::QMetalRoughMaterial::textureScaleChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}
QT_WARNING_POP
