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

#include "../../../../src/qt3d-opensource-src-5.9.3/src/extras/defaults/qgoochmaterial.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qgoochmaterial.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.3. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_Qt3DExtras__QGoochMaterial_t {
    QByteArrayData data[23];
    char stringdata0[242];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Qt3DExtras__QGoochMaterial_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Qt3DExtras__QGoochMaterial_t qt_meta_stringdata_Qt3DExtras__QGoochMaterial = {
    {
QT_MOC_LITERAL(0, 0, 26), // "Qt3DExtras::QGoochMaterial"
QT_MOC_LITERAL(1, 27, 14), // "diffuseChanged"
QT_MOC_LITERAL(2, 42, 0), // ""
QT_MOC_LITERAL(3, 43, 7), // "diffuse"
QT_MOC_LITERAL(4, 51, 15), // "specularChanged"
QT_MOC_LITERAL(5, 67, 8), // "specular"
QT_MOC_LITERAL(6, 76, 11), // "coolChanged"
QT_MOC_LITERAL(7, 88, 4), // "cool"
QT_MOC_LITERAL(8, 93, 11), // "warmChanged"
QT_MOC_LITERAL(9, 105, 4), // "warm"
QT_MOC_LITERAL(10, 110, 12), // "alphaChanged"
QT_MOC_LITERAL(11, 123, 5), // "alpha"
QT_MOC_LITERAL(12, 129, 11), // "betaChanged"
QT_MOC_LITERAL(13, 141, 4), // "beta"
QT_MOC_LITERAL(14, 146, 16), // "shininessChanged"
QT_MOC_LITERAL(15, 163, 9), // "shininess"
QT_MOC_LITERAL(16, 173, 10), // "setDiffuse"
QT_MOC_LITERAL(17, 184, 11), // "setSpecular"
QT_MOC_LITERAL(18, 196, 7), // "setCool"
QT_MOC_LITERAL(19, 204, 7), // "setWarm"
QT_MOC_LITERAL(20, 212, 8), // "setAlpha"
QT_MOC_LITERAL(21, 221, 7), // "setBeta"
QT_MOC_LITERAL(22, 229, 12) // "setShininess"

    },
    "Qt3DExtras::QGoochMaterial\0diffuseChanged\0"
    "\0diffuse\0specularChanged\0specular\0"
    "coolChanged\0cool\0warmChanged\0warm\0"
    "alphaChanged\0alpha\0betaChanged\0beta\0"
    "shininessChanged\0shininess\0setDiffuse\0"
    "setSpecular\0setCool\0setWarm\0setAlpha\0"
    "setBeta\0setShininess"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Qt3DExtras__QGoochMaterial[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      14,   14, // methods
       7,  126, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       7,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   84,    2, 0x06 /* Public */,
       4,    1,   87,    2, 0x06 /* Public */,
       6,    1,   90,    2, 0x06 /* Public */,
       8,    1,   93,    2, 0x06 /* Public */,
      10,    1,   96,    2, 0x06 /* Public */,
      12,    1,   99,    2, 0x06 /* Public */,
      14,    1,  102,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      16,    1,  105,    2, 0x0a /* Public */,
      17,    1,  108,    2, 0x0a /* Public */,
      18,    1,  111,    2, 0x0a /* Public */,
      19,    1,  114,    2, 0x0a /* Public */,
      20,    1,  117,    2, 0x0a /* Public */,
      21,    1,  120,    2, 0x0a /* Public */,
      22,    1,  123,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::QColor,    3,
    QMetaType::Void, QMetaType::QColor,    5,
    QMetaType::Void, QMetaType::QColor,    7,
    QMetaType::Void, QMetaType::QColor,    9,
    QMetaType::Void, QMetaType::Float,   11,
    QMetaType::Void, QMetaType::Float,   13,
    QMetaType::Void, QMetaType::Float,   15,

 // slots: parameters
    QMetaType::Void, QMetaType::QColor,    3,
    QMetaType::Void, QMetaType::QColor,    5,
    QMetaType::Void, QMetaType::QColor,    7,
    QMetaType::Void, QMetaType::QColor,    9,
    QMetaType::Void, QMetaType::Float,   11,
    QMetaType::Void, QMetaType::Float,   13,
    QMetaType::Void, QMetaType::Float,   15,

 // properties: name, type, flags
       3, QMetaType::QColor, 0x00495103,
       5, QMetaType::QColor, 0x00495103,
       7, QMetaType::QColor, 0x00495103,
       9, QMetaType::QColor, 0x00495103,
      11, QMetaType::Float, 0x00495103,
      13, QMetaType::Float, 0x00495103,
      15, QMetaType::Float, 0x00495103,

 // properties: notify_signal_id
       0,
       1,
       2,
       3,
       4,
       5,
       6,

       0        // eod
};

void Qt3DExtras::QGoochMaterial::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        QGoochMaterial *_t = static_cast<QGoochMaterial *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->diffuseChanged((*reinterpret_cast< const QColor(*)>(_a[1]))); break;
        case 1: _t->specularChanged((*reinterpret_cast< const QColor(*)>(_a[1]))); break;
        case 2: _t->coolChanged((*reinterpret_cast< const QColor(*)>(_a[1]))); break;
        case 3: _t->warmChanged((*reinterpret_cast< const QColor(*)>(_a[1]))); break;
        case 4: _t->alphaChanged((*reinterpret_cast< float(*)>(_a[1]))); break;
        case 5: _t->betaChanged((*reinterpret_cast< float(*)>(_a[1]))); break;
        case 6: _t->shininessChanged((*reinterpret_cast< float(*)>(_a[1]))); break;
        case 7: _t->setDiffuse((*reinterpret_cast< const QColor(*)>(_a[1]))); break;
        case 8: _t->setSpecular((*reinterpret_cast< const QColor(*)>(_a[1]))); break;
        case 9: _t->setCool((*reinterpret_cast< const QColor(*)>(_a[1]))); break;
        case 10: _t->setWarm((*reinterpret_cast< const QColor(*)>(_a[1]))); break;
        case 11: _t->setAlpha((*reinterpret_cast< float(*)>(_a[1]))); break;
        case 12: _t->setBeta((*reinterpret_cast< float(*)>(_a[1]))); break;
        case 13: _t->setShininess((*reinterpret_cast< float(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (QGoochMaterial::*_t)(const QColor & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGoochMaterial::diffuseChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (QGoochMaterial::*_t)(const QColor & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGoochMaterial::specularChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (QGoochMaterial::*_t)(const QColor & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGoochMaterial::coolChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (QGoochMaterial::*_t)(const QColor & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGoochMaterial::warmChanged)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (QGoochMaterial::*_t)(float );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGoochMaterial::alphaChanged)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (QGoochMaterial::*_t)(float );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGoochMaterial::betaChanged)) {
                *result = 5;
                return;
            }
        }
        {
            typedef void (QGoochMaterial::*_t)(float );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QGoochMaterial::shininessChanged)) {
                *result = 6;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        QGoochMaterial *_t = static_cast<QGoochMaterial *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QColor*>(_v) = _t->diffuse(); break;
        case 1: *reinterpret_cast< QColor*>(_v) = _t->specular(); break;
        case 2: *reinterpret_cast< QColor*>(_v) = _t->cool(); break;
        case 3: *reinterpret_cast< QColor*>(_v) = _t->warm(); break;
        case 4: *reinterpret_cast< float*>(_v) = _t->alpha(); break;
        case 5: *reinterpret_cast< float*>(_v) = _t->beta(); break;
        case 6: *reinterpret_cast< float*>(_v) = _t->shininess(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        QGoochMaterial *_t = static_cast<QGoochMaterial *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setDiffuse(*reinterpret_cast< QColor*>(_v)); break;
        case 1: _t->setSpecular(*reinterpret_cast< QColor*>(_v)); break;
        case 2: _t->setCool(*reinterpret_cast< QColor*>(_v)); break;
        case 3: _t->setWarm(*reinterpret_cast< QColor*>(_v)); break;
        case 4: _t->setAlpha(*reinterpret_cast< float*>(_v)); break;
        case 5: _t->setBeta(*reinterpret_cast< float*>(_v)); break;
        case 6: _t->setShininess(*reinterpret_cast< float*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject Qt3DExtras::QGoochMaterial::staticMetaObject = {
    { &Qt3DRender::QMaterial::staticMetaObject, qt_meta_stringdata_Qt3DExtras__QGoochMaterial.data,
      qt_meta_data_Qt3DExtras__QGoochMaterial,  qt_static_metacall, nullptr, nullptr}
};


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

void *Qt3DExtras::QGoochMaterial::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Qt3DExtras__QGoochMaterial.stringdata0))
        return static_cast<void*>(this);
    return Qt3DRender::QMaterial::qt_metacast(_clname);
}

int Qt3DExtras::QGoochMaterial::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 < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 14)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 14;
    }
#ifndef QT_NO_PROPERTIES
   else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 7;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void Qt3DExtras::QGoochMaterial::diffuseChanged(const QColor & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void Qt3DExtras::QGoochMaterial::specularChanged(const QColor & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void Qt3DExtras::QGoochMaterial::coolChanged(const QColor & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void Qt3DExtras::QGoochMaterial::warmChanged(const QColor & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void Qt3DExtras::QGoochMaterial::alphaChanged(float _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void Qt3DExtras::QGoochMaterial::betaChanged(float _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}

// SIGNAL 6
void Qt3DExtras::QGoochMaterial::shininessChanged(float _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 6, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
