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

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

template <> constexpr inline auto Qt3DExtras::QPlaneGeometry::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DExtras14QPlaneGeometryE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DExtras::QPlaneGeometry",
        "resolutionChanged",
        "",
        "QSize",
        "resolution",
        "widthChanged",
        "width",
        "heightChanged",
        "height",
        "mirroredChanged",
        "mirrored",
        "setResolution",
        "setWidth",
        "setHeight",
        "setMirrored",
        "positionAttribute",
        "Qt3DCore::QAttribute*",
        "normalAttribute",
        "texCoordAttribute",
        "tangentAttribute",
        "indexAttribute"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'resolutionChanged'
        QtMocHelpers::SignalData<void(const QSize &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'widthChanged'
        QtMocHelpers::SignalData<void(float)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 6 },
        }}),
        // Signal 'heightChanged'
        QtMocHelpers::SignalData<void(float)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 8 },
        }}),
        // Signal 'mirroredChanged'
        QtMocHelpers::SignalData<void(bool)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 10 },
        }}),
        // Slot 'setResolution'
        QtMocHelpers::SlotData<void(const QSize &)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'setWidth'
        QtMocHelpers::SlotData<void(float)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 6 },
        }}),
        // Slot 'setHeight'
        QtMocHelpers::SlotData<void(float)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 8 },
        }}),
        // Slot 'setMirrored'
        QtMocHelpers::SlotData<void(bool)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 10 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'width'
        QtMocHelpers::PropertyData<float>(6, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'height'
        QtMocHelpers::PropertyData<float>(8, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'resolution'
        QtMocHelpers::PropertyData<QSize>(4, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'mirrored'
        QtMocHelpers::PropertyData<bool>(10, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3, 0xff09),
        // property 'positionAttribute'
        QtMocHelpers::PropertyData<Qt3DCore::QAttribute*>(15, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'normalAttribute'
        QtMocHelpers::PropertyData<Qt3DCore::QAttribute*>(17, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'texCoordAttribute'
        QtMocHelpers::PropertyData<Qt3DCore::QAttribute*>(18, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'tangentAttribute'
        QtMocHelpers::PropertyData<Qt3DCore::QAttribute*>(19, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'indexAttribute'
        QtMocHelpers::PropertyData<Qt3DCore::QAttribute*>(20, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<QPlaneGeometry, qt_meta_tag_ZN10Qt3DExtras14QPlaneGeometryE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DExtras::QPlaneGeometry::staticMetaObject = { {
    QMetaObject::SuperData::link<Qt3DCore::QGeometry::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DExtras14QPlaneGeometryE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DExtras14QPlaneGeometryE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DExtras14QPlaneGeometryE_t>.metaTypes,
    nullptr
} };

void Qt3DExtras::QPlaneGeometry::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QPlaneGeometry *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->resolutionChanged((*reinterpret_cast<std::add_pointer_t<QSize>>(_a[1]))); break;
        case 1: _t->widthChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 2: _t->heightChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 3: _t->mirroredChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 4: _t->setResolution((*reinterpret_cast<std::add_pointer_t<QSize>>(_a[1]))); break;
        case 5: _t->setWidth((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 6: _t->setHeight((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 7: _t->setMirrored((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QPlaneGeometry::*)(const QSize & )>(_a, &QPlaneGeometry::resolutionChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QPlaneGeometry::*)(float )>(_a, &QPlaneGeometry::widthChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QPlaneGeometry::*)(float )>(_a, &QPlaneGeometry::heightChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (QPlaneGeometry::*)(bool )>(_a, &QPlaneGeometry::mirroredChanged, 3))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 8:
        case 7:
        case 6:
        case 5:
        case 4:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Qt3DCore::QAttribute* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<float*>(_v) = _t->width(); break;
        case 1: *reinterpret_cast<float*>(_v) = _t->height(); break;
        case 2: *reinterpret_cast<QSize*>(_v) = _t->resolution(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->mirrored(); break;
        case 4: *reinterpret_cast<Qt3DCore::QAttribute**>(_v) = _t->positionAttribute(); break;
        case 5: *reinterpret_cast<Qt3DCore::QAttribute**>(_v) = _t->normalAttribute(); break;
        case 6: *reinterpret_cast<Qt3DCore::QAttribute**>(_v) = _t->texCoordAttribute(); break;
        case 7: *reinterpret_cast<Qt3DCore::QAttribute**>(_v) = _t->tangentAttribute(); break;
        case 8: *reinterpret_cast<Qt3DCore::QAttribute**>(_v) = _t->indexAttribute(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setWidth(*reinterpret_cast<float*>(_v)); break;
        case 1: _t->setHeight(*reinterpret_cast<float*>(_v)); break;
        case 2: _t->setResolution(*reinterpret_cast<QSize*>(_v)); break;
        case 3: _t->setMirrored(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

void *Qt3DExtras::QPlaneGeometry::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DExtras14QPlaneGeometryE_t>.strings))
        return static_cast<void*>(this);
    return Qt3DCore::QGeometry::qt_metacast(_clname);
}

int Qt3DExtras::QPlaneGeometry::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Qt3DCore::QGeometry::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 8;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
    return _id;
}

// SIGNAL 0
void Qt3DExtras::QPlaneGeometry::resolutionChanged(const QSize & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DExtras::QPlaneGeometry::widthChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Qt3DExtras::QPlaneGeometry::heightChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Qt3DExtras::QPlaneGeometry::mirroredChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}
QT_WARNING_POP
