模板匹配前,大模板和图像均放缩到50%
parent
adbd8729c0
commit
ff351c799a
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
// the must-have LPVCoreLib
|
||||
#import "libid:c34b3e9e-6dea-4aa9-b500-0266f90dc15f" no_namespace
|
||||
// the must-have LPVGeomLib
|
||||
#import "libid:8955aafb-4602-4d6a-a888-69d1437c4d2b" no_namespace
|
||||
// import LPVImgProcLib
|
||||
#import "libid:29c8366a-f227-4cc4-bdbb-b32397056cf5" no_namespace
|
||||
@ -1,216 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'ADModule.h'
|
||||
**
|
||||
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.4)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../../../../src/ADModule.h"
|
||||
#include <QtCore/qbytearray.h>
|
||||
#include <QtCore/qmetatype.h>
|
||||
#include <QtCore/QVector>
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'ADModule.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 67
|
||||
#error "This file was generated using the moc from 5.9.4. 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_ADModule_t {
|
||||
QByteArrayData data[18];
|
||||
char stringdata0[224];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
qptrdiff(offsetof(qt_meta_stringdata_ADModule_t, stringdata0) + ofs \
|
||||
- idx * sizeof(QByteArrayData)) \
|
||||
)
|
||||
static const qt_meta_stringdata_ADModule_t qt_meta_stringdata_ADModule = {
|
||||
{
|
||||
QT_MOC_LITERAL(0, 0, 8), // "ADModule"
|
||||
QT_MOC_LITERAL(1, 9, 13), // "sgReceiveData"
|
||||
QT_MOC_LITERAL(2, 23, 0), // ""
|
||||
QT_MOC_LITERAL(3, 24, 6), // "sideId"
|
||||
QT_MOC_LITERAL(4, 31, 15), // "QVector<double>"
|
||||
QT_MOC_LITERAL(5, 47, 14), // "hexVecDistance"
|
||||
QT_MOC_LITERAL(6, 62, 12), // "sgNewNumData"
|
||||
QT_MOC_LITERAL(7, 75, 25), // "QVector<QVector<double> >"
|
||||
QT_MOC_LITERAL(8, 101, 3), // "vec"
|
||||
QT_MOC_LITERAL(9, 105, 16), // "QVector<QString>"
|
||||
QT_MOC_LITERAL(10, 122, 6), // "strVec"
|
||||
QT_MOC_LITERAL(11, 129, 4), // "side"
|
||||
QT_MOC_LITERAL(12, 134, 18), // "onDataRequestStart"
|
||||
QT_MOC_LITERAL(13, 153, 17), // "onDataRequestStop"
|
||||
QT_MOC_LITERAL(14, 171, 15), // "onReadDatagrams"
|
||||
QT_MOC_LITERAL(15, 187, 12), // "onThreadInit"
|
||||
QT_MOC_LITERAL(16, 200, 13), // "onReceiveData"
|
||||
QT_MOC_LITERAL(17, 214, 9) // "stationId"
|
||||
|
||||
},
|
||||
"ADModule\0sgReceiveData\0\0sideId\0"
|
||||
"QVector<double>\0hexVecDistance\0"
|
||||
"sgNewNumData\0QVector<QVector<double> >\0"
|
||||
"vec\0QVector<QString>\0strVec\0side\0"
|
||||
"onDataRequestStart\0onDataRequestStop\0"
|
||||
"onReadDatagrams\0onThreadInit\0onReceiveData\0"
|
||||
"stationId"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
static const uint qt_meta_data_ADModule[] = {
|
||||
|
||||
// content:
|
||||
7, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
7, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
2, // signalCount
|
||||
|
||||
// signals: name, argc, parameters, tag, flags
|
||||
1, 2, 49, 2, 0x06 /* Public */,
|
||||
6, 3, 54, 2, 0x06 /* Public */,
|
||||
|
||||
// slots: name, argc, parameters, tag, flags
|
||||
12, 1, 61, 2, 0x0a /* Public */,
|
||||
13, 0, 64, 2, 0x0a /* Public */,
|
||||
14, 0, 65, 2, 0x08 /* Private */,
|
||||
15, 0, 66, 2, 0x08 /* Private */,
|
||||
16, 2, 67, 2, 0x08 /* Private */,
|
||||
|
||||
// signals: parameters
|
||||
QMetaType::Void, QMetaType::Int, 0x80000000 | 4, 3, 5,
|
||||
QMetaType::Void, 0x80000000 | 7, 0x80000000 | 9, QMetaType::Int, 8, 10, 11,
|
||||
|
||||
// slots: parameters
|
||||
QMetaType::Void, QMetaType::Int, 3,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void, QMetaType::Int, 0x80000000 | 4, 17, 5,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
void ADModule::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
ADModule *_t = static_cast<ADModule *>(_o);
|
||||
Q_UNUSED(_t)
|
||||
switch (_id) {
|
||||
case 0: _t->sgReceiveData((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QVector<double>(*)>(_a[2]))); break;
|
||||
case 1: _t->sgNewNumData((*reinterpret_cast< const QVector<QVector<double> >(*)>(_a[1])),(*reinterpret_cast< const QVector<QString>(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
|
||||
case 2: _t->onDataRequestStart((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 3: _t->onDataRequestStop(); break;
|
||||
case 4: _t->onReadDatagrams(); break;
|
||||
case 5: _t->onThreadInit(); break;
|
||||
case 6: _t->onReceiveData((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QVector<double>(*)>(_a[2]))); break;
|
||||
default: ;
|
||||
}
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
switch (_id) {
|
||||
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
|
||||
case 0:
|
||||
switch (*reinterpret_cast<int*>(_a[1])) {
|
||||
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
|
||||
case 1:
|
||||
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QVector<double> >(); break;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
switch (*reinterpret_cast<int*>(_a[1])) {
|
||||
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
|
||||
case 1:
|
||||
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QVector<QString> >(); break;
|
||||
case 0:
|
||||
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QVector<QVector<double> > >(); break;
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
switch (*reinterpret_cast<int*>(_a[1])) {
|
||||
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
|
||||
case 1:
|
||||
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QVector<double> >(); break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
} else if (_c == QMetaObject::IndexOfMethod) {
|
||||
int *result = reinterpret_cast<int *>(_a[0]);
|
||||
{
|
||||
typedef void (ADModule::*_t)(int , const QVector<double> & );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ADModule::sgReceiveData)) {
|
||||
*result = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
typedef void (ADModule::*_t)(const QVector<QVector<double>> & , const QVector<QString> & , int );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ADModule::sgNewNumData)) {
|
||||
*result = 1;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const QMetaObject ADModule::staticMetaObject = {
|
||||
{ &QObject::staticMetaObject, qt_meta_stringdata_ADModule.data,
|
||||
qt_meta_data_ADModule, qt_static_metacall, nullptr, nullptr}
|
||||
};
|
||||
|
||||
|
||||
const QMetaObject *ADModule::metaObject() const
|
||||
{
|
||||
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
|
||||
}
|
||||
|
||||
void *ADModule::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return nullptr;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_ADModule.stringdata0))
|
||||
return static_cast<void*>(this);
|
||||
if (!strcmp(_clname, "lp_singleton<ADModule>"))
|
||||
return static_cast< lp_singleton<ADModule>*>(this);
|
||||
return QObject::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int ADModule::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QObject::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
if (_id < 7)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 7;
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
if (_id < 7)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 7;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
|
||||
// SIGNAL 0
|
||||
void ADModule::sgReceiveData(int _t1, const QVector<double> & _t2)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 0, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 1
|
||||
void ADModule::sgNewNumData(const QVector<QVector<double>> & _t1, const QVector<QString> & _t2, int _t3)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 1, _a);
|
||||
}
|
||||
QT_WARNING_POP
|
||||
QT_END_MOC_NAMESPACE
|
||||
@ -1,130 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'Camera.h'
|
||||
**
|
||||
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.4)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../../../../src/Camera.h"
|
||||
#include <QtCore/qbytearray.h>
|
||||
#include <QtCore/qmetatype.h>
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'Camera.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 67
|
||||
#error "This file was generated using the moc from 5.9.4. 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_Camera_t {
|
||||
QByteArrayData data[4];
|
||||
char stringdata0[26];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
qptrdiff(offsetof(qt_meta_stringdata_Camera_t, stringdata0) + ofs \
|
||||
- idx * sizeof(QByteArrayData)) \
|
||||
)
|
||||
static const qt_meta_stringdata_Camera_t qt_meta_stringdata_Camera = {
|
||||
{
|
||||
QT_MOC_LITERAL(0, 0, 6), // "Camera"
|
||||
QT_MOC_LITERAL(1, 7, 11), // "updateImage"
|
||||
QT_MOC_LITERAL(2, 19, 0), // ""
|
||||
QT_MOC_LITERAL(3, 20, 5) // "image"
|
||||
|
||||
},
|
||||
"Camera\0updateImage\0\0image"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
static const uint qt_meta_data_Camera[] = {
|
||||
|
||||
// content:
|
||||
7, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
1, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
1, // signalCount
|
||||
|
||||
// signals: name, argc, parameters, tag, flags
|
||||
1, 1, 19, 2, 0x06 /* Public */,
|
||||
|
||||
// signals: parameters
|
||||
QMetaType::Void, QMetaType::QImage, 3,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
void Camera::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
Camera *_t = static_cast<Camera *>(_o);
|
||||
Q_UNUSED(_t)
|
||||
switch (_id) {
|
||||
case 0: _t->updateImage((*reinterpret_cast< QImage(*)>(_a[1]))); break;
|
||||
default: ;
|
||||
}
|
||||
} else if (_c == QMetaObject::IndexOfMethod) {
|
||||
int *result = reinterpret_cast<int *>(_a[0]);
|
||||
{
|
||||
typedef void (Camera::*_t)(QImage );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Camera::updateImage)) {
|
||||
*result = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const QMetaObject Camera::staticMetaObject = {
|
||||
{ &QObject::staticMetaObject, qt_meta_stringdata_Camera.data,
|
||||
qt_meta_data_Camera, qt_static_metacall, nullptr, nullptr}
|
||||
};
|
||||
|
||||
|
||||
const QMetaObject *Camera::metaObject() const
|
||||
{
|
||||
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
|
||||
}
|
||||
|
||||
void *Camera::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return nullptr;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_Camera.stringdata0))
|
||||
return static_cast<void*>(this);
|
||||
return QObject::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int Camera::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QObject::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
if (_id < 1)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 1;
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
if (_id < 1)
|
||||
*reinterpret_cast<int*>(_a[0]) = -1;
|
||||
_id -= 1;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
|
||||
// SIGNAL 0
|
||||
void Camera::updateImage(QImage _t1)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 0, _a);
|
||||
}
|
||||
QT_WARNING_POP
|
||||
QT_END_MOC_NAMESPACE
|
||||
@ -1,149 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'CameraControl.h'
|
||||
**
|
||||
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.4)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../../../../src/CameraControl.h"
|
||||
#include <QtCore/qbytearray.h>
|
||||
#include <QtCore/qmetatype.h>
|
||||
#include <QtCore/QVector>
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'CameraControl.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 67
|
||||
#error "This file was generated using the moc from 5.9.4. 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_CameraControl_t {
|
||||
QByteArrayData data[8];
|
||||
char stringdata0[95];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
qptrdiff(offsetof(qt_meta_stringdata_CameraControl_t, stringdata0) + ofs \
|
||||
- idx * sizeof(QByteArrayData)) \
|
||||
)
|
||||
static const qt_meta_stringdata_CameraControl_t qt_meta_stringdata_CameraControl = {
|
||||
{
|
||||
QT_MOC_LITERAL(0, 0, 13), // "CameraControl"
|
||||
QT_MOC_LITERAL(1, 14, 15), // "sgCapturedImage"
|
||||
QT_MOC_LITERAL(2, 30, 0), // ""
|
||||
QT_MOC_LITERAL(3, 31, 18), // "QVector<ImageInfo>"
|
||||
QT_MOC_LITERAL(4, 50, 12), // "vecImageInfo"
|
||||
QT_MOC_LITERAL(5, 63, 14), // "cameraLocation"
|
||||
QT_MOC_LITERAL(6, 78, 9), // "onCapture"
|
||||
QT_MOC_LITERAL(7, 88, 6) // "onOpen"
|
||||
|
||||
},
|
||||
"CameraControl\0sgCapturedImage\0\0"
|
||||
"QVector<ImageInfo>\0vecImageInfo\0"
|
||||
"cameraLocation\0onCapture\0onOpen"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
static const uint qt_meta_data_CameraControl[] = {
|
||||
|
||||
// content:
|
||||
7, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
3, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
1, // signalCount
|
||||
|
||||
// signals: name, argc, parameters, tag, flags
|
||||
1, 2, 29, 2, 0x06 /* Public */,
|
||||
|
||||
// slots: name, argc, parameters, tag, flags
|
||||
6, 1, 34, 2, 0x0a /* Public */,
|
||||
7, 0, 37, 2, 0x08 /* Private */,
|
||||
|
||||
// signals: parameters
|
||||
QMetaType::Void, 0x80000000 | 3, QMetaType::Int, 4, 5,
|
||||
|
||||
// slots: parameters
|
||||
QMetaType::Void, QMetaType::Int, 5,
|
||||
QMetaType::Void,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
void CameraControl::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
CameraControl *_t = static_cast<CameraControl *>(_o);
|
||||
Q_UNUSED(_t)
|
||||
switch (_id) {
|
||||
case 0: _t->sgCapturedImage((*reinterpret_cast< const QVector<ImageInfo>(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
|
||||
case 1: _t->onCapture((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 2: _t->onOpen(); break;
|
||||
default: ;
|
||||
}
|
||||
} else if (_c == QMetaObject::IndexOfMethod) {
|
||||
int *result = reinterpret_cast<int *>(_a[0]);
|
||||
{
|
||||
typedef void (CameraControl::*_t)(const QVector<ImageInfo> & , int );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&CameraControl::sgCapturedImage)) {
|
||||
*result = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const QMetaObject CameraControl::staticMetaObject = {
|
||||
{ &QObject::staticMetaObject, qt_meta_stringdata_CameraControl.data,
|
||||
qt_meta_data_CameraControl, qt_static_metacall, nullptr, nullptr}
|
||||
};
|
||||
|
||||
|
||||
const QMetaObject *CameraControl::metaObject() const
|
||||
{
|
||||
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
|
||||
}
|
||||
|
||||
void *CameraControl::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return nullptr;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_CameraControl.stringdata0))
|
||||
return static_cast<void*>(this);
|
||||
if (!strcmp(_clname, "lp_singleton<CameraControl>"))
|
||||
return static_cast< lp_singleton<CameraControl>*>(this);
|
||||
return QObject::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int CameraControl::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QObject::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)
|
||||
*reinterpret_cast<int*>(_a[0]) = -1;
|
||||
_id -= 3;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
|
||||
// SIGNAL 0
|
||||
void CameraControl::sgCapturedImage(const QVector<ImageInfo> & _t1, int _t2)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 0, _a);
|
||||
}
|
||||
QT_WARNING_POP
|
||||
QT_END_MOC_NAMESPACE
|
||||
@ -1,90 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'CategoryMatcher.h'
|
||||
**
|
||||
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.4)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../../../../src/CategoryMatcher.h"
|
||||
#include <QtCore/qbytearray.h>
|
||||
#include <QtCore/qmetatype.h>
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'CategoryMatcher.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 67
|
||||
#error "This file was generated using the moc from 5.9.4. 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_CategoryMatcher_t {
|
||||
QByteArrayData data[1];
|
||||
char stringdata0[16];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
qptrdiff(offsetof(qt_meta_stringdata_CategoryMatcher_t, stringdata0) + ofs \
|
||||
- idx * sizeof(QByteArrayData)) \
|
||||
)
|
||||
static const qt_meta_stringdata_CategoryMatcher_t qt_meta_stringdata_CategoryMatcher = {
|
||||
{
|
||||
QT_MOC_LITERAL(0, 0, 15) // "CategoryMatcher"
|
||||
|
||||
},
|
||||
"CategoryMatcher"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
static const uint qt_meta_data_CategoryMatcher[] = {
|
||||
|
||||
// content:
|
||||
7, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
0, 0, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
0, // signalCount
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
void CategoryMatcher::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
Q_UNUSED(_o);
|
||||
Q_UNUSED(_id);
|
||||
Q_UNUSED(_c);
|
||||
Q_UNUSED(_a);
|
||||
}
|
||||
|
||||
const QMetaObject CategoryMatcher::staticMetaObject = {
|
||||
{ &QObject::staticMetaObject, qt_meta_stringdata_CategoryMatcher.data,
|
||||
qt_meta_data_CategoryMatcher, qt_static_metacall, nullptr, nullptr}
|
||||
};
|
||||
|
||||
|
||||
const QMetaObject *CategoryMatcher::metaObject() const
|
||||
{
|
||||
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
|
||||
}
|
||||
|
||||
void *CategoryMatcher::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return nullptr;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_CategoryMatcher.stringdata0))
|
||||
return static_cast<void*>(this);
|
||||
return QObject::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int CategoryMatcher::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QObject::qt_metacall(_c, _id, _a);
|
||||
return _id;
|
||||
}
|
||||
QT_WARNING_POP
|
||||
QT_END_MOC_NAMESPACE
|
||||
@ -1,167 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'CodeScanStation.h'
|
||||
**
|
||||
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.4)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../../../../src/CodeScanStation.h"
|
||||
#include <QtCore/qbytearray.h>
|
||||
#include <QtCore/qmetatype.h>
|
||||
#include <QtCore/QSharedPointer>
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'CodeScanStation.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 67
|
||||
#error "This file was generated using the moc from 5.9.4. 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_CodeScanStation_t {
|
||||
QByteArrayData data[8];
|
||||
char stringdata0[99];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
qptrdiff(offsetof(qt_meta_stringdata_CodeScanStation_t, stringdata0) + ofs \
|
||||
- idx * sizeof(QByteArrayData)) \
|
||||
)
|
||||
static const qt_meta_stringdata_CodeScanStation_t qt_meta_stringdata_CodeScanStation = {
|
||||
{
|
||||
QT_MOC_LITERAL(0, 0, 15), // "CodeScanStation"
|
||||
QT_MOC_LITERAL(1, 16, 17), // "sgNewCodeScanData"
|
||||
QT_MOC_LITERAL(2, 34, 0), // ""
|
||||
QT_MOC_LITERAL(3, 35, 26), // "QSharedPointer<QByteArray>"
|
||||
QT_MOC_LITERAL(4, 62, 6), // "onOpen"
|
||||
QT_MOC_LITERAL(5, 69, 16), // "onSerialDataRecv"
|
||||
QT_MOC_LITERAL(6, 86, 2), // "sn"
|
||||
QT_MOC_LITERAL(7, 89, 9) // "data_ptr_"
|
||||
|
||||
},
|
||||
"CodeScanStation\0sgNewCodeScanData\0\0"
|
||||
"QSharedPointer<QByteArray>\0onOpen\0"
|
||||
"onSerialDataRecv\0sn\0data_ptr_"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
static const uint qt_meta_data_CodeScanStation[] = {
|
||||
|
||||
// content:
|
||||
7, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
3, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
1, // signalCount
|
||||
|
||||
// signals: name, argc, parameters, tag, flags
|
||||
1, 2, 29, 2, 0x06 /* Public */,
|
||||
|
||||
// slots: name, argc, parameters, tag, flags
|
||||
4, 0, 34, 2, 0x08 /* Private */,
|
||||
5, 2, 35, 2, 0x08 /* Private */,
|
||||
|
||||
// signals: parameters
|
||||
QMetaType::Void, QMetaType::Int, 0x80000000 | 3, 2, 2,
|
||||
|
||||
// slots: parameters
|
||||
QMetaType::Void,
|
||||
QMetaType::Void, QMetaType::QString, 0x80000000 | 3, 6, 7,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
void CodeScanStation::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
CodeScanStation *_t = static_cast<CodeScanStation *>(_o);
|
||||
Q_UNUSED(_t)
|
||||
switch (_id) {
|
||||
case 0: _t->sgNewCodeScanData((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QSharedPointer<QByteArray>(*)>(_a[2]))); break;
|
||||
case 1: _t->onOpen(); break;
|
||||
case 2: _t->onSerialDataRecv((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< QSharedPointer<QByteArray>(*)>(_a[2]))); break;
|
||||
default: ;
|
||||
}
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
switch (_id) {
|
||||
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
|
||||
case 0:
|
||||
switch (*reinterpret_cast<int*>(_a[1])) {
|
||||
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
|
||||
case 1:
|
||||
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QSharedPointer<QByteArray> >(); break;
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
switch (*reinterpret_cast<int*>(_a[1])) {
|
||||
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
|
||||
case 1:
|
||||
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QSharedPointer<QByteArray> >(); break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
} else if (_c == QMetaObject::IndexOfMethod) {
|
||||
int *result = reinterpret_cast<int *>(_a[0]);
|
||||
{
|
||||
typedef void (CodeScanStation::*_t)(int , QSharedPointer<QByteArray> );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&CodeScanStation::sgNewCodeScanData)) {
|
||||
*result = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const QMetaObject CodeScanStation::staticMetaObject = {
|
||||
{ &QObject::staticMetaObject, qt_meta_stringdata_CodeScanStation.data,
|
||||
qt_meta_data_CodeScanStation, qt_static_metacall, nullptr, nullptr}
|
||||
};
|
||||
|
||||
|
||||
const QMetaObject *CodeScanStation::metaObject() const
|
||||
{
|
||||
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
|
||||
}
|
||||
|
||||
void *CodeScanStation::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return nullptr;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_CodeScanStation.stringdata0))
|
||||
return static_cast<void*>(this);
|
||||
if (!strcmp(_clname, "lp_singleton<CodeScanStation>"))
|
||||
return static_cast< lp_singleton<CodeScanStation>*>(this);
|
||||
return QObject::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int CodeScanStation::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QObject::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;
|
||||
}
|
||||
|
||||
// SIGNAL 0
|
||||
void CodeScanStation::sgNewCodeScanData(int _t1, QSharedPointer<QByteArray> _t2)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 0, _a);
|
||||
}
|
||||
QT_WARNING_POP
|
||||
QT_END_MOC_NAMESPACE
|
||||
@ -1,90 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'HikCamera.h'
|
||||
**
|
||||
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.4)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../../../../src/HikCamera.h"
|
||||
#include <QtCore/qbytearray.h>
|
||||
#include <QtCore/qmetatype.h>
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'HikCamera.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 67
|
||||
#error "This file was generated using the moc from 5.9.4. 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_HikCamera_t {
|
||||
QByteArrayData data[1];
|
||||
char stringdata0[10];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
qptrdiff(offsetof(qt_meta_stringdata_HikCamera_t, stringdata0) + ofs \
|
||||
- idx * sizeof(QByteArrayData)) \
|
||||
)
|
||||
static const qt_meta_stringdata_HikCamera_t qt_meta_stringdata_HikCamera = {
|
||||
{
|
||||
QT_MOC_LITERAL(0, 0, 9) // "HikCamera"
|
||||
|
||||
},
|
||||
"HikCamera"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
static const uint qt_meta_data_HikCamera[] = {
|
||||
|
||||
// content:
|
||||
7, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
0, 0, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
0, // signalCount
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
void HikCamera::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
Q_UNUSED(_o);
|
||||
Q_UNUSED(_id);
|
||||
Q_UNUSED(_c);
|
||||
Q_UNUSED(_a);
|
||||
}
|
||||
|
||||
const QMetaObject HikCamera::staticMetaObject = {
|
||||
{ &Camera::staticMetaObject, qt_meta_stringdata_HikCamera.data,
|
||||
qt_meta_data_HikCamera, qt_static_metacall, nullptr, nullptr}
|
||||
};
|
||||
|
||||
|
||||
const QMetaObject *HikCamera::metaObject() const
|
||||
{
|
||||
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
|
||||
}
|
||||
|
||||
void *HikCamera::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return nullptr;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_HikCamera.stringdata0))
|
||||
return static_cast<void*>(this);
|
||||
return Camera::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int HikCamera::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = Camera::qt_metacall(_c, _id, _a);
|
||||
return _id;
|
||||
}
|
||||
QT_WARNING_POP
|
||||
QT_END_MOC_NAMESPACE
|
||||
@ -1,180 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'NetControl.h'
|
||||
**
|
||||
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.4)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../../../../src/NetControl.h"
|
||||
#include <QtCore/qbytearray.h>
|
||||
#include <QtCore/qmetatype.h>
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'NetControl.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 67
|
||||
#error "This file was generated using the moc from 5.9.4. 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_NetControl_t {
|
||||
QByteArrayData data[14];
|
||||
char stringdata0[162];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
qptrdiff(offsetof(qt_meta_stringdata_NetControl_t, stringdata0) + ofs \
|
||||
- idx * sizeof(QByteArrayData)) \
|
||||
)
|
||||
static const qt_meta_stringdata_NetControl_t qt_meta_stringdata_NetControl = {
|
||||
{
|
||||
QT_MOC_LITERAL(0, 0, 10), // "NetControl"
|
||||
QT_MOC_LITERAL(1, 11, 13), // "sgReceiveData"
|
||||
QT_MOC_LITERAL(2, 25, 0), // ""
|
||||
QT_MOC_LITERAL(3, 26, 4), // "data"
|
||||
QT_MOC_LITERAL(4, 31, 9), // "onInitNet"
|
||||
QT_MOC_LITERAL(5, 41, 9), // "onSendMsg"
|
||||
QT_MOC_LITERAL(6, 51, 3), // "msg"
|
||||
QT_MOC_LITERAL(7, 55, 17), // "sendHeartbeatPack"
|
||||
QT_MOC_LITERAL(8, 73, 11), // "onConnected"
|
||||
QT_MOC_LITERAL(9, 85, 14), // "onDisconnected"
|
||||
QT_MOC_LITERAL(10, 100, 14), // "onErrorHandler"
|
||||
QT_MOC_LITERAL(11, 115, 28), // "QAbstractSocket::SocketError"
|
||||
QT_MOC_LITERAL(12, 144, 3), // "err"
|
||||
QT_MOC_LITERAL(13, 148, 13) // "onMsgReceived"
|
||||
|
||||
},
|
||||
"NetControl\0sgReceiveData\0\0data\0onInitNet\0"
|
||||
"onSendMsg\0msg\0sendHeartbeatPack\0"
|
||||
"onConnected\0onDisconnected\0onErrorHandler\0"
|
||||
"QAbstractSocket::SocketError\0err\0"
|
||||
"onMsgReceived"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
static const uint qt_meta_data_NetControl[] = {
|
||||
|
||||
// content:
|
||||
7, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
8, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
1, // signalCount
|
||||
|
||||
// signals: name, argc, parameters, tag, flags
|
||||
1, 1, 54, 2, 0x06 /* Public */,
|
||||
|
||||
// slots: name, argc, parameters, tag, flags
|
||||
4, 0, 57, 2, 0x0a /* Public */,
|
||||
5, 1, 58, 2, 0x0a /* Public */,
|
||||
7, 0, 61, 2, 0x08 /* Private */,
|
||||
8, 0, 62, 2, 0x08 /* Private */,
|
||||
9, 0, 63, 2, 0x08 /* Private */,
|
||||
10, 1, 64, 2, 0x08 /* Private */,
|
||||
13, 0, 67, 2, 0x08 /* Private */,
|
||||
|
||||
// signals: parameters
|
||||
QMetaType::Void, QMetaType::QString, 3,
|
||||
|
||||
// slots: parameters
|
||||
QMetaType::Void,
|
||||
QMetaType::Void, QMetaType::QString, 6,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void, 0x80000000 | 11, 12,
|
||||
QMetaType::Void,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
void NetControl::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
NetControl *_t = static_cast<NetControl *>(_o);
|
||||
Q_UNUSED(_t)
|
||||
switch (_id) {
|
||||
case 0: _t->sgReceiveData((*reinterpret_cast< const QString(*)>(_a[1]))); break;
|
||||
case 1: _t->onInitNet(); break;
|
||||
case 2: _t->onSendMsg((*reinterpret_cast< const QString(*)>(_a[1]))); break;
|
||||
case 3: _t->sendHeartbeatPack(); break;
|
||||
case 4: _t->onConnected(); break;
|
||||
case 5: _t->onDisconnected(); break;
|
||||
case 6: _t->onErrorHandler((*reinterpret_cast< QAbstractSocket::SocketError(*)>(_a[1]))); break;
|
||||
case 7: _t->onMsgReceived(); break;
|
||||
default: ;
|
||||
}
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
switch (_id) {
|
||||
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
|
||||
case 6:
|
||||
switch (*reinterpret_cast<int*>(_a[1])) {
|
||||
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
|
||||
case 0:
|
||||
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QAbstractSocket::SocketError >(); break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
} else if (_c == QMetaObject::IndexOfMethod) {
|
||||
int *result = reinterpret_cast<int *>(_a[0]);
|
||||
{
|
||||
typedef void (NetControl::*_t)(const QString & );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&NetControl::sgReceiveData)) {
|
||||
*result = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const QMetaObject NetControl::staticMetaObject = {
|
||||
{ &QObject::staticMetaObject, qt_meta_stringdata_NetControl.data,
|
||||
qt_meta_data_NetControl, qt_static_metacall, nullptr, nullptr}
|
||||
};
|
||||
|
||||
|
||||
const QMetaObject *NetControl::metaObject() const
|
||||
{
|
||||
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
|
||||
}
|
||||
|
||||
void *NetControl::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return nullptr;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_NetControl.stringdata0))
|
||||
return static_cast<void*>(this);
|
||||
return QObject::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int NetControl::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QObject::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;
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
if (_id < 8)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 8;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
|
||||
// SIGNAL 0
|
||||
void NetControl::sgReceiveData(const QString & _t1)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 0, _a);
|
||||
}
|
||||
QT_WARNING_POP
|
||||
QT_END_MOC_NAMESPACE
|
||||
@ -1,114 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'QNumTemplateBuild.h'
|
||||
**
|
||||
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.4)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../../../../src/QNumTemplateBuild.h"
|
||||
#include <QtCore/qbytearray.h>
|
||||
#include <QtCore/qmetatype.h>
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'QNumTemplateBuild.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 67
|
||||
#error "This file was generated using the moc from 5.9.4. 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_QNumTemplateBuild_t {
|
||||
QByteArrayData data[3];
|
||||
char stringdata0[33];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
qptrdiff(offsetof(qt_meta_stringdata_QNumTemplateBuild_t, stringdata0) + ofs \
|
||||
- idx * sizeof(QByteArrayData)) \
|
||||
)
|
||||
static const qt_meta_stringdata_QNumTemplateBuild_t qt_meta_stringdata_QNumTemplateBuild = {
|
||||
{
|
||||
QT_MOC_LITERAL(0, 0, 17), // "QNumTemplateBuild"
|
||||
QT_MOC_LITERAL(1, 18, 13), // "onButtonClick"
|
||||
QT_MOC_LITERAL(2, 32, 0) // ""
|
||||
|
||||
},
|
||||
"QNumTemplateBuild\0onButtonClick\0"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
static const uint qt_meta_data_QNumTemplateBuild[] = {
|
||||
|
||||
// content:
|
||||
7, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
1, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
0, // signalCount
|
||||
|
||||
// slots: name, argc, parameters, tag, flags
|
||||
1, 0, 19, 2, 0x08 /* Private */,
|
||||
|
||||
// slots: parameters
|
||||
QMetaType::Void,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
void QNumTemplateBuild::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
QNumTemplateBuild *_t = static_cast<QNumTemplateBuild *>(_o);
|
||||
Q_UNUSED(_t)
|
||||
switch (_id) {
|
||||
case 0: _t->onButtonClick(); break;
|
||||
default: ;
|
||||
}
|
||||
}
|
||||
Q_UNUSED(_a);
|
||||
}
|
||||
|
||||
const QMetaObject QNumTemplateBuild::staticMetaObject = {
|
||||
{ &QWidget::staticMetaObject, qt_meta_stringdata_QNumTemplateBuild.data,
|
||||
qt_meta_data_QNumTemplateBuild, qt_static_metacall, nullptr, nullptr}
|
||||
};
|
||||
|
||||
|
||||
const QMetaObject *QNumTemplateBuild::metaObject() const
|
||||
{
|
||||
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
|
||||
}
|
||||
|
||||
void *QNumTemplateBuild::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return nullptr;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_QNumTemplateBuild.stringdata0))
|
||||
return static_cast<void*>(this);
|
||||
return QWidget::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int QNumTemplateBuild::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QWidget::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
if (_id < 1)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 1;
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
if (_id < 1)
|
||||
*reinterpret_cast<int*>(_a[0]) = -1;
|
||||
_id -= 1;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
QT_WARNING_POP
|
||||
QT_END_MOC_NAMESPACE
|
||||
@ -1,371 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'SmokeBoxIdentification.h'
|
||||
**
|
||||
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.4)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../../../../src/SmokeBoxIdentification.h"
|
||||
#include <QtCore/qbytearray.h>
|
||||
#include <QtCore/qmetatype.h>
|
||||
#include <QtCore/QVector>
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'SmokeBoxIdentification.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 67
|
||||
#error "This file was generated using the moc from 5.9.4. 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_SmokeBoxIdentification_t {
|
||||
QByteArrayData data[38];
|
||||
char stringdata0[552];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
qptrdiff(offsetof(qt_meta_stringdata_SmokeBoxIdentification_t, stringdata0) + ofs \
|
||||
- idx * sizeof(QByteArrayData)) \
|
||||
)
|
||||
static const qt_meta_stringdata_SmokeBoxIdentification_t qt_meta_stringdata_SmokeBoxIdentification = {
|
||||
{
|
||||
QT_MOC_LITERAL(0, 0, 22), // "SmokeBoxIdentification"
|
||||
QT_MOC_LITERAL(1, 23, 9), // "sgCapture"
|
||||
QT_MOC_LITERAL(2, 33, 0), // ""
|
||||
QT_MOC_LITERAL(3, 34, 14), // "cameraLocation"
|
||||
QT_MOC_LITERAL(4, 49, 23), // "sgCategoryMatchFinished"
|
||||
QT_MOC_LITERAL(5, 73, 8), // "smokeNum"
|
||||
QT_MOC_LITERAL(6, 82, 11), // "sgShowImage"
|
||||
QT_MOC_LITERAL(7, 94, 7), // "QLabel*"
|
||||
QT_MOC_LITERAL(8, 102, 8), // "labelPtr"
|
||||
QT_MOC_LITERAL(9, 111, 6), // "qImage"
|
||||
QT_MOC_LITERAL(10, 118, 21), // "sgNumDataCollectStart"
|
||||
QT_MOC_LITERAL(11, 140, 6), // "sideId"
|
||||
QT_MOC_LITERAL(12, 147, 20), // "sgNumDataCollectStop"
|
||||
QT_MOC_LITERAL(13, 168, 22), // "sgStartEmptyPlaceCheck"
|
||||
QT_MOC_LITERAL(14, 191, 10), // "streetName"
|
||||
QT_MOC_LITERAL(15, 202, 21), // "sgStopEmptyPlaceCheck"
|
||||
QT_MOC_LITERAL(16, 224, 18), // "sgControlSideLight"
|
||||
QT_MOC_LITERAL(17, 243, 9), // "sgSendMsg"
|
||||
QT_MOC_LITERAL(18, 253, 3), // "msg"
|
||||
QT_MOC_LITERAL(19, 257, 11), // "onDecodeMsg"
|
||||
QT_MOC_LITERAL(20, 269, 15), // "onCapturedImage"
|
||||
QT_MOC_LITERAL(21, 285, 18), // "QVector<ImageInfo>"
|
||||
QT_MOC_LITERAL(22, 304, 12), // "vecImageInfo"
|
||||
QT_MOC_LITERAL(23, 317, 14), // "camearLocation"
|
||||
QT_MOC_LITERAL(24, 332, 14), // "onNumStatistic"
|
||||
QT_MOC_LITERAL(25, 347, 7), // "typeNum"
|
||||
QT_MOC_LITERAL(26, 355, 11), // "onShowImage"
|
||||
QT_MOC_LITERAL(27, 367, 27), // "onMonitorSensorTriggerStart"
|
||||
QT_MOC_LITERAL(28, 395, 26), // "onMonitorSensorTriggerStop"
|
||||
QT_MOC_LITERAL(29, 422, 15), // "onActionClicked"
|
||||
QT_MOC_LITERAL(30, 438, 23), // "onSendEmptyCheckResults"
|
||||
QT_MOC_LITERAL(31, 462, 17), // "QMap<QString,int>"
|
||||
QT_MOC_LITERAL(32, 480, 12), // "onNewNumData"
|
||||
QT_MOC_LITERAL(33, 493, 25), // "QVector<QVector<double> >"
|
||||
QT_MOC_LITERAL(34, 519, 3), // "vec"
|
||||
QT_MOC_LITERAL(35, 523, 16), // "QVector<QString>"
|
||||
QT_MOC_LITERAL(36, 540, 6), // "strVec"
|
||||
QT_MOC_LITERAL(37, 547, 4) // "side"
|
||||
|
||||
},
|
||||
"SmokeBoxIdentification\0sgCapture\0\0"
|
||||
"cameraLocation\0sgCategoryMatchFinished\0"
|
||||
"smokeNum\0sgShowImage\0QLabel*\0labelPtr\0"
|
||||
"qImage\0sgNumDataCollectStart\0sideId\0"
|
||||
"sgNumDataCollectStop\0sgStartEmptyPlaceCheck\0"
|
||||
"streetName\0sgStopEmptyPlaceCheck\0"
|
||||
"sgControlSideLight\0sgSendMsg\0msg\0"
|
||||
"onDecodeMsg\0onCapturedImage\0"
|
||||
"QVector<ImageInfo>\0vecImageInfo\0"
|
||||
"camearLocation\0onNumStatistic\0typeNum\0"
|
||||
"onShowImage\0onMonitorSensorTriggerStart\0"
|
||||
"onMonitorSensorTriggerStop\0onActionClicked\0"
|
||||
"onSendEmptyCheckResults\0QMap<QString,int>\0"
|
||||
"onNewNumData\0QVector<QVector<double> >\0"
|
||||
"vec\0QVector<QString>\0strVec\0side"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
static const uint qt_meta_data_SmokeBoxIdentification[] = {
|
||||
|
||||
// content:
|
||||
7, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
18, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
9, // signalCount
|
||||
|
||||
// signals: name, argc, parameters, tag, flags
|
||||
1, 1, 104, 2, 0x06 /* Public */,
|
||||
4, 1, 107, 2, 0x06 /* Public */,
|
||||
6, 2, 110, 2, 0x06 /* Public */,
|
||||
10, 1, 115, 2, 0x06 /* Public */,
|
||||
12, 0, 118, 2, 0x06 /* Public */,
|
||||
13, 1, 119, 2, 0x06 /* Public */,
|
||||
15, 0, 122, 2, 0x06 /* Public */,
|
||||
16, 1, 123, 2, 0x06 /* Public */,
|
||||
17, 1, 126, 2, 0x06 /* Public */,
|
||||
|
||||
// slots: name, argc, parameters, tag, flags
|
||||
19, 1, 129, 2, 0x08 /* Private */,
|
||||
20, 2, 132, 2, 0x08 /* Private */,
|
||||
24, 1, 137, 2, 0x08 /* Private */,
|
||||
26, 2, 140, 2, 0x08 /* Private */,
|
||||
27, 1, 145, 2, 0x08 /* Private */,
|
||||
28, 1, 148, 2, 0x08 /* Private */,
|
||||
29, 0, 151, 2, 0x08 /* Private */,
|
||||
30, 1, 152, 2, 0x08 /* Private */,
|
||||
32, 3, 155, 2, 0x08 /* Private */,
|
||||
|
||||
// signals: parameters
|
||||
QMetaType::Void, QMetaType::Int, 3,
|
||||
QMetaType::Void, QMetaType::QString, 5,
|
||||
QMetaType::Void, 0x80000000 | 7, QMetaType::QImage, 8, 9,
|
||||
QMetaType::Void, QMetaType::Int, 11,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void, QMetaType::QString, 14,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void, QMetaType::Int, 2,
|
||||
QMetaType::Void, QMetaType::QString, 18,
|
||||
|
||||
// slots: parameters
|
||||
QMetaType::Void, QMetaType::QString, 18,
|
||||
QMetaType::Void, 0x80000000 | 21, QMetaType::Int, 22, 23,
|
||||
QMetaType::Void, QMetaType::QString, 25,
|
||||
QMetaType::Void, 0x80000000 | 7, QMetaType::QImage, 8, 9,
|
||||
QMetaType::Void, QMetaType::Int, 2,
|
||||
QMetaType::Void, QMetaType::Int, 2,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void, 0x80000000 | 31, 2,
|
||||
QMetaType::Void, 0x80000000 | 33, 0x80000000 | 35, QMetaType::Int, 34, 36, 37,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
void SmokeBoxIdentification::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
SmokeBoxIdentification *_t = static_cast<SmokeBoxIdentification *>(_o);
|
||||
Q_UNUSED(_t)
|
||||
switch (_id) {
|
||||
case 0: _t->sgCapture((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 1: _t->sgCategoryMatchFinished((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 2: _t->sgShowImage((*reinterpret_cast< QLabel*(*)>(_a[1])),(*reinterpret_cast< const QImage(*)>(_a[2]))); break;
|
||||
case 3: _t->sgNumDataCollectStart((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 4: _t->sgNumDataCollectStop(); break;
|
||||
case 5: _t->sgStartEmptyPlaceCheck((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 6: _t->sgStopEmptyPlaceCheck(); break;
|
||||
case 7: _t->sgControlSideLight((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 8: _t->sgSendMsg((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 9: _t->onDecodeMsg((*reinterpret_cast< const QString(*)>(_a[1]))); break;
|
||||
case 10: _t->onCapturedImage((*reinterpret_cast< const QVector<ImageInfo>(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
|
||||
case 11: _t->onNumStatistic((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 12: _t->onShowImage((*reinterpret_cast< QLabel*(*)>(_a[1])),(*reinterpret_cast< const QImage(*)>(_a[2]))); break;
|
||||
case 13: _t->onMonitorSensorTriggerStart((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 14: _t->onMonitorSensorTriggerStop((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 15: _t->onActionClicked(); break;
|
||||
case 16: _t->onSendEmptyCheckResults((*reinterpret_cast< const QMap<QString,int>(*)>(_a[1]))); break;
|
||||
case 17: _t->onNewNumData((*reinterpret_cast< const QVector<QVector<double> >(*)>(_a[1])),(*reinterpret_cast< const QVector<QString>(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); 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< QLabel* >(); break;
|
||||
}
|
||||
break;
|
||||
case 12:
|
||||
switch (*reinterpret_cast<int*>(_a[1])) {
|
||||
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
|
||||
case 0:
|
||||
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QLabel* >(); break;
|
||||
}
|
||||
break;
|
||||
case 17:
|
||||
switch (*reinterpret_cast<int*>(_a[1])) {
|
||||
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
|
||||
case 1:
|
||||
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QVector<QString> >(); break;
|
||||
case 0:
|
||||
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QVector<QVector<double> > >(); break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
} else if (_c == QMetaObject::IndexOfMethod) {
|
||||
int *result = reinterpret_cast<int *>(_a[0]);
|
||||
{
|
||||
typedef void (SmokeBoxIdentification::*_t)(int );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SmokeBoxIdentification::sgCapture)) {
|
||||
*result = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
typedef void (SmokeBoxIdentification::*_t)(QString );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SmokeBoxIdentification::sgCategoryMatchFinished)) {
|
||||
*result = 1;
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
typedef void (SmokeBoxIdentification::*_t)(QLabel * , const QImage & );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SmokeBoxIdentification::sgShowImage)) {
|
||||
*result = 2;
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
typedef void (SmokeBoxIdentification::*_t)(int );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SmokeBoxIdentification::sgNumDataCollectStart)) {
|
||||
*result = 3;
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
typedef void (SmokeBoxIdentification::*_t)();
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SmokeBoxIdentification::sgNumDataCollectStop)) {
|
||||
*result = 4;
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
typedef void (SmokeBoxIdentification::*_t)(QString );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SmokeBoxIdentification::sgStartEmptyPlaceCheck)) {
|
||||
*result = 5;
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
typedef void (SmokeBoxIdentification::*_t)();
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SmokeBoxIdentification::sgStopEmptyPlaceCheck)) {
|
||||
*result = 6;
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
typedef void (SmokeBoxIdentification::*_t)(int );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SmokeBoxIdentification::sgControlSideLight)) {
|
||||
*result = 7;
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
typedef void (SmokeBoxIdentification::*_t)(QString );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SmokeBoxIdentification::sgSendMsg)) {
|
||||
*result = 8;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const QMetaObject SmokeBoxIdentification::staticMetaObject = {
|
||||
{ &QMainWindow::staticMetaObject, qt_meta_stringdata_SmokeBoxIdentification.data,
|
||||
qt_meta_data_SmokeBoxIdentification, qt_static_metacall, nullptr, nullptr}
|
||||
};
|
||||
|
||||
|
||||
const QMetaObject *SmokeBoxIdentification::metaObject() const
|
||||
{
|
||||
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
|
||||
}
|
||||
|
||||
void *SmokeBoxIdentification::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return nullptr;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_SmokeBoxIdentification.stringdata0))
|
||||
return static_cast<void*>(this);
|
||||
return QMainWindow::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int SmokeBoxIdentification::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QMainWindow::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
if (_id < 18)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 18;
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
if (_id < 18)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 18;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
|
||||
// SIGNAL 0
|
||||
void SmokeBoxIdentification::sgCapture(int _t1)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 0, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 1
|
||||
void SmokeBoxIdentification::sgCategoryMatchFinished(QString _t1)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 1, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 2
|
||||
void SmokeBoxIdentification::sgShowImage(QLabel * _t1, const QImage & _t2)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 2, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 3
|
||||
void SmokeBoxIdentification::sgNumDataCollectStart(int _t1)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 3, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 4
|
||||
void SmokeBoxIdentification::sgNumDataCollectStop()
|
||||
{
|
||||
QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
|
||||
}
|
||||
|
||||
// SIGNAL 5
|
||||
void SmokeBoxIdentification::sgStartEmptyPlaceCheck(QString _t1)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 5, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 6
|
||||
void SmokeBoxIdentification::sgStopEmptyPlaceCheck()
|
||||
{
|
||||
QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
|
||||
}
|
||||
|
||||
// SIGNAL 7
|
||||
void SmokeBoxIdentification::sgControlSideLight(int _t1)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 7, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 8
|
||||
void SmokeBoxIdentification::sgSendMsg(QString _t1)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 8, _a);
|
||||
}
|
||||
QT_WARNING_POP
|
||||
QT_END_MOC_NAMESPACE
|
||||
@ -1,235 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'lpSerialStation.h'
|
||||
**
|
||||
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.4)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../../../../src/lpSerialStation.h"
|
||||
#include <QtCore/qbytearray.h>
|
||||
#include <QtCore/qmetatype.h>
|
||||
#include <QtCore/QSharedPointer>
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'lpSerialStation.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 67
|
||||
#error "This file was generated using the moc from 5.9.4. 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_lpSerialStation_t {
|
||||
QByteArrayData data[21];
|
||||
char stringdata0[346];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
qptrdiff(offsetof(qt_meta_stringdata_lpSerialStation_t, stringdata0) + ofs \
|
||||
- idx * sizeof(QByteArrayData)) \
|
||||
)
|
||||
static const qt_meta_stringdata_lpSerialStation_t qt_meta_stringdata_lpSerialStation = {
|
||||
{
|
||||
QT_MOC_LITERAL(0, 0, 15), // "lpSerialStation"
|
||||
QT_MOC_LITERAL(1, 16, 22), // "sgNewEmptyCheckResults"
|
||||
QT_MOC_LITERAL(2, 39, 0), // ""
|
||||
QT_MOC_LITERAL(3, 40, 17), // "QMap<QString,int>"
|
||||
QT_MOC_LITERAL(4, 58, 27), // "sgMonitorSensorTriggerStart"
|
||||
QT_MOC_LITERAL(5, 86, 6), // "sideId"
|
||||
QT_MOC_LITERAL(6, 93, 26), // "sgMonitorSensorTriggerStop"
|
||||
QT_MOC_LITERAL(7, 120, 18), // "onControlSideLight"
|
||||
QT_MOC_LITERAL(8, 139, 7), // "cmdData"
|
||||
QT_MOC_LITERAL(9, 147, 22), // "onStartEmptyPlaceCheck"
|
||||
QT_MOC_LITERAL(10, 170, 10), // "streetName"
|
||||
QT_MOC_LITERAL(11, 181, 21), // "onStopEmptyPlaceCheck"
|
||||
QT_MOC_LITERAL(12, 203, 20), // "onNewCodeScanResults"
|
||||
QT_MOC_LITERAL(13, 224, 26), // "QSharedPointer<QByteArray>"
|
||||
QT_MOC_LITERAL(14, 251, 6), // "onOpen"
|
||||
QT_MOC_LITERAL(15, 258, 13), // "onDataReceive"
|
||||
QT_MOC_LITERAL(16, 272, 2), // "sn"
|
||||
QT_MOC_LITERAL(17, 275, 29), // "QSharedPointer<LpSerialFrame>"
|
||||
QT_MOC_LITERAL(18, 305, 9), // "data_ptr_"
|
||||
QT_MOC_LITERAL(19, 315, 14), // "onStateChanged"
|
||||
QT_MOC_LITERAL(20, 330, 15) // "SerialErrorType"
|
||||
|
||||
},
|
||||
"lpSerialStation\0sgNewEmptyCheckResults\0"
|
||||
"\0QMap<QString,int>\0sgMonitorSensorTriggerStart\0"
|
||||
"sideId\0sgMonitorSensorTriggerStop\0"
|
||||
"onControlSideLight\0cmdData\0"
|
||||
"onStartEmptyPlaceCheck\0streetName\0"
|
||||
"onStopEmptyPlaceCheck\0onNewCodeScanResults\0"
|
||||
"QSharedPointer<QByteArray>\0onOpen\0"
|
||||
"onDataReceive\0sn\0QSharedPointer<LpSerialFrame>\0"
|
||||
"data_ptr_\0onStateChanged\0SerialErrorType"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
static const uint qt_meta_data_lpSerialStation[] = {
|
||||
|
||||
// content:
|
||||
7, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
10, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
3, // signalCount
|
||||
|
||||
// signals: name, argc, parameters, tag, flags
|
||||
1, 1, 64, 2, 0x06 /* Public */,
|
||||
4, 1, 67, 2, 0x06 /* Public */,
|
||||
6, 1, 70, 2, 0x06 /* Public */,
|
||||
|
||||
// slots: name, argc, parameters, tag, flags
|
||||
7, 1, 73, 2, 0x0a /* Public */,
|
||||
9, 1, 76, 2, 0x0a /* Public */,
|
||||
11, 0, 79, 2, 0x0a /* Public */,
|
||||
12, 2, 80, 2, 0x0a /* Public */,
|
||||
14, 0, 85, 2, 0x08 /* Private */,
|
||||
15, 2, 86, 2, 0x08 /* Private */,
|
||||
19, 2, 91, 2, 0x08 /* Private */,
|
||||
|
||||
// signals: parameters
|
||||
QMetaType::Void, 0x80000000 | 3, 2,
|
||||
QMetaType::Void, QMetaType::Int, 5,
|
||||
QMetaType::Void, QMetaType::Int, 5,
|
||||
|
||||
// slots: parameters
|
||||
QMetaType::Void, QMetaType::Int, 8,
|
||||
QMetaType::Void, QMetaType::QString, 10,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void, QMetaType::Int, 0x80000000 | 13, 2, 2,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void, QMetaType::QString, 0x80000000 | 17, 16, 18,
|
||||
QMetaType::Void, QMetaType::QString, 0x80000000 | 20, 2, 2,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
void lpSerialStation::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
lpSerialStation *_t = static_cast<lpSerialStation *>(_o);
|
||||
Q_UNUSED(_t)
|
||||
switch (_id) {
|
||||
case 0: _t->sgNewEmptyCheckResults((*reinterpret_cast< const QMap<QString,int>(*)>(_a[1]))); break;
|
||||
case 1: _t->sgMonitorSensorTriggerStart((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 2: _t->sgMonitorSensorTriggerStop((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 3: _t->onControlSideLight((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 4: _t->onStartEmptyPlaceCheck((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 5: _t->onStopEmptyPlaceCheck(); break;
|
||||
case 6: _t->onNewCodeScanResults((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QSharedPointer<QByteArray>(*)>(_a[2]))); break;
|
||||
case 7: _t->onOpen(); break;
|
||||
case 8: _t->onDataReceive((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< QSharedPointer<LpSerialFrame>(*)>(_a[2]))); break;
|
||||
case 9: _t->onStateChanged((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< SerialErrorType(*)>(_a[2]))); break;
|
||||
default: ;
|
||||
}
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
switch (_id) {
|
||||
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
|
||||
case 6:
|
||||
switch (*reinterpret_cast<int*>(_a[1])) {
|
||||
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
|
||||
case 1:
|
||||
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QSharedPointer<QByteArray> >(); break;
|
||||
}
|
||||
break;
|
||||
case 8:
|
||||
switch (*reinterpret_cast<int*>(_a[1])) {
|
||||
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
|
||||
case 1:
|
||||
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QSharedPointer<LpSerialFrame> >(); break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
} else if (_c == QMetaObject::IndexOfMethod) {
|
||||
int *result = reinterpret_cast<int *>(_a[0]);
|
||||
{
|
||||
typedef void (lpSerialStation::*_t)(const QMap<QString,int> & );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&lpSerialStation::sgNewEmptyCheckResults)) {
|
||||
*result = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
typedef void (lpSerialStation::*_t)(int );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&lpSerialStation::sgMonitorSensorTriggerStart)) {
|
||||
*result = 1;
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
typedef void (lpSerialStation::*_t)(int );
|
||||
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&lpSerialStation::sgMonitorSensorTriggerStop)) {
|
||||
*result = 2;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const QMetaObject lpSerialStation::staticMetaObject = {
|
||||
{ &QObject::staticMetaObject, qt_meta_stringdata_lpSerialStation.data,
|
||||
qt_meta_data_lpSerialStation, qt_static_metacall, nullptr, nullptr}
|
||||
};
|
||||
|
||||
|
||||
const QMetaObject *lpSerialStation::metaObject() const
|
||||
{
|
||||
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
|
||||
}
|
||||
|
||||
void *lpSerialStation::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return nullptr;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_lpSerialStation.stringdata0))
|
||||
return static_cast<void*>(this);
|
||||
if (!strcmp(_clname, "lp_singleton<lpSerialStation>"))
|
||||
return static_cast< lp_singleton<lpSerialStation>*>(this);
|
||||
return QObject::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int lpSerialStation::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QObject::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
if (_id < 10)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 10;
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
if (_id < 10)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 10;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
|
||||
// SIGNAL 0
|
||||
void lpSerialStation::sgNewEmptyCheckResults(const QMap<QString,int> & _t1)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 0, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 1
|
||||
void lpSerialStation::sgMonitorSensorTriggerStart(int _t1)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 1, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 2
|
||||
void lpSerialStation::sgMonitorSensorTriggerStop(int _t1)
|
||||
{
|
||||
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 2, _a);
|
||||
}
|
||||
QT_WARNING_POP
|
||||
QT_END_MOC_NAMESPACE
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,737 @@
|
||||
// Created by Microsoft (R) C/C++ Compiler Version 14.16.27051.0 (416bd4a7).
|
||||
//
|
||||
// e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvImgProc.tli
|
||||
//
|
||||
// Wrapper implementations for Win32 type library 29c8366a-f227-4cc4-bdbb-b32397056cf5
|
||||
// compiler-generated file created 11/24/23 at 15:36:24 - DO NOT EDIT!
|
||||
|
||||
#pragma once
|
||||
|
||||
//
|
||||
// interface ILImageThreshold wrapper method implementations
|
||||
//
|
||||
|
||||
inline HRESULT ILImageThreshold::SetThreshold ( int lb, int ub ) {
|
||||
HRESULT _hr = raw_SetThreshold(lb, ub);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageThreshold::SetThresholdAdaptGlobal ( int lbBias, int ubBias ) {
|
||||
HRESULT _hr = raw_SetThresholdAdaptGlobal(lbBias, ubBias);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageThreshold::SetThresholdAdaptLocal ( int blockWidth, int blockHeight, int lbBias, int ubBias ) {
|
||||
HRESULT _hr = raw_SetThresholdAdaptLocal(blockWidth, blockHeight, lbBias, ubBias);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageThreshold::Binarize ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Binarize(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageThreshold::ThresholdDistance ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_ThresholdDistance(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageThreshold::Clip ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Clip(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageThreshold::Stretch ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Stretch(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline enum LPVThresholdType ILImageThreshold::GetThresholdType ( ) {
|
||||
enum LPVThresholdType _result;
|
||||
HRESULT _hr = get_ThresholdType(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline int ILImageThreshold::GetThresholdLB ( ) {
|
||||
int _result = 0;
|
||||
HRESULT _hr = get_ThresholdLB(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline int ILImageThreshold::GetThresholdUB ( ) {
|
||||
int _result = 0;
|
||||
HRESULT _hr = get_ThresholdUB(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline int ILImageThreshold::GetThresholdLBBias ( ) {
|
||||
int _result = 0;
|
||||
HRESULT _hr = get_ThresholdLBBias(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline int ILImageThreshold::GetThresholdUBBias ( ) {
|
||||
int _result = 0;
|
||||
HRESULT _hr = get_ThresholdUBBias(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline int ILImageThreshold::GetLocalBlockWidth ( ) {
|
||||
int _result = 0;
|
||||
HRESULT _hr = get_LocalBlockWidth(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline int ILImageThreshold::GetLocalBlockHeight ( ) {
|
||||
int _result = 0;
|
||||
HRESULT _hr = get_LocalBlockHeight(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
//
|
||||
// interface ILImageFilter wrapper method implementations
|
||||
//
|
||||
|
||||
inline HRESULT ILImageFilter::SetKernelSize ( int kWidth, int kHeight ) {
|
||||
HRESULT _hr = raw_SetKernelSize(kWidth, kHeight);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageFilter::SetKernelSigma ( double kSigma, double kGain ) {
|
||||
HRESULT _hr = raw_SetKernelSigma(kSigma, kGain);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageFilter::Equalize ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Equalize(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageFilter::HighPass ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_HighPass(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageFilter::Gaussian ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Gaussian(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageFilter::LocalMedian ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_LocalMedian(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageFilter::LocalMedianNorm ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_LocalMedianNorm(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageFilter::OpticalDensity ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_OpticalDensity(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageFilter::MeanFilter ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_MeanFilter(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline int ILImageFilter::GetKernelWidth ( ) {
|
||||
int _result = 0;
|
||||
HRESULT _hr = get_KernelWidth(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline int ILImageFilter::GetKernelHeight ( ) {
|
||||
int _result = 0;
|
||||
HRESULT _hr = get_KernelHeight(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageFilter::Sharpen ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Sharpen(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline double ILImageFilter::GetKernelSigma ( ) {
|
||||
double _result = 0;
|
||||
HRESULT _hr = get_KernelSigma(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline double ILImageFilter::GetKernelGain ( ) {
|
||||
double _result = 0;
|
||||
HRESULT _hr = get_KernelGain(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
//
|
||||
// interface ILImageMorph wrapper method implementations
|
||||
//
|
||||
|
||||
inline HRESULT ILImageMorph::SetMorphShape ( enum LPVMorphShape shape, int kWidth, int kHeight ) {
|
||||
HRESULT _hr = raw_SetMorphShape(shape, kWidth, kHeight);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageMorph::BottomHat ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_BottomHat(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageMorph::TopHat ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_TopHat(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageMorph::TopBottomHat ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_TopBottomHat(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageMorph::Close ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Close(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageMorph::Open ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Open(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageMorph::Dilate ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Dilate(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageMorph::Erode ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Erode(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageMorph::Gradient ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Gradient(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline enum LPVMorphShape ILImageMorph::GetMorphShape ( ) {
|
||||
enum LPVMorphShape _result;
|
||||
HRESULT _hr = get_MorphShape(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline int ILImageMorph::GetMorphWidth ( ) {
|
||||
int _result = 0;
|
||||
HRESULT _hr = get_MorphWidth(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline int ILImageMorph::GetMorphHeight ( ) {
|
||||
int _result = 0;
|
||||
HRESULT _hr = get_MorphHeight(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
//
|
||||
// interface ILEdgeFilter wrapper method implementations
|
||||
//
|
||||
|
||||
inline HRESULT ILEdgeFilter::SetEdgeKernel ( enum LPVEdgeKernel kType, int kWidth, int kHeight ) {
|
||||
HRESULT _hr = raw_SetEdgeKernel(kType, kWidth, kHeight);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILEdgeFilter::SetEdgePolarity ( enum LPVPolarity xPolarity, enum LPVPolarity yPolarity ) {
|
||||
HRESULT _hr = raw_SetEdgePolarity(xPolarity, yPolarity);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILEdgeFilter::GradientH ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_GradientH(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILEdgeFilter::GradientV ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_GradientV(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILEdgeFilter::GradientFull ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_GradientFull(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline enum LPVEdgeKernel ILEdgeFilter::GetKernelType ( ) {
|
||||
enum LPVEdgeKernel _result;
|
||||
HRESULT _hr = get_KernelType(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline int ILEdgeFilter::GetKernelWidth ( ) {
|
||||
int _result = 0;
|
||||
HRESULT _hr = get_KernelWidth(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline int ILEdgeFilter::GetKernelHeight ( ) {
|
||||
int _result = 0;
|
||||
HRESULT _hr = get_KernelHeight(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline enum LPVPolarity ILEdgeFilter::GetEdgePolarityX ( ) {
|
||||
enum LPVPolarity _result;
|
||||
HRESULT _hr = get_EdgePolarityX(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline enum LPVPolarity ILEdgeFilter::GetEdgePolarityY ( ) {
|
||||
enum LPVPolarity _result;
|
||||
HRESULT _hr = get_EdgePolarityY(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
//
|
||||
// interface ILImageArithm wrapper method implementations
|
||||
//
|
||||
|
||||
inline HRESULT ILImageArithm::Invert ( struct ILImage * img, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Invert(img, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageArithm::GainOffset ( struct ILImage * img, struct ILImage * result, double gain, double offset ) {
|
||||
HRESULT _hr = raw_GainOffset(img, result, gain, offset);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageArithm::Add ( struct ILImage * img1, struct ILImage * img2, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Add(img1, img2, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageArithm::AddWeighted ( struct ILImage * img1, struct ILImage * img2, double alpha, double beta, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_AddWeighted(img1, img2, alpha, beta, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageArithm::Sub ( struct ILImage * img1, struct ILImage * img2, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Sub(img1, img2, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageArithm::Multiply ( struct ILImage * img1, struct ILImage * img2, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Multiply(img1, img2, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageArithm::Divide ( struct ILImage * img1, struct ILImage * img2, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Divide(img1, img2, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageArithm::Diff ( struct ILImage * img1, struct ILImage * img2, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Diff(img1, img2, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageArithm::Min ( struct ILImage * img1, struct ILImage * img2, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Min(img1, img2, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageArithm::Max ( struct ILImage * img1, struct ILImage * img2, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Max(img1, img2, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageArithm::Pow ( struct ILImage * img, double power, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Pow(img, power, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageArithm::Log ( struct ILImage * img, double base, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Log(img, base, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageArithm::Flip ( struct ILImage * img, enum LPVFlipType flipType, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Flip(img, flipType, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageArithm::Rotate ( struct ILImage * img, double angle, enum LPVInterpolationMethod interMethod, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Rotate(img, angle, interMethod, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageArithm::Resize ( struct ILImage * img, double zoomX, double zoomY, enum LPVInterpolationMethod interMethod, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Resize(img, zoomX, zoomY, interMethod, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageArithm::ResizeTo ( struct ILImage * img, int w, int h, enum LPVInterpolationMethod interMethod, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_ResizeTo(img, w, h, interMethod, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageArithm::ScaleRotate ( struct ILImage * img, double angle, double zoomX, double zoomY, double pivotImgX, double pivotImgY, double pivotResultX, double pivotResultY, enum LPVInterpolationMethod interMethod, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_ScaleRotate(img, angle, zoomX, zoomY, pivotImgX, pivotImgY, pivotResultX, pivotResultY, interMethod, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageArithm::Transform ( struct ILImage * img, struct ILTransform * tf, enum LPVInterpolationMethod interMethod, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Transform(img, tf, interMethod, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageArithm::Blend ( struct ILImageList * imgList, enum LPVAggregation aggType, struct ILImage * result ) {
|
||||
HRESULT _hr = raw_Blend(imgList, aggType, result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline SAFEARRAY * ILImageArithm::ProjectX ( struct ILImage * img, enum LPVAggregation aggType ) {
|
||||
SAFEARRAY * _result = 0;
|
||||
HRESULT _hr = raw_ProjectX(img, aggType, &_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline SAFEARRAY * ILImageArithm::ProjectY ( struct ILImage * img, enum LPVAggregation aggType ) {
|
||||
SAFEARRAY * _result = 0;
|
||||
HRESULT _hr = raw_ProjectY(img, aggType, &_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline double ILImageArithm::GetResultGain ( ) {
|
||||
double _result = 0;
|
||||
HRESULT _hr = get_ResultGain(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline void ILImageArithm::PutResultGain ( double val ) {
|
||||
HRESULT _hr = put_ResultGain(val);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
}
|
||||
|
||||
inline double ILImageArithm::GetResultOffset ( ) {
|
||||
double _result = 0;
|
||||
HRESULT _hr = get_ResultOffset(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline void ILImageArithm::PutResultOffset ( double val ) {
|
||||
HRESULT _hr = put_ResultOffset(val);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
}
|
||||
|
||||
//
|
||||
// interface ILHistogram wrapper method implementations
|
||||
//
|
||||
|
||||
inline HRESULT ILHistogram::Reset ( ) {
|
||||
HRESULT _hr = raw_Reset();
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILHistogram::Build ( struct ILImage * img, struct ILRegion * region, int binCount, int lowerBound, int upperBound ) {
|
||||
HRESULT _hr = raw_Build(img, region, binCount, lowerBound, upperBound);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline double ILHistogram::Item ( int index ) {
|
||||
double _result = 0;
|
||||
HRESULT _hr = raw_Item(index, &_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline HRESULT ILHistogram::MinMax ( int * minIdx, double * minValue, int * maxIdx, double * maxValue ) {
|
||||
HRESULT _hr = raw_MinMax(minIdx, minValue, maxIdx, maxValue);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILHistogram::MeanStdDev ( double * meanValue, double * stdDevValue ) {
|
||||
HRESULT _hr = raw_MeanStdDev(meanValue, stdDevValue);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILHistogram::Draw ( void * hdc, enum LPVChartDrawFlags drawFlags, int xGridStep, int yGridStep ) {
|
||||
HRESULT _hr = raw_Draw(hdc, drawFlags, xGridStep, yGridStep);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILHistogram::BuildFromDataVec ( SAFEARRAY * dataVec, int binCount, double lowerBound, double upperBound ) {
|
||||
HRESULT _hr = raw_BuildFromDataVec(dataVec, binCount, lowerBound, upperBound);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
//
|
||||
// interface ILImageStats wrapper method implementations
|
||||
//
|
||||
|
||||
inline HRESULT ILImageStats::Min ( struct ILImage * img, struct ILRegion * region, int * value, int * posX, int * posY ) {
|
||||
HRESULT _hr = raw_Min(img, region, value, posX, posY);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageStats::Max ( struct ILImage * img, struct ILRegion * region, int * value, int * posX, int * posY ) {
|
||||
HRESULT _hr = raw_Max(img, region, value, posX, posY);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageStats::MeanStdDev ( struct ILImage * img, struct ILRegion * region, double * meanValue, double * stdDevValue ) {
|
||||
HRESULT _hr = raw_MeanStdDev(img, region, meanValue, stdDevValue);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageStats::CountPixel ( struct ILImage * img, struct ILRegion * region, int lb, int ub, int * belowCount, int * betweenCount, int * aboveCount ) {
|
||||
HRESULT _hr = raw_CountPixel(img, region, lb, ub, belowCount, betweenCount, aboveCount);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageStats::CountPixelColor ( struct ILImage * img, struct ILRegion * region, struct LColor lb, struct LColor ub, int * betweenCount, int * outsideCount ) {
|
||||
HRESULT _hr = raw_CountPixelColor(img, region, lb, ub, betweenCount, outsideCount);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline double ILImageStats::Sharpness ( struct ILImage * img, struct ILRegion * region ) {
|
||||
double _result = 0;
|
||||
HRESULT _hr = raw_Sharpness(img, region, &_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
//
|
||||
// interface ILHDR wrapper method implementations
|
||||
//
|
||||
|
||||
inline HRESULT ILHDR::Reset ( ) {
|
||||
HRESULT _hr = raw_Reset();
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline enum LPVErrorCode ILHDR::BuildCRF ( struct ILImageList * imgList, SAFEARRAY * exposureTimes ) {
|
||||
enum LPVErrorCode _result;
|
||||
HRESULT _hr = raw_BuildCRF(imgList, exposureTimes, &_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline HRESULT ILHDR::ToneMapping ( struct ILImageList * imgList, struct ILImage * result, double gamma, double contrastEnhance, double saturationEnhance ) {
|
||||
HRESULT _hr = raw_ToneMapping(imgList, result, gamma, contrastEnhance, saturationEnhance);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline HRESULT ILHDR::ExposureFusion ( struct ILImageList * imgList, struct ILImage * result, double contrastWeight, double saturationWeight, double exposureWeight ) {
|
||||
HRESULT _hr = raw_ExposureFusion(imgList, result, contrastWeight, saturationWeight, exposureWeight);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
//
|
||||
// interface ILImageConvert wrapper method implementations
|
||||
//
|
||||
|
||||
inline HRESULT ILImageConvert::BGRToGray ( struct ILImage * bgrImg, struct ILImage * grayImg ) {
|
||||
HRESULT _hr = raw_BGRToGray(bgrImg, grayImg);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline int ILImageConvert::BGRToGrayColor ( struct LColor bgrColor ) {
|
||||
int _result = 0;
|
||||
HRESULT _hr = raw_BGRToGrayColor(bgrColor, &_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageConvert::GrayToBGR ( struct ILImage * grayImg, struct ILImage * bgrImg ) {
|
||||
HRESULT _hr = raw_GrayToBGR(grayImg, bgrImg);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline struct LColor ILImageConvert::GrayToBGRColor ( int grayColor ) {
|
||||
struct LColor _result;
|
||||
HRESULT _hr = raw_GrayToBGRColor(grayColor, &_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageConvert::Convert ( enum LPVColorSpace fromColorSpace, enum LPVColorSpace toColorSpace, struct ILImage * srcColorImg, struct ILImage * dstColorImg ) {
|
||||
HRESULT _hr = raw_Convert(fromColorSpace, toColorSpace, srcColorImg, dstColorImg);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline struct LColor ILImageConvert::ConvertColor ( enum LPVColorSpace fromColorSpace, enum LPVColorSpace toColorSpace, struct LColor srcColor ) {
|
||||
struct LColor _result;
|
||||
HRESULT _hr = raw_ConvertColor(fromColorSpace, toColorSpace, srcColor, &_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline HRESULT ILImageConvert::BGRMix ( struct ILImage * bgrImg, double w0, double w1, double w2, struct ILImage * grayImg ) {
|
||||
HRESULT _hr = raw_BGRMix(bgrImg, w0, w1, w2, grayImg);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
//
|
||||
// interface ILBGSubtract wrapper method implementations
|
||||
//
|
||||
|
||||
inline HRESULT ILBGSubtract::Reset ( ) {
|
||||
HRESULT _hr = raw_Reset();
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _hr;
|
||||
}
|
||||
|
||||
inline int ILBGSubtract::GetHistoryMaxCount ( ) {
|
||||
int _result = 0;
|
||||
HRESULT _hr = get_HistoryMaxCount(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline void ILBGSubtract::PutHistoryMaxCount ( int val ) {
|
||||
HRESULT _hr = put_HistoryMaxCount(val);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
}
|
||||
|
||||
inline double ILBGSubtract::GetVarianceThreshold ( ) {
|
||||
double _result = 0;
|
||||
HRESULT _hr = get_VarianceThreshold(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline void ILBGSubtract::PutVarianceThreshold ( double val ) {
|
||||
HRESULT _hr = put_VarianceThreshold(val);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
}
|
||||
|
||||
inline double ILBGSubtract::GetGenerateThreshold ( ) {
|
||||
double _result = 0;
|
||||
HRESULT _hr = get_GenerateThreshold(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline void ILBGSubtract::PutGenerateThreshold ( double val ) {
|
||||
HRESULT _hr = put_GenerateThreshold(val);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
}
|
||||
|
||||
inline double ILBGSubtract::GetLearningRate ( ) {
|
||||
double _result = 0;
|
||||
HRESULT _hr = get_LearningRate(&_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline void ILBGSubtract::PutLearningRate ( double val ) {
|
||||
HRESULT _hr = put_LearningRate(val);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
}
|
||||
|
||||
inline enum LPVErrorCode ILBGSubtract::Apply ( struct ILImage * img, struct ILImage * fgMask, VARIANT_BOOL doUpdateBGModel ) {
|
||||
enum LPVErrorCode _result;
|
||||
HRESULT _hr = raw_Apply(img, fgMask, doUpdateBGModel, &_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
|
||||
inline enum LPVErrorCode ILBGSubtract::UpdateBGModel ( struct ILImage * img ) {
|
||||
enum LPVErrorCode _result;
|
||||
HRESULT _hr = raw_UpdateBGModel(img, &_result);
|
||||
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
|
||||
return _result;
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue