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

#include <memory>
#include "../../../../../kde-qtquick3d/src/imports/helpers/pointerplane.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'pointerplane.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.19. 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_PointerPlane_t {
    QByteArrayData data[12];
    char stringdata0[152];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_PointerPlane_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_PointerPlane_t qt_meta_stringdata_PointerPlane = {
    {
QT_MOC_LITERAL(0, 0, 12), // "PointerPlane"
QT_MOC_LITERAL(1, 13, 15), // "getIntersectPos"
QT_MOC_LITERAL(2, 29, 0), // ""
QT_MOC_LITERAL(3, 30, 7), // "rayPos0"
QT_MOC_LITERAL(4, 38, 7), // "rayPos1"
QT_MOC_LITERAL(5, 46, 8), // "planePos"
QT_MOC_LITERAL(6, 55, 11), // "planeNormal"
QT_MOC_LITERAL(7, 67, 27), // "getIntersectPosFromSceneRay"
QT_MOC_LITERAL(8, 95, 23), // "getIntersectPosFromView"
QT_MOC_LITERAL(9, 119, 17), // "QQuick3DViewport*"
QT_MOC_LITERAL(10, 137, 4), // "view"
QT_MOC_LITERAL(11, 142, 9) // "posInView"

    },
    "PointerPlane\0getIntersectPos\0\0rayPos0\0"
    "rayPos1\0planePos\0planeNormal\0"
    "getIntersectPosFromSceneRay\0"
    "getIntersectPosFromView\0QQuick3DViewport*\0"
    "view\0posInView"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_PointerPlane[] = {

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

 // methods: name, argc, parameters, tag, flags
       1,    4,   29,    2, 0x02 /* Public */,
       7,    2,   38,    2, 0x02 /* Public */,
       8,    2,   43,    2, 0x02 /* Public */,

 // methods: parameters
    QMetaType::QVector3D, QMetaType::QVector3D, QMetaType::QVector3D, QMetaType::QVector3D, QMetaType::QVector3D,    3,    4,    5,    6,
    QMetaType::QVector3D, QMetaType::QVector3D, QMetaType::QVector3D,    3,    4,
    QMetaType::QVector3D, 0x80000000 | 9, QMetaType::QPointF,   10,   11,

       0        // eod
};

void PointerPlane::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<PointerPlane *>(_o);
        (void)_t;
        switch (_id) {
        case 0: { QVector3D _r = _t->getIntersectPos((*reinterpret_cast< const QVector3D(*)>(_a[1])),(*reinterpret_cast< const QVector3D(*)>(_a[2])),(*reinterpret_cast< const QVector3D(*)>(_a[3])),(*reinterpret_cast< const QVector3D(*)>(_a[4])));
            if (_a[0]) *reinterpret_cast< QVector3D*>(_a[0]) = std::move(_r); }  break;
        case 1: { QVector3D _r = _t->getIntersectPosFromSceneRay((*reinterpret_cast< const QVector3D(*)>(_a[1])),(*reinterpret_cast< const QVector3D(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< QVector3D*>(_a[0]) = std::move(_r); }  break;
        case 2: { QVector3D _r = _t->getIntersectPosFromView((*reinterpret_cast< QQuick3DViewport*(*)>(_a[1])),(*reinterpret_cast< const QPointF(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< QVector3D*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuick3DViewport* >(); break;
            }
            break;
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject PointerPlane::staticMetaObject = { {
    QMetaObject::SuperData::link<QQuick3DNode::staticMetaObject>(),
    qt_meta_stringdata_PointerPlane.data,
    qt_meta_data_PointerPlane,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *PointerPlane::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_PointerPlane.stringdata0))
        return static_cast<void*>(this);
    return QQuick3DNode::qt_metacast(_clname);
}

int PointerPlane::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QQuick3DNode::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    }
    return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
