10 #include "../openCVViewer/opencvviewer.h"
11 #if !defined(Q_MOC_OUTPUT_REVISION)
12 #error "The header file 'opencvviewer.h' doesn't include <QObject>."
13 #elif Q_MOC_OUTPUT_REVISION != 63
14 #error "This file was generated using the moc from 4.8.1. It"
15 #error "cannot be used with the include files from this version of Qt."
16 #error "(The moc has changed too much.)"
19 QT_BEGIN_MOC_NAMESPACE
20 static const uint qt_meta_data_OpenCVViewer[] = {
43 static const char qt_meta_stringdata_OpenCVViewer[] = {
44 "OpenCVViewer\0\0event\0mouseClicked(QMouseEvent*)\0"
45 "mouseMoved(QMouseEvent*)\0newImage\0"
49 void OpenCVViewer::qt_static_metacall(QObject *_o, QMetaObject::Call _c,
int _id,
void **_a)
51 if (_c == QMetaObject::InvokeMetaMethod) {
52 Q_ASSERT(staticMetaObject.cast(_o));
53 OpenCVViewer *_t =
static_cast<OpenCVViewer *
>(_o);
55 case 0: _t->mouseClicked((*
reinterpret_cast< QMouseEvent*(*)
>(_a[1])));
break;
56 case 1: _t->mouseMoved((*
reinterpret_cast< QMouseEvent*(*)
>(_a[1])));
break;
57 case 2: _t->setImage((*
reinterpret_cast< cv::Mat(*)
>(_a[1])));
break;
63 const QMetaObjectExtraData OpenCVViewer::staticMetaObjectExtraData = {
67 const QMetaObject OpenCVViewer::staticMetaObject = {
68 { &QGLWidget::staticMetaObject, qt_meta_stringdata_OpenCVViewer,
69 qt_meta_data_OpenCVViewer, &staticMetaObjectExtraData }
72 #ifdef Q_NO_DATA_RELOCATION
73 const QMetaObject &OpenCVViewer::getStaticMetaObject() {
return staticMetaObject; }
74 #endif //Q_NO_DATA_RELOCATION
76 const QMetaObject *OpenCVViewer::metaObject()
const
78 return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
81 void *OpenCVViewer::qt_metacast(
const char *_clname)
83 if (!_clname)
return 0;
84 if (!strcmp(_clname, qt_meta_stringdata_OpenCVViewer))
85 return static_cast<void*
>(
const_cast< OpenCVViewer*
>(
this));
86 return QGLWidget::qt_metacast(_clname);
89 int OpenCVViewer::qt_metacall(QMetaObject::Call _c,
int _id,
void **_a)
91 _id = QGLWidget::qt_metacall(_c, _id, _a);
94 if (_c == QMetaObject::InvokeMetaMethod) {
96 qt_static_metacall(
this, _c, _id, _a);
103 void OpenCVViewer::mouseClicked(QMouseEvent * _t1)
105 void *_a[] = { 0,
const_cast<void*
>(
reinterpret_cast<const void*
>(&_t1)) };
106 QMetaObject::activate(
this, &staticMetaObject, 0, _a);
110 void OpenCVViewer::mouseMoved(QMouseEvent * _t1)
112 void *_a[] = { 0,
const_cast<void*
>(
reinterpret_cast<const void*
>(&_t1)) };
113 QMetaObject::activate(
this, &staticMetaObject, 1, _a);