diff --git a/README.md b/README.md index 9a12c4f..33b5148 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,5 @@ Identify the types and quantities of smoke boxes -这是南京烟草版本,从屈帅龙那down过来,较之前版本修改地方: +这是基于南京烟草版本,把扫码器和传感器等功能做一个是否加载的选项: -1、通讯里添加其他报错时的重启(特别是网络波动造成的网络错误) - -2、LPV模板匹配,采集的模板很大,特征点很多,Learn和Match很慢(特别是后者),常引起延误,故而将大模板都缩小了50% \ No newline at end of file diff --git a/doc/~$软件说明文档.docx b/doc/~$软件说明文档.docx new file mode 100644 index 0000000..daada1c Binary files /dev/null and b/doc/~$软件说明文档.docx differ diff --git a/runner17/Release/config/module.json b/runner17/Release/config/module.json new file mode 100644 index 0000000..6d82758 --- /dev/null +++ b/runner17/Release/config/module.json @@ -0,0 +1,8 @@ +{ + "ModuleParam": { + "CodeScan": 0, + "Sensor": 0, + "Camera2D": 4, + "Camera3D": 1 + } +} diff --git a/runner17/Release/log/log-2024-01-03.log b/runner17/Release/log/log-2024-01-03.log new file mode 100644 index 0000000..dea8857 --- /dev/null +++ b/runner17/Release/log/log-2024-01-03.log @@ -0,0 +1,30 @@ +Debug | 2024-01-03 17:13:11 | Decode smokeInfo from "D:/Code/Logistics/smokeboxidentification/runner17/Release\\user\\smokeInfo.xlsx" successed +Debug | 2024-01-03 17:13:11 | "D:/Code/Logistics/smokeboxidentification/runner17/Release\\templateNum" has not folder +Warning | 2024-01-03 17:13:11 | SerialNumber: "00J50359922" init failed +Warning | 2024-01-03 17:13:11 | QObject::moveToThread: Cannot move objects with a parent +Warning | 2024-01-03 17:13:12 | SerialNumber: "00J50359927" init failed +Warning | 2024-01-03 17:13:12 | SerialNumber: "00J50359938" init failed +Warning | 2024-01-03 17:13:12 | SerialNumber: "00J50359923" init failed +Warning | 2024-01-03 17:13:12 | SerialNumber: "00J50359918" init failed +Warning | 2024-01-03 17:13:13 | SerialNumber: "00J50359945" init failed +Debug | 2024-01-03 17:13:13 | m_vecPCamera size: 0 +Debug | 2024-01-03 17:13:13 | init CategoryMatcher successed +Debug | 2024-01-03 17:13:14 | delete netControl +Debug | 2024-01-03 17:13:14 | delete netControl finished +Debug | 2024-01-03 17:16:05 | Decode smokeInfo from "D:/Code/Logistics/smokeboxidentification/runner17/Release\\user\\smokeInfo.xlsx" successed +Debug | 2024-01-03 17:16:05 | "D:/Code/Logistics/smokeboxidentification/runner17/Release\\templateNum" has not folder +Warning | 2024-01-03 17:16:05 | SerialNumber: "00J50359922" init failed +Warning | 2024-01-03 17:16:06 | QObject::moveToThread: Cannot move objects with a parent +Debug | 2024-01-03 17:16:06 | Sensor +Debug | 2024-01-03 17:16:06 | CodeScan +Debug | 2024-01-03 17:16:06 | connect yidadui +Warning | 2024-01-03 17:16:06 | SerialNumber: "00J50359927" init failed +Warning | 2024-01-03 17:16:06 | SerialNumber: "00J50359938" init failed +Warning | 2024-01-03 17:16:06 | SerialNumber: "00J50359923" init failed +Warning | 2024-01-03 17:16:06 | SerialNumber: "00J50359918" init failed +Warning | 2024-01-03 17:16:07 | SerialNumber: "00J50359945" init failed +Debug | 2024-01-03 17:16:07 | m_vecPCamera size: 0 +Debug | 2024-01-03 17:16:07 | init CategoryMatcher successed +Debug | 2024-01-03 17:16:07 | over +Debug | 2024-01-03 17:16:09 | delete netControl +Debug | 2024-01-03 17:16:09 | delete netControl finished diff --git a/runner17/Release/smokeBox.exe b/runner17/Release/smokeBox.exe index 88dc012..0b3dad1 100644 Binary files a/runner17/Release/smokeBox.exe and b/runner17/Release/smokeBox.exe differ diff --git a/src/QModuleChoice.cpp b/src/QModuleChoice.cpp new file mode 100644 index 0000000..44e7247 --- /dev/null +++ b/src/QModuleChoice.cpp @@ -0,0 +1,13 @@ +#include "QModuleChoice.h" + +QModuleChoice::QModuleChoice(QWidget *parent) + : QWidget(parent) + , ui(new Ui::QModuleChoiceClass()) +{ + ui->setupUi(this); +} + +QModuleChoice::~QModuleChoice() +{ + delete ui; +} diff --git a/src/QModuleChoice.h b/src/QModuleChoice.h new file mode 100644 index 0000000..866b501 --- /dev/null +++ b/src/QModuleChoice.h @@ -0,0 +1,20 @@ +#pragma once + +#include +#include "ui_QModuleChoice.h" + +QT_BEGIN_NAMESPACE +namespace Ui { class QModuleChoiceClass; }; +QT_END_NAMESPACE + +class QModuleChoice : public QWidget +{ + Q_OBJECT + +public: + QModuleChoice(QWidget *parent = nullptr); + ~QModuleChoice(); + +private: + Ui::QModuleChoiceClass *ui; +}; diff --git a/src/SmokeBoxIdentification.cpp b/src/SmokeBoxIdentification.cpp index 81fcc73..4a09a00 100644 --- a/src/SmokeBoxIdentification.cpp +++ b/src/SmokeBoxIdentification.cpp @@ -10,6 +10,8 @@ SmokeBoxIdentification::SmokeBoxIdentification(QWidget *parent) ui.setupUi(this); this->setWindowTitle(tr("ϵͳ")); //m_pShowRltImgLabel = ui.label_showImg; + + moduleLoading(); connect(this, &SmokeBoxIdentification::sgCapture, CameraControl::instance(), &CameraControl::onCapture); connect(CameraControl::instance(), &CameraControl::sgCapturedImage, this, &SmokeBoxIdentification::onCapturedImage); @@ -47,12 +49,22 @@ SmokeBoxIdentification::SmokeBoxIdentification(QWidget *parent) m_pTcpClientThread->start(); connect(m_pNetControl, &NetControl::sgReceiveData, this, &SmokeBoxIdentification::onDecodeMsg, Qt::QueuedConnection); connect(this, &SmokeBoxIdentification::sgSendMsg, m_pNetControl, &NetControl::onSendMsg, Qt::QueuedConnection); - ADModule::instance()->loadParameters(filePath); - filePath = applicationDirPath + COM_CONFIG; - lpSerialStation::instance()->loadParameters(filePath); - CodeScanStation::instance()->loadParameters(filePath); - lpSerialStation::instance()->openComs(); - CodeScanStation::instance()->openComs(); + + if (m_moduleParam.Sensor != 0) + { + ADModule::instance()->loadParameters(filePath); + filePath = applicationDirPath + COM_CONFIG; + lpSerialStation::instance()->loadParameters(filePath); + lpSerialStation::instance()->openComs(); + } + + if (m_moduleParam.CodeScan != 0) + { + QString codeFilePath = applicationDirPath + COM_CONFIG; + CodeScanStation::instance()->loadParameters(filePath); + CodeScanStation::instance()->openComs(); + } + m_pCategoryMatcher = new CategoryMatcher(); connect(CodeScanStation::instance(), &CodeScanStation::sgNewCodeScanData, lpSerialStation::instance() , &lpSerialStation::onNewCodeScanResults); @@ -590,6 +602,7 @@ bool SmokeBoxIdentification::matchSmokeNameAndTemplateFolderName(const QString& return true; } + Q_SLOT void SmokeBoxIdentification::onSendEmptyCheckResults(const QMap& mapEmptyCheckResults) { QString emptyAll; @@ -665,4 +678,81 @@ void SmokeBoxIdentification::saveData2File(const QVector& strVec, QStri savefile(filePath, vec); qDebug() << "save " << strSide << " data to txt successfully"; } +} + + +void SmokeBoxIdentification::moduleLoading() +{ + QString fileMyself = QCoreApplication::applicationDirPath() + MODULE_CONFIG; + QFile file(fileMyself); + if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) + { + qWarning() << "ļʧܣ"; + return; + } + QByteArray arr = file.readAll(); + file.close(); + if (arr.isEmpty()) + { + qWarning() << "Ϊ"; + return; + } + + QJsonParseError err; + QJsonDocument doc = QJsonDocument::fromJson(arr, &err); + if (doc.isEmpty()) + { + qWarning() << err.errorString(); //ӡʧϢ + return; + } + + QJsonObject jsMyself = doc.object(); + QJsonObject ModuleParamObj = jsMyself.value("ModuleParam").toObject(); + if (!ModuleParamObj.isEmpty()) { + m_moduleParam.CodeScan = ModuleParamObj.value("CodeScan").toInt(); + m_moduleParam.Sensor = ModuleParamObj.value("Sensor").toInt(); + m_moduleParam.Camera2D = ModuleParamObj.value("Camera2D").toInt(); + m_moduleParam.Camera3D = ModuleParamObj.value("Camera3D").toInt(); + } + + //// ıļԶȡģʽ + //QFile file(strName); + //if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) + //{ + // qDebug() << "Could not open file for reading."; + // QMessageBox::information(NULL, QStringLiteral("ļ"), QStringLiteral("ʧܣ"), QMessageBox::Ok); + // return; + //} + + //// QTextStream 󣬲ļ + //QTextStream in(&file); + + //int row = 0; + + //// ȡ + //while (!in.atEnd()) + //{ + // ++row; + // // ıжȡһ + // QString line = in.readLine(); + + // // ʹtabַָΪ + // QStringList values = line.split(' '); + + // if (row <= 3) + // { + // pts[(Axis)values[0].toInt()].first = values[1].toDouble(); + // pts[(Axis)values[0].toInt()].second = values[2].toDouble(); + // } + // else + // { + // m_basicPlane.A = values[0].toDouble(); + // m_basicPlane.B = values[1].toDouble(); + // m_basicPlane.C = values[2].toDouble(); + // m_basicPlane.D = values[3].toDouble(); + // } + //} + + //// رļ + //file.close(); } \ No newline at end of file diff --git a/src/SmokeBoxIdentification.h b/src/SmokeBoxIdentification.h index 4f11fde..2d46299 100644 --- a/src/SmokeBoxIdentification.h +++ b/src/SmokeBoxIdentification.h @@ -97,6 +97,23 @@ struct StockCheckInfo //} }; + + +struct ModuleParam +{ + int CodeScan; // ɨ0Ϊװɨ + int Sensor; // 0Ϊװ + int Camera2D; // 2D + int Camera3D; // 3D + ModuleParam() + { + CodeScan = 1; + Sensor = 1; + Camera2D = 2; + Camera3D = 2; + } +}; + class SmokeBoxIdentification : public QMainWindow { Q_OBJECT @@ -146,6 +163,11 @@ private: bool m_bDataCollection{ false }; //bool m_bCamerasInit{ false }; + + void moduleLoading(); + + ModuleParam m_moduleParam; + QMap m_mapSmokeCode2Name; QMap m_mapSmokeName2TemplateFolderName; diff --git a/src/common/commonDefine.h b/src/common/commonDefine.h index 5ced40b..44bb540 100644 --- a/src/common/commonDefine.h +++ b/src/common/commonDefine.h @@ -15,10 +15,12 @@ #define DELETE_POINTER(p) if (p) {delete p; p = NULL;} +#define MODULE_CONFIG "\\config\\module.json" #define CAMERA_CONFIG "\\config\\camera.json" #define NET_CONFIG "\\config\\netSetting.json" #define COM_CONFIG "\\config\\comSetting.json" #define MATCHER_CONFIG "\\config\\match.json" + #define SMOKEINFO_XLSX_CONFIG "\\user\\smokeInfo.xlsx" #define FILE_STORAGE_PATH ".\\fileData" #define INTOSTOCK_IMAGE_FOLDER "intoStock" diff --git a/tpvs17/SmokeBoxIdentification/GeneratedFiles/ui_SmokeBoxIdentification.h b/tpvs17/SmokeBoxIdentification/GeneratedFiles/ui_SmokeBoxIdentification.h index 9ef34bc..0ccb0ab 100644 --- a/tpvs17/SmokeBoxIdentification/GeneratedFiles/ui_SmokeBoxIdentification.h +++ b/tpvs17/SmokeBoxIdentification/GeneratedFiles/ui_SmokeBoxIdentification.h @@ -44,7 +44,7 @@ public: SmokeBoxIdentificationClass->setCentralWidget(centralWidget); menuBar = new QMenuBar(SmokeBoxIdentificationClass); menuBar->setObjectName(QStringLiteral("menuBar")); - menuBar->setGeometry(QRect(0, 0, 735, 34)); + menuBar->setGeometry(QRect(0, 0, 735, 23)); SmokeBoxIdentificationClass->setMenuBar(menuBar); mainToolBar = new QToolBar(SmokeBoxIdentificationClass); mainToolBar->setObjectName(QStringLiteral("mainToolBar")); @@ -54,6 +54,7 @@ public: SmokeBoxIdentificationClass->setStatusBar(statusBar); mainToolBar->addAction(action_templateNum); + mainToolBar->addSeparator(); retranslateUi(SmokeBoxIdentificationClass); diff --git a/tpvs17/SmokeBoxIdentification/QModuleChoice.ui b/tpvs17/SmokeBoxIdentification/QModuleChoice.ui new file mode 100644 index 0000000..40231d5 --- /dev/null +++ b/tpvs17/SmokeBoxIdentification/QModuleChoice.ui @@ -0,0 +1,50 @@ + + + QModuleChoiceClass + + + + 0 + 0 + 190 + 111 + + + + QModuleChoice + + + + + + 扫码器 + + + + + + + 传感器 + + + + + + + 请选择应用的模块: + + + + + + + 确定 + + + + + + + + + diff --git a/tpvs17/SmokeBoxIdentification/SmokeBoxIdentification.ui b/tpvs17/SmokeBoxIdentification/SmokeBoxIdentification.ui index 99dd599..7062264 100644 --- a/tpvs17/SmokeBoxIdentification/SmokeBoxIdentification.ui +++ b/tpvs17/SmokeBoxIdentification/SmokeBoxIdentification.ui @@ -26,7 +26,7 @@ 0 0 735 - 34 + 23 @@ -38,6 +38,7 @@ false + diff --git a/tpvs17/SmokeBoxIdentification/log/log-2023-12-28.log b/tpvs17/SmokeBoxIdentification/log/log-2023-12-28.log deleted file mode 100644 index 17b6083..0000000 --- a/tpvs17/SmokeBoxIdentification/log/log-2023-12-28.log +++ /dev/null @@ -1,27 +0,0 @@ -Debug | 2023-12-28 14:10:32 | Decode smokeInfo from "D:/Code/Logistics/smokeboxidentification/tpvs17/../runner17/Release\\user\\smokeInfo.xlsx" successed -Warning | 2023-12-28 14:10:32 | "D:/Code/Logistics/smokeboxidentification/tpvs17/../runner17/Release\\templateNum" is not exist -Warning | 2023-12-28 14:10:32 | Do not found any device! -Warning | 2023-12-28 14:10:32 | SerialNumber: "00J50359922" init failed -Warning | 2023-12-28 14:10:32 | Do not found any device! -Warning | 2023-12-28 14:10:32 | SerialNumber: "00J50359927" init failed -Warning | 2023-12-28 14:10:32 | Do not found any device! -Warning | 2023-12-28 14:10:32 | SerialNumber: "00J50359938" init failed -Warning | 2023-12-28 14:10:32 | Do not found any device! -Warning | 2023-12-28 14:10:32 | SerialNumber: "00J50359923" init failed -Warning | 2023-12-28 14:10:32 | Do not found any device! -Warning | 2023-12-28 14:10:32 | SerialNumber: "00J50359918" init failed -Warning | 2023-12-28 14:10:32 | QObject::moveToThread: Cannot move objects with a parent -Debug | 2023-12-28 14:10:32 | ADModule load param successed -Debug | 2023-12-28 14:10:32 | SensorsCom load param successed -Debug | 2023-12-28 14:10:32 | Code scan load param successed -Debug | 2023-12-28 14:10:32 | open "COM8" fail. -Debug | 2023-12-28 14:10:32 | open "COM8" fail. -Debug | 2023-12-28 14:10:32 | open "COM1" fail. -Debug | 2023-12-28 14:10:32 | open "COM7" fail. -Debug | 2023-12-28 14:10:32 | "COM7 not found! open failed." -Warning | 2023-12-28 14:10:33 | Do not found any device! -Warning | 2023-12-28 14:10:33 | SerialNumber: "00J50359945" init failed -Debug | 2023-12-28 14:10:33 | m_vecPCamera size: 0 -Debug | 2023-12-28 14:10:36 | init CategoryMatcher successed -Debug | 2023-12-28 14:10:39 | delete netControl -Debug | 2023-12-28 14:10:39 | delete netControl finished diff --git a/tpvs17/SmokeBoxIdentification/log/log-2024-01-03.log b/tpvs17/SmokeBoxIdentification/log/log-2024-01-03.log new file mode 100644 index 0000000..e8508d2 --- /dev/null +++ b/tpvs17/SmokeBoxIdentification/log/log-2024-01-03.log @@ -0,0 +1,17 @@ +Debug | 2024-01-03 17:17:31 | Decode smokeInfo from "D:/Code/Logistics/smokeboxidentification/tpvs17/../runner17/Release\\user\\smokeInfo.xlsx" successed +Debug | 2024-01-03 17:17:31 | "D:/Code/Logistics/smokeboxidentification/tpvs17/../runner17/Release\\templateNum" has not folder +Warning | 2024-01-03 17:17:31 | SerialNumber: "00J50359922" init failed +Warning | 2024-01-03 17:17:32 | QObject::moveToThread: Cannot move objects with a parent +Debug | 2024-01-03 17:17:32 | Sensor +Debug | 2024-01-03 17:17:32 | CodeScan +Debug | 2024-01-03 17:17:32 | connect yidadui +Warning | 2024-01-03 17:17:32 | SerialNumber: "00J50359927" init failed +Warning | 2024-01-03 17:17:32 | SerialNumber: "00J50359938" init failed +Warning | 2024-01-03 17:17:32 | SerialNumber: "00J50359923" init failed +Warning | 2024-01-03 17:17:32 | SerialNumber: "00J50359918" init failed +Warning | 2024-01-03 17:17:32 | SerialNumber: "00J50359945" init failed +Debug | 2024-01-03 17:17:32 | m_vecPCamera size: 0 +Debug | 2024-01-03 17:17:33 | init CategoryMatcher successed +Debug | 2024-01-03 17:17:33 | over +Debug | 2024-01-03 17:17:34 | delete netControl +Debug | 2024-01-03 17:17:34 | delete netControl finished diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/ADModule.obj b/tpvs17/SmokeBoxIdentification/x64/Release/ADModule.obj deleted file mode 100644 index 2108603..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/ADModule.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/CameraControl.obj b/tpvs17/SmokeBoxIdentification/x64/Release/CameraControl.obj deleted file mode 100644 index 3af715d..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/CameraControl.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/CategoryMatcher.obj b/tpvs17/SmokeBoxIdentification/x64/Release/CategoryMatcher.obj deleted file mode 100644 index 7039b2e..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/CategoryMatcher.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/CodeScanStation.obj b/tpvs17/SmokeBoxIdentification/x64/Release/CodeScanStation.obj deleted file mode 100644 index 27c51fd..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/CodeScanStation.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/HikCamera.obj b/tpvs17/SmokeBoxIdentification/x64/Release/HikCamera.obj deleted file mode 100644 index 2f8b057..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/HikCamera.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/NetControl.obj b/tpvs17/SmokeBoxIdentification/x64/Release/NetControl.obj deleted file mode 100644 index 8d848aa..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/NetControl.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/QNumTemplateBuild.obj b/tpvs17/SmokeBoxIdentification/x64/Release/QNumTemplateBuild.obj deleted file mode 100644 index 7980f1e..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/QNumTemplateBuild.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/CL.command.1.tlog b/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/CL.command.1.tlog deleted file mode 100644 index bc20306..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/CL.command.1.tlog and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/CL.read.1.tlog b/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/CL.read.1.tlog deleted file mode 100644 index d19aa8b..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/CL.read.1.tlog and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/CL.write.1.tlog b/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/CL.write.1.tlog deleted file mode 100644 index 4abba46..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/CL.write.1.tlog and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/SmokeBoxIdentification.lastbuildstate b/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/SmokeBoxIdentification.lastbuildstate deleted file mode 100644 index 3cc01b2..0000000 --- a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/SmokeBoxIdentification.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -#TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.17763.0 -Release|x64|D:\Code\Logistics\smokeboxidentification\tpvs17\| diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/SmokeBoxIdentification.write.1u.tlog b/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/SmokeBoxIdentification.write.1u.tlog deleted file mode 100644 index fc8ee45..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/SmokeBoxIdentification.write.1u.tlog and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/link.command.1.tlog b/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/link.command.1.tlog deleted file mode 100644 index b71078c..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/link.command.1.tlog and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/link.read.1.tlog b/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/link.read.1.tlog deleted file mode 100644 index 2cb2a20..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/link.read.1.tlog and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/link.write.1.tlog b/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/link.write.1.tlog deleted file mode 100644 index a84f7b3..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/link.write.1.tlog and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/moc.read.1u.tlog b/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/moc.read.1u.tlog deleted file mode 100644 index 394e4bb..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/moc.read.1u.tlog and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/moc.write.1u.tlog b/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/moc.write.1u.tlog deleted file mode 100644 index 3df6c9a..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/moc.write.1u.tlog and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/rcc.read.1u.tlog b/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/rcc.read.1u.tlog deleted file mode 100644 index dbefd2d..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/rcc.read.1u.tlog and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/rcc.write.1u.tlog b/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/rcc.write.1u.tlog deleted file mode 100644 index 3ea4755..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/rcc.write.1u.tlog and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/uic.read.1u.tlog b/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/uic.read.1u.tlog deleted file mode 100644 index 6d16a2d..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/uic.read.1u.tlog and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/uic.write.1u.tlog b/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/uic.write.1u.tlog deleted file mode 100644 index 47259d2..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBox.B12702AD.tlog/uic.write.1u.tlog and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBoxIdentification.log b/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBoxIdentification.log deleted file mode 100644 index a8d19e2..0000000 --- a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBoxIdentification.log +++ /dev/null @@ -1,44 +0,0 @@ - ADModule.cpp -d:\code\logistics\smokeboxidentification\src\numstatisticalgo\datapreprocessing.h(17): warning C4005: “TYPE_TEMPLATE_PATH”: 宏重定义 - d:\code\logistics\smokeboxidentification\src\common\commondefine.h(25): note: 参见“TYPE_TEMPLATE_PATH”的前一个定义 - CameraControl.cpp - CategoryMatcher.cpp - CodeScanStation.cpp - log.cpp - HikCamera.cpp - lpSerialStation.cpp - main.cpp -d:\code\logistics\smokeboxidentification\src\numstatisticalgo\datapreprocessing.h(17): warning C4005: “TYPE_TEMPLATE_PATH”: 宏重定义 - d:\code\logistics\smokeboxidentification\src\common\commondefine.h(25): note: 参见“TYPE_TEMPLATE_PATH”的前一个定义 - NetControl.cpp - QNumTemplateBuild.cpp -d:\code\logistics\smokeboxidentification\src\common\commondefine.h(25): warning C4005: “TYPE_TEMPLATE_PATH”: 宏重定义 - d:\code\logistics\smokeboxidentification\src\numstatisticalgo\datapreprocessing.h(17): note: 参见“TYPE_TEMPLATE_PATH”的前一个定义 - SmokeBoxIdentification.cpp -d:\code\logistics\smokeboxidentification\src\numstatisticalgo\datapreprocessing.h(17): warning C4005: “TYPE_TEMPLATE_PATH”: 宏重定义 - d:\code\logistics\smokeboxidentification\src\common\commondefine.h(25): note: 参见“TYPE_TEMPLATE_PATH”的前一个定义 - 正在生成代码... -d:\code\logistics\smokeboxidentification\src\smokeboxidentification.cpp(655): warning C4715: “::operator()”: 不是所有的控件路径都返回值 - qrc_SmokeBoxIdentification.cpp - moc_ADModule.cpp -d:\code\logistics\smokeboxidentification\src\numstatisticalgo\datapreprocessing.h(17): warning C4005: “TYPE_TEMPLATE_PATH”: 宏重定义 - d:\code\logistics\smokeboxidentification\src\common\commondefine.h(25): note: 参见“TYPE_TEMPLATE_PATH”的前一个定义 - moc_Camera.cpp - moc_CameraControl.cpp - moc_CategoryMatcher.cpp - moc_CodeScanStation.cpp - moc_QNumTemplateBuild.cpp -d:\code\logistics\smokeboxidentification\src\common\commondefine.h(25): warning C4005: “TYPE_TEMPLATE_PATH”: 宏重定义 - d:\code\logistics\smokeboxidentification\src\numstatisticalgo\datapreprocessing.h(17): note: 参见“TYPE_TEMPLATE_PATH”的前一个定义 - moc_SmokeBoxIdentification.cpp -d:\code\logistics\smokeboxidentification\src\numstatisticalgo\datapreprocessing.h(17): warning C4005: “TYPE_TEMPLATE_PATH”: 宏重定义 - d:\code\logistics\smokeboxidentification\src\common\commondefine.h(25): note: 参见“TYPE_TEMPLATE_PATH”的前一个定义 - moc_NetControl.cpp - moc_lpSerialStation.cpp - moc_HikCamera.cpp - 正在生成代码... - numStatisticAlgo.lib(dataPreProcessing.obj) : 找到 MSIL .netmodule 或使用 /GL 编译的模块;正在使用 /LTCG 重新启动链接;将 /LTCG 添加到链接命令行以改进链接器性能 - 正在生成代码 -e:\code\smokeboxidentification\src\numstatisticalgo\datapreprocessing.cpp(947): warning C4715: “::operator()”: 不是所有的控件路径都返回值 - 已完成代码的生成 - SmokeBoxIdentification.vcxproj -> D:\Code\Logistics\smokeboxidentification\tpvs17\..\runner17\Release\smokeBox.exe diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBoxIdentification.obj b/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBoxIdentification.obj deleted file mode 100644 index ef4e98d..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/SmokeBoxIdentification.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/log.obj b/tpvs17/SmokeBoxIdentification/x64/Release/log.obj deleted file mode 100644 index 1bc3cbe..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/log.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/lpSerialStation.obj b/tpvs17/SmokeBoxIdentification/x64/Release/lpSerialStation.obj deleted file mode 100644 index 82ffeed..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/lpSerialStation.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/lpvCore.tlh b/tpvs17/SmokeBoxIdentification/x64/Release/lpvCore.tlh deleted file mode 100644 index 78094dc..0000000 --- a/tpvs17/SmokeBoxIdentification/x64/Release/lpvCore.tlh +++ /dev/null @@ -1,1929 +0,0 @@ -// Created by Microsoft (R) C/C++ Compiler Version 14.16.27051.0 (4b0afb50). -// -// d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvCore.tlh -// -// C++ source equivalent of Win32 type library c34b3e9e-6dea-4aa9-b500-0266f90dc15f -// compiler-generated file created 12/28/23 at 14:09:51 - DO NOT EDIT! - -#pragma once -#pragma pack(push, 8) - -#include - -// -// Forward references and typedefs -// - -struct __declspec(uuid("c34b3e9e-6dea-4aa9-b500-0266f90dc15f")) -/* LIBID */ __LPVCoreLib; -struct LMatrix23; -struct LMatrix33; -struct LMatrix44; -struct LColor; -struct LSize; -enum LPVErrorCode; -enum LPVRoiHandle; -enum LPVTransformType; -enum LPVAggregation; -enum LPVPenStyle; -enum LPVPointShape; -enum LPVPolarity; -enum LPVExcludeBoundaryMode; -enum LPVSortBy; -enum LPVSortOrder; -enum LPVPositionMode; -enum LPVFindBy; -enum LPVChartDrawFlags; -enum LPVInterpolationMethod; -enum LPVThresholdType; -enum LPVMorphShape; -enum LPVEdgeKernel; -enum LPVFlipType; -enum LPVColor; -enum LPVImageFormat; -enum LPVColorSpace; -enum LPVDirection; -enum LPVAxis; -struct __declspec(uuid("52f4d75c-6994-445f-9852-45ac4bf86c50")) -/* interface */ ILDrawable; -struct __declspec(uuid("ded7e160-36bd-4fe3-8d98-72bddc93b83d")) -/* interface */ ILSortables; -struct __declspec(uuid("d56cf377-498f-4b5c-8913-6d77f2dd8a29")) -/* interface */ ILSortable; -struct __declspec(uuid("50cc1928-457b-4ce6-bfdf-1a9b47022a31")) -/* dual interface */ ILObject; -struct __declspec(uuid("ec419121-252e-4173-ad0d-2d3d69986af3")) -/* dual interface */ ILSystem; -struct __declspec(uuid("445d309e-0929-4b12-84a5-461e353d2bea")) -/* dual interface */ ILImage; -struct __declspec(uuid("edc919ed-2f22-48c3-b059-37e20a7d9a59")) -/* dual interface */ ILRegion; -struct __declspec(uuid("aecb7fb8-d910-457e-9b47-2da967335bf7")) -/* dual interface */ ILRectRegion; -struct __declspec(uuid("605251ec-4957-4d85-a9a2-cd42f1e8b4b7")) -/* dual interface */ ILRotRectRegion; -struct __declspec(uuid("7c63e516-8af9-47ec-a35a-a32c194a783b")) -/* dual interface */ ILCircleRegion; -struct __declspec(uuid("8e869611-1478-4c52-8083-3b19d99e5fdb")) -/* dual interface */ ILPolyRegion; -struct __declspec(uuid("de41b0b3-1a33-4e7a-b38d-5cc098dff62b")) -/* dual interface */ ILMaskRegion; -struct __declspec(uuid("09161909-a8f9-4623-aa75-9e5398a5145b")) -/* dual interface */ ILAnnulusRegion; -struct __declspec(uuid("23207784-c0ae-4f89-89f4-0d4a07536f9e")) -/* dual interface */ ILEllipseRegion; -struct __declspec(uuid("69904f7a-3370-425d-984a-e1a21d19957c")) -/* dual interface */ ILAnnulusSectorRegion; -struct __declspec(uuid("1c052ea3-25c1-434a-8b1e-903803415814")) -/* dual interface */ ILImageList; -struct /* coclass */ LSystem; -struct /* coclass */ LImage; -struct /* coclass */ LRegion; -struct /* coclass */ LRectRegion; -struct /* coclass */ LRotRectRegion; -struct /* coclass */ LCircleRegion; -struct /* coclass */ LPolyRegion; -struct /* coclass */ LMaskRegion; -struct /* coclass */ LAnnulusRegion; -struct /* coclass */ LEllipseRegion; -struct /* coclass */ LAnnulusSectorRegion; -struct /* coclass */ LImageList; - -// -// Smart pointer typedef declarations -// - -_COM_SMARTPTR_TYPEDEF(ILDrawable, __uuidof(ILDrawable)); -_COM_SMARTPTR_TYPEDEF(ILSortable, __uuidof(ILSortable)); -_COM_SMARTPTR_TYPEDEF(ILSortables, __uuidof(ILSortables)); -_COM_SMARTPTR_TYPEDEF(ILObject, __uuidof(ILObject)); -_COM_SMARTPTR_TYPEDEF(ILSystem, __uuidof(ILSystem)); -_COM_SMARTPTR_TYPEDEF(ILImage, __uuidof(ILImage)); -_COM_SMARTPTR_TYPEDEF(ILRegion, __uuidof(ILRegion)); -_COM_SMARTPTR_TYPEDEF(ILRectRegion, __uuidof(ILRectRegion)); -_COM_SMARTPTR_TYPEDEF(ILRotRectRegion, __uuidof(ILRotRectRegion)); -_COM_SMARTPTR_TYPEDEF(ILCircleRegion, __uuidof(ILCircleRegion)); -_COM_SMARTPTR_TYPEDEF(ILPolyRegion, __uuidof(ILPolyRegion)); -_COM_SMARTPTR_TYPEDEF(ILMaskRegion, __uuidof(ILMaskRegion)); -_COM_SMARTPTR_TYPEDEF(ILAnnulusRegion, __uuidof(ILAnnulusRegion)); -_COM_SMARTPTR_TYPEDEF(ILEllipseRegion, __uuidof(ILEllipseRegion)); -_COM_SMARTPTR_TYPEDEF(ILAnnulusSectorRegion, __uuidof(ILAnnulusSectorRegion)); -_COM_SMARTPTR_TYPEDEF(ILImageList, __uuidof(ILImageList)); - -// -// Type library items -// - const long LPVMajorVersion = 1; - const long LPVMinorVersion = 18; - const long LPVMicroVersion = 6; - -#pragma pack(push, 8) - -struct __declspec(uuid("c1659ce1-a14b-4432-981e-d30976aadd66")) -LMatrix23 -{ - double m11; - double m12; - double m13; - double m21; - double m22; - double m23; -}; - -#pragma pack(pop) - -#pragma pack(push, 8) - -struct __declspec(uuid("4b6781ef-6779-420d-80d9-732217d0fc66")) -LMatrix33 -{ - double m11; - double m12; - double m13; - double m21; - double m22; - double m23; - double m31; - double m32; - double m33; -}; - -#pragma pack(pop) - -#pragma pack(push, 8) - -struct __declspec(uuid("b5cf4cef-3c3e-46d1-b1a2-468136e3e0f7")) -LMatrix44 -{ - double m11; - double m12; - double m13; - double m14; - double m21; - double m22; - double m23; - double m24; - double m31; - double m32; - double m33; - double m34; - double m41; - double m42; - double m43; - double m44; -}; - -#pragma pack(pop) - -#pragma pack(push, 4) - -struct __declspec(uuid("9f4a8547-70f7-495a-9d95-3748997f3d4d")) -LColor -{ - int v0; - int v1; - int v2; -}; - -#pragma pack(pop) - -#pragma pack(push, 4) - -struct __declspec(uuid("a027182b-f8a8-4b0a-a48f-d8e34fd3d218")) -LSize -{ - int w; - int h; -}; - -#pragma pack(pop) - -enum LPVErrorCode -{ - LPVNoError = 0, - LPVNoResult = 1, - LPVErrUnknown = -2130706432, - LPVErrEmptyImage = -2130706431, - LPVErrEmptyRegion = -2130706430, - LPVErrSizeTooSmall = -2130706429, - LPVErrSizeNotMatch = -2130706428, - LPVErrTypeNotMatch = -2130706427, - LPVErrFile = -2130706176, - LPVErrFileUnsupportFormat = -2130706175, - LPVErrFileEmpty = -2130706174, - LPVErrFileFailEncode = -2130706173, - LPVErrFileFailDecode = -2130706172, - LPVErrFileFailOpen = -2130706171, - LPVErrFileUnexpect = -2130706170, - LPVErrFileFailSave = -2130706169, - LPVErrFileFailLoad = -2130706168, - LPVErrFileFailRemove = -2130706167, - LPVErrCalib = -2130705920, - LPVErrCalibTooFewPoints = -2130705919, - LPVErrCalibUnequalImageWorldPoints = -2130705918, - LPVErrCalibFailDetectImagePoints = -2130705917, - LPVErrCalibFailCalibration = -2130705916, - LPVErrCalibUnexpect = -2130705915, - LPVErrCalibNotCalib = -2130705914, - LPVErrCalibPointsCollinear = -2130705913, - LPVErrWithoutImgSize = -2130705912, - LPVErrInvalidAxisDir = -2130705911, - LPVErrFailMultiCameraCalibration = -2130705910, - LPVErrFailDetectRefInstance = -2130705909, - LPVErrFailUpdateRefInstance = -2130705908, - LPVErrFailVerifyRefInstance = -2130705907, - LPVErrFailImageSizeNotMatch = -2130705906, - LPVErrFailDistortionModelNotMatch = -2130705905, - LPVErrCalibRotationFailed = -2130705767, - LPVErrPat = -2130705664, - LPVErrPatFailTrain = -2130705663, - LPVErrPatNotTrain = -2130705662, - LPVErrGeomAdv = -2130705408, - LPVErrSortArrayFailed = -2130705407, - LPVErrML = -2130705152, - LPVErrMLSampleFailLoad = -2130705151, - LPVErrMLTooFewClass = -2130705150, - LPVErrMLNoModel = -2130705149, - LPVErrMLNoFeature = -2130705148, - LPVErrMLDirtyModel = -2130705147, - LPVErrMLNotTrained = -2130705146, - LPVErrMLTooFewSample = -2130705145, - LPVErrMLBusy = -2130705143, - LPVErrOCR = -2130704896, - LPVErrOCRNoFontDB = -2130704895, - LPVErrOCRNoCharDB = -2130704894, - LPVErrOCRModifyOOBFontDB = -2130704893, - LPVErrOCRFailAddSampleToFontDB = -2130704892, - LPVErrOCRFailRemoveFromFontDB = -2130704891, - LPVErrOCRFailTrainFontDB = -2130704890, - LPVErrOCRFailTrainTooFewChar = -2130704889, - LPVErrOCRFailTrainTooFewSample = -2130704888, - LPVErrOCRFailTrainFailExtFeature = -2130704887, - LPVErrOCRFailAddCharToFontDB = -2130704886 -}; - -enum LPVRoiHandle -{ - LPVRoiHandleUnknown = -1, - LPVRoiHandleNone = 0, - LPVRoiHandleInside = 16, - LPVRoiHandleTop = 1, - LPVRoiHandleBottom = 2, - LPVRoiHandleLeft = 4, - LPVRoiHandleRight = 8, - LPVRoiHandleTopLeft = 5, - LPVRoiHandleBottomLeft = 6, - LPVRoiHandleTopRight = 9, - LPVRoiHandleBottomRight = 10, - LPVRoiHandleRotation = 32, - LPVRoiHandleMoveVertex = 64, - LPVRoiHandleAddVertex = 128, - LPVRoiHandleRemoveVertex = 256, - LPVRoiHandleAnchor = 512 -}; - -enum LPVTransformType -{ - LPVTransformRigid = 0, - LPVTransformSimilar = 1, - LPVTransformAffine = 2, - LPVTransformHomography = 3 -}; - -enum LPVAggregation -{ - LPVAggAvg = 0, - LPVAggDev = 1, - LPVAggVar = 2, - LPVAggMin = 3, - LPVAggMax = 4, - LPVAggMajor = 5, - LPVAggSum = 6 -}; - -enum LPVPenStyle -{ - LPVPenSolid = 0, - LPVPenDash = 1, - LPVPenDot = 2, - LPVPenDashDot = 3, - LPVPenDashDotDot = 4 -}; - -enum LPVPointShape -{ - LPVPointShapeCross = 0, - LPVPointShapeTiltedCross = 1, - LPVPointShapeStar = 2, - LPVPointShapeDiamond = 3, - LPVPointShapeSquare = 4, - LPVPointShapeTriangle = 5, - LPVPointShapeTriangleInv = 6 -}; - -enum LPVPolarity -{ - LPVBlack2White = 0, - LPVWhite2Black = 1, - LPVPolarityEitherEdge = 2, - LPVBlackOnWhite = 3, - LPVWhiteOnBlack = 4, - LPVPolarityEitherObject = 5, - LPVPolarityEither = 6 -}; - -enum LPVExcludeBoundaryMode -{ - LPVEBModeNone = 0, - LPVEBModeEntire = 1, - LPVEBModePartial = 2 -}; - -enum LPVSortBy -{ - LPVSortByReserved = 0, - LPVSortByX = 1, - LPVSortByY = 2, - LPVSortByScore = 3, - LPVSortByColumn = 4, - LPVSortByRow = 5 -}; - -enum LPVSortOrder -{ - LPVSortOrderRandom = 1, - LPVSortOrderAscending = 2, - LPVSortOrderDescending = 3, - LPVSortOrderAscendingZigZag = 4, - LPVSortOrderDescendingZigZag = 5 -}; - -enum LPVPositionMode -{ - LPVPosModeCenter = 0, - LPVPosModeTopLeft = 1, - LPVPosModeTopRight = 2, - LPVPosModeBottomLeft = 3, - LPVPosModeBottomRight = 4 -}; - -enum LPVFindBy -{ - LPVFindBest = 0, - LPVFindFirst = 1, - LPVFindLast = 2, - LPVFindCentral = 3 -}; - -enum LPVChartDrawFlags -{ - LPVChartDrawAsBar = 1, - LPVChartDrawAsLine = 2, - LPVChartDrawGrid = 4, - LPVChartDrawIndexLabel = 8, - LPVChartDrawValueLabel = 16, - LPVChartDrawAsLineDefault = 26, - LPVChartDrawAsBarDefault = 25, - LPVChartDrawDefault = 25, - LPVChartDrawAll = 255 -}; - -enum LPVInterpolationMethod -{ - LPVInterNearest = 0, - LPVInterLinear = 1, - LPVInterCubic = 2, - LPVInterArea = 3 -}; - -enum LPVThresholdType -{ - LPVThresholdCustom = 0, - LPVThresholdAdaptGlobal = 1, - LPVThresholdAdaptLocal = 2 -}; - -enum LPVMorphShape -{ - LPVMorphRect = 0, - LPVMorphCross = 1, - LPVMorphEllipse = 2 -}; - -enum LPVEdgeKernel -{ - LPVSobel = 0, - LPVPrewitt = 1, - LPVScharr = 2 -}; - -enum LPVFlipType -{ - LPVFlipH = 1, - LPVFlipV = 2, - LPVFlipBoth = 3 -}; - -enum LPVColor -{ - LPVWhite = 16777215, - LPVBlack = 0, - LPVRed = 255, - LPVDarkRed = 128, - LPVGreen = 65280, - LPVDarkGreen = 32768, - LPVBlue = 16711680, - LPVDarkBlue = 8388608, - LPVCyan = 16776960, - LPVDarkCyan = 8421376, - LPVMagenta = 16711935, - LPVDarkMagenta = 8388736, - LPVYellow = 65535, - LPVDarkYellow = 32896, - LPVGray = 10789024, - LPVDarkGray = 8421504, - LPVLightGray = 12632256, - LPVTransparent = -1 -}; - -enum LPVImageFormat -{ - LPVImageFormatGrayscale8 = 0, - LPVImageFormatColor24 = 1 -}; - -enum LPVColorSpace -{ - LPVColorSpaceBGR = 0, - LPVColorSpaceHSV = 1, - LPVColorSpaceHLS = 2, - LPVColorSpaceYCrCb = 3, - LPVColorSpaceYUV = 4, - LPVColorSpaceXYZ = 5, - LPVColorSpaceLAB = 6, - LPVColorSpaceLUV = 7 -}; - -enum LPVDirection -{ - LPVDirLeft = 0, - LPVDirRight = 1, - LPVDirUp = 2, - LPVDirDown = 3 -}; - -enum LPVAxis -{ - LPVAxisX = 0, - LPVAxisY = 1, - LPVAxisZ = 2 -}; - -struct __declspec(uuid("52f4d75c-6994-445f-9852-45ac4bf86c50")) -ILDrawable : IUnknown -{ - // - // Wrapper methods for error-handling - // - - HRESULT SetPen ( - enum LPVPenStyle penStyle, - int penWidth, - unsigned long penColor ); - HRESULT SetPenColor ( - unsigned long penColor ); - HRESULT SetPenWidth ( - int penWidth ); - HRESULT SetPenStyle ( - enum LPVPenStyle penStyle ); - HRESULT SetBrushColor ( - unsigned long brushColor ); - HRESULT SetFont ( - _bstr_t fontFamily, - int fontHeight, - unsigned long fontColor, - VARIANT_BOOL bold, - VARIANT_BOOL italic, - VARIANT_BOOL underline, - VARIANT_BOOL strikeOut ); - HRESULT SetFontFamily ( - _bstr_t fontFamily ); - HRESULT SetFontHeight ( - int fontHeight ); - HRESULT SetFontColor ( - unsigned long fontColor ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_SetPen ( - /*[in]*/ enum LPVPenStyle penStyle, - /*[in]*/ int penWidth, - /*[in]*/ unsigned long penColor ) = 0; - virtual HRESULT __stdcall raw_SetPenColor ( - /*[in]*/ unsigned long penColor ) = 0; - virtual HRESULT __stdcall raw_SetPenWidth ( - /*[in]*/ int penWidth ) = 0; - virtual HRESULT __stdcall raw_SetPenStyle ( - /*[in]*/ enum LPVPenStyle penStyle ) = 0; - virtual HRESULT __stdcall raw_SetBrushColor ( - /*[in]*/ unsigned long brushColor ) = 0; - virtual HRESULT __stdcall raw_SetFont ( - /*[in]*/ BSTR fontFamily, - /*[in]*/ int fontHeight, - /*[in]*/ unsigned long fontColor, - /*[in]*/ VARIANT_BOOL bold, - /*[in]*/ VARIANT_BOOL italic, - /*[in]*/ VARIANT_BOOL underline, - /*[in]*/ VARIANT_BOOL strikeOut ) = 0; - virtual HRESULT __stdcall raw_SetFontFamily ( - /*[in]*/ BSTR fontFamily ) = 0; - virtual HRESULT __stdcall raw_SetFontHeight ( - /*[in]*/ int fontHeight ) = 0; - virtual HRESULT __stdcall raw_SetFontColor ( - /*[in]*/ unsigned long fontColor ) = 0; -}; - -struct __declspec(uuid("d56cf377-498f-4b5c-8913-6d77f2dd8a29")) -ILSortable : IUnknown -{ - // - // Property data - // - - __declspec(property(get=GetIndex,put=PutIndex)) - int Index; - - // - // Wrapper methods for error-handling - // - - int GetIndex ( ); - void PutIndex ( - int val ); - double GetPosX ( - enum LPVPositionMode posMode ); - double GetPosY ( - enum LPVPositionMode posMode ); - double GetScore ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Index ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall put_Index ( - /*[in]*/ int val ) = 0; - virtual HRESULT __stdcall raw_GetPosX ( - /*[in]*/ enum LPVPositionMode posMode, - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall raw_GetPosY ( - /*[in]*/ enum LPVPositionMode posMode, - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall raw_GetScore ( - /*[out,retval]*/ double * val ) = 0; -}; - -struct __declspec(uuid("ded7e160-36bd-4fe3-8d98-72bddc93b83d")) -ILSortables : IUnknown -{ - // - // Wrapper methods for error-handling - // - - HRESULT Sort ( - enum LPVSortBy sortBy, - enum LPVSortOrder sortOrder, - enum LPVPositionMode posMode ); - SAFEARRAY * SortTo ( - enum LPVSortBy sortBy, - enum LPVSortOrder sortOrder, - enum LPVPositionMode posMode ); - HRESULT ApplySort ( - SAFEARRAY * sortedIndexes ); - int SortableCount ( ); - ILSortablePtr GetSortable ( - int Index ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Sort ( - /*[in]*/ enum LPVSortBy sortBy, - /*[in]*/ enum LPVSortOrder sortOrder, - /*[in]*/ enum LPVPositionMode posMode ) = 0; - virtual HRESULT __stdcall raw_SortTo ( - /*[in]*/ enum LPVSortBy sortBy, - /*[in]*/ enum LPVSortOrder sortOrder, - /*[in]*/ enum LPVPositionMode posMode, - /*[out,retval]*/ SAFEARRAY * * sortedIndexes ) = 0; - virtual HRESULT __stdcall raw_ApplySort ( - /*[in]*/ SAFEARRAY * sortedIndexes ) = 0; - virtual HRESULT __stdcall raw_SortableCount ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall raw_GetSortable ( - /*[in]*/ int Index, - /*[out,retval]*/ struct ILSortable * * sortable ) = 0; -}; - -struct __declspec(uuid("50cc1928-457b-4ce6-bfdf-1a9b47022a31")) -ILObject : IDispatch -{ - // - // Wrapper methods for error-handling - // - - HRESULT Reset ( ); - enum LPVErrorCode Save ( - _bstr_t filename ); - enum LPVErrorCode Load ( - _bstr_t filename ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Reset ( ) = 0; - virtual HRESULT __stdcall raw_Save ( - /*[in]*/ BSTR filename, - /*[out,retval]*/ enum LPVErrorCode * error ) = 0; - virtual HRESULT __stdcall raw_Load ( - /*[in]*/ BSTR filename, - /*[out,retval]*/ enum LPVErrorCode * error ) = 0; -}; - -struct __declspec(uuid("ec419121-252e-4173-ad0d-2d3d69986af3")) -ILSystem : IDispatch -{ - // - // Wrapper methods for error-handling - // - - VARIANT_BOOL CheckVersion ( - long majorVersion, - long minorVersion, - long microVersion ); - HRESULT SetPen ( - IDispatch * drawable, - enum LPVPenStyle penStyle, - int penWidth, - unsigned long penColor ); - HRESULT SetPenColor ( - IDispatch * drawable, - unsigned long penColor ); - HRESULT SetPenWidth ( - IDispatch * drawable, - int penWidth ); - HRESULT SetPenStyle ( - IDispatch * drawable, - enum LPVPenStyle penStyle ); - HRESULT SetBrushColor ( - IDispatch * drawable, - unsigned long penColor ); - HRESULT SetFont ( - IDispatch * drawable, - _bstr_t fontFamily, - int fontHeight, - unsigned long fontColor, - VARIANT_BOOL bold, - VARIANT_BOOL italic, - VARIANT_BOOL underline, - VARIANT_BOOL strikeOut ); - HRESULT SetFontFamily ( - IDispatch * drawable, - _bstr_t fontFamily ); - HRESULT SetFontHeight ( - IDispatch * drawable, - int fontHeight ); - HRESULT SetFontColor ( - IDispatch * drawable, - unsigned long fontColor ); - unsigned long GetColorRef ( - int red, - int green, - int blue ); - HRESULT SetDrawPointSize ( - int size ); - HRESULT DrawPoint ( - double x, - double y, - enum LPVPointShape shape, - void * hdc, - double zoomX, - double zoomY, - double panX, - double panY ); - HRESULT DrawLine ( - double x1, - double y1, - double x2, - double y2, - void * hdc, - double zoomX, - double zoomY, - double panX, - double panY ); - HRESULT DrawCircle ( - double x, - double y, - double r, - VARIANT_BOOL bFill, - void * hdc, - double zoomX, - double zoomY, - double panX, - double panY ); - HRESULT DrawRect ( - double x, - double y, - double w, - double h, - double a, - VARIANT_BOOL bFill, - void * hdc, - double zoomX, - double zoomY, - double panX, - double panY ); - HRESULT DrawPolygon ( - SAFEARRAY * xs, - SAFEARRAY * ys, - VARIANT_BOOL bClosed, - VARIANT_BOOL bFill, - void * hdc, - double zoomX, - double zoomY, - double panX, - double panY ); - HRESULT DrawString ( - _bstr_t text, - int tlx, - int tly, - void * hdc, - double zoomX, - double zoomY, - double panX, - double panY ); - HRESULT GetRGBFromColorRef ( - unsigned long colorRef, - int * red, - int * green, - int * blue ); - HRESULT SetRegionHandleSize ( - int size ); - VARIANT_BOOL CheckLicense ( ); - VARIANT_BOOL CheckLib ( - _bstr_t libName ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_CheckVersion ( - /*[in]*/ long majorVersion, - /*[in]*/ long minorVersion, - /*[in]*/ long microVersion, - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall raw_SetPen ( - /*[in]*/ IDispatch * drawable, - /*[in]*/ enum LPVPenStyle penStyle, - /*[in]*/ int penWidth, - /*[in]*/ unsigned long penColor ) = 0; - virtual HRESULT __stdcall raw_SetPenColor ( - /*[in]*/ IDispatch * drawable, - /*[in]*/ unsigned long penColor ) = 0; - virtual HRESULT __stdcall raw_SetPenWidth ( - /*[in]*/ IDispatch * drawable, - /*[in]*/ int penWidth ) = 0; - virtual HRESULT __stdcall raw_SetPenStyle ( - /*[in]*/ IDispatch * drawable, - /*[in]*/ enum LPVPenStyle penStyle ) = 0; - virtual HRESULT __stdcall raw_SetBrushColor ( - /*[in]*/ IDispatch * drawable, - /*[in]*/ unsigned long penColor ) = 0; - virtual HRESULT __stdcall raw_SetFont ( - /*[in]*/ IDispatch * drawable, - /*[in]*/ BSTR fontFamily, - /*[in]*/ int fontHeight, - /*[in]*/ unsigned long fontColor, - /*[in]*/ VARIANT_BOOL bold, - /*[in]*/ VARIANT_BOOL italic, - /*[in]*/ VARIANT_BOOL underline, - /*[in]*/ VARIANT_BOOL strikeOut ) = 0; - virtual HRESULT __stdcall raw_SetFontFamily ( - /*[in]*/ IDispatch * drawable, - /*[in]*/ BSTR fontFamily ) = 0; - virtual HRESULT __stdcall raw_SetFontHeight ( - /*[in]*/ IDispatch * drawable, - /*[in]*/ int fontHeight ) = 0; - virtual HRESULT __stdcall raw_SetFontColor ( - /*[in]*/ IDispatch * drawable, - /*[in]*/ unsigned long fontColor ) = 0; - virtual HRESULT __stdcall raw_GetColorRef ( - /*[in]*/ int red, - /*[in]*/ int green, - /*[in]*/ int blue, - /*[out,retval]*/ unsigned long * val ) = 0; - virtual HRESULT __stdcall raw_SetDrawPointSize ( - /*[in]*/ int size ) = 0; - virtual HRESULT __stdcall raw_DrawPoint ( - /*[in]*/ double x, - /*[in]*/ double y, - /*[in]*/ enum LPVPointShape shape, - /*[in]*/ void * hdc, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; - virtual HRESULT __stdcall raw_DrawLine ( - /*[in]*/ double x1, - /*[in]*/ double y1, - /*[in]*/ double x2, - /*[in]*/ double y2, - /*[in]*/ void * hdc, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; - virtual HRESULT __stdcall raw_DrawCircle ( - /*[in]*/ double x, - /*[in]*/ double y, - /*[in]*/ double r, - /*[in]*/ VARIANT_BOOL bFill, - /*[in]*/ void * hdc, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; - virtual HRESULT __stdcall raw_DrawRect ( - /*[in]*/ double x, - /*[in]*/ double y, - /*[in]*/ double w, - /*[in]*/ double h, - /*[in]*/ double a, - /*[in]*/ VARIANT_BOOL bFill, - /*[in]*/ void * hdc, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; - virtual HRESULT __stdcall raw_DrawPolygon ( - /*[in]*/ SAFEARRAY * xs, - /*[in]*/ SAFEARRAY * ys, - /*[in]*/ VARIANT_BOOL bClosed, - /*[in]*/ VARIANT_BOOL bFill, - /*[in]*/ void * hdc, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; - virtual HRESULT __stdcall raw_DrawString ( - /*[in]*/ BSTR text, - /*[in]*/ int tlx, - /*[in]*/ int tly, - /*[in]*/ void * hdc, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; - virtual HRESULT __stdcall raw_GetRGBFromColorRef ( - /*[in]*/ unsigned long colorRef, - /*[out]*/ int * red, - /*[out]*/ int * green, - /*[out]*/ int * blue ) = 0; - virtual HRESULT __stdcall raw_SetRegionHandleSize ( - /*[in]*/ int size ) = 0; - virtual HRESULT __stdcall raw_CheckLicense ( - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall raw_CheckLib ( - /*[in]*/ BSTR libName, - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; -}; - -struct __declspec(uuid("836a7b25-2ce4-4a65-9f04-3ea65a0eff45")) -LSystem; - // [ default ] interface ILSystem - -struct __declspec(uuid("a546c1fb-c93e-4007-8e7d-f31ad829d6b0")) -LImage; - // [ default ] interface ILImage - -struct __declspec(uuid("474178c7-bfff-4d2c-94c9-a3eda9cfb323")) -LRegion; - // [ default ] interface ILRegion - // interface ILDrawable - // interface ILSortable - -struct __declspec(uuid("cca82067-d1e4-497d-ba04-e1e2210f497e")) -LRectRegion; - // [ default ] interface ILRectRegion - // interface ILDrawable - // interface ILSortable - -struct __declspec(uuid("9d2e0d6c-e558-47c2-a6a0-05590c55dc13")) -LRotRectRegion; - // [ default ] interface ILRotRectRegion - // interface ILDrawable - // interface ILSortable - -struct __declspec(uuid("46aac3e5-89ac-47b6-b57b-d5a38a77cda3")) -LCircleRegion; - // [ default ] interface ILCircleRegion - // interface ILDrawable - // interface ILSortable - -struct __declspec(uuid("b72478c4-2101-4711-8935-911ef2be459f")) -LPolyRegion; - // [ default ] interface ILPolyRegion - // interface ILDrawable - // interface ILSortable - -struct __declspec(uuid("de95c14b-a18e-41b8-aee2-a0ba2a6dd051")) -LMaskRegion; - // [ default ] interface ILMaskRegion - // interface ILDrawable - // interface ILSortable - -struct __declspec(uuid("72a0c0a1-3b53-4bee-8709-22c433c487ef")) -LAnnulusRegion; - // [ default ] interface ILAnnulusRegion - // interface ILDrawable - // interface ILSortable - -struct __declspec(uuid("6e8b5374-bbda-45b7-8c76-80f788d10e48")) -LEllipseRegion; - // [ default ] interface ILEllipseRegion - // interface ILDrawable - // interface ILSortable - -struct __declspec(uuid("6bab604f-f638-40fe-b5e6-0036f55986da")) -LAnnulusSectorRegion; - // [ default ] interface ILAnnulusSectorRegion - // interface ILDrawable - // interface ILSortable - -struct __declspec(uuid("9d591952-1d41-49f0-9fcd-b7b9c6479d63")) -LImageList; - // [ default ] interface ILImageList - -struct __declspec(uuid("445d309e-0929-4b12-84a5-461e353d2bea")) -ILImage : ILObject -{ - // - // Property data - // - - __declspec(property(get=GetWidth)) - int Width; - __declspec(property(get=GetHeight)) - int Height; - __declspec(property(get=GetPixel,put=PutPixel)) - int Pixel[][]; - __declspec(property(get=GetImageFormat,put=PutImageFormat)) - enum LPVImageFormat ImageFormat; - __declspec(property(get=GetPixelColor,put=PutPixelColor)) - struct LColor PixelColor[][]; - __declspec(property(get=GetBytesPerLine)) - int BytesPerLine; - __declspec(property(get=GetDataPointer)) - void * DataPointer; - - // - // Wrapper methods for error-handling - // - - enum LPVImageFormat GetImageFormat ( ); - void PutImageFormat ( - enum LPVImageFormat val ); - int GetWidth ( ); - int GetHeight ( ); - int GetBytesPerLine ( ); - void * GetDataPointer ( ); - HRESULT SetSize ( - int w, - int h ); - int GetPixel ( - int x, - int y ); - void PutPixel ( - int x, - int y, - int val ); - VARIANT_BOOL Void ( ); - HRESULT SetImageData ( - int w, - int h, - void * dataPtr, - int bpl, - VARIANT_BOOL copyData ); - HRESULT CopyTo ( - struct ILImage * dstImg ); - HRESULT CopyFrom ( - struct ILImage * img, - struct ILRegion * region, - int panX, - int panY ); - enum LPVErrorCode Save ( - _bstr_t filename, - struct ILRegion * region ); - HRESULT Draw ( - void * hdc, - double zoomX, - double zoomY, - double panX, - double panY ); - HRESULT DrawAsMask ( - void * hdc, - double zoomX, - double zoomY, - double panX, - double panY ); - struct LColor GetPixelColor ( - int x, - int y ); - void PutPixelColor ( - int x, - int y, - struct LColor val ); - HRESULT SetTo ( - int val, - struct ILRegion * region ); - HRESULT SetToColor ( - struct LColor val, - struct ILRegion * region ); - ILImagePtr GetChannel ( - int channelIdx ); - HRESULT SetChannel ( - int channelIdx, - struct ILImage * channelImage ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_ImageFormat ( - /*[out,retval]*/ enum LPVImageFormat * val ) = 0; - virtual HRESULT __stdcall put_ImageFormat ( - /*[in]*/ enum LPVImageFormat val ) = 0; - virtual HRESULT __stdcall get_Width ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall get_Height ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall get_BytesPerLine ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall get_DataPointer ( - /*[out,retval]*/ void * * val ) = 0; - virtual HRESULT __stdcall raw_SetSize ( - /*[in]*/ int w, - /*[in]*/ int h ) = 0; - virtual HRESULT __stdcall get_Pixel ( - /*[in]*/ int x, - /*[in]*/ int y, - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall put_Pixel ( - /*[in]*/ int x, - /*[in]*/ int y, - /*[in]*/ int val ) = 0; - virtual HRESULT __stdcall raw_Void ( - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall raw_SetImageData ( - /*[in]*/ int w, - /*[in]*/ int h, - /*[in]*/ void * dataPtr, - /*[in]*/ int bpl, - /*[in]*/ VARIANT_BOOL copyData ) = 0; - virtual HRESULT __stdcall raw_CopyTo ( - /*[in]*/ struct ILImage * dstImg ) = 0; - virtual HRESULT __stdcall raw_CopyFrom ( - /*[in]*/ struct ILImage * img, - /*[in]*/ struct ILRegion * region, - /*[in]*/ int panX, - /*[in]*/ int panY ) = 0; - virtual HRESULT __stdcall raw_Save ( - /*[in]*/ BSTR filename, - /*[in]*/ struct ILRegion * region, - /*[out,retval]*/ enum LPVErrorCode * error ) = 0; - virtual HRESULT __stdcall raw_Draw ( - /*[in]*/ void * hdc, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; - virtual HRESULT __stdcall raw_DrawAsMask ( - /*[in]*/ void * hdc, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; - virtual HRESULT __stdcall get_PixelColor ( - /*[in]*/ int x, - /*[in]*/ int y, - /*[out,retval]*/ struct LColor * val ) = 0; - virtual HRESULT __stdcall put_PixelColor ( - /*[in]*/ int x, - /*[in]*/ int y, - /*[in]*/ struct LColor val ) = 0; - virtual HRESULT __stdcall raw_SetTo ( - /*[in]*/ int val, - /*[in]*/ struct ILRegion * region ) = 0; - virtual HRESULT __stdcall raw_SetToColor ( - /*[in]*/ struct LColor val, - /*[in]*/ struct ILRegion * region ) = 0; - virtual HRESULT __stdcall raw_GetChannel ( - /*[in]*/ int channelIdx, - /*[out,retval]*/ struct ILImage * * channelImage ) = 0; - virtual HRESULT __stdcall raw_SetChannel ( - /*[in]*/ int channelIdx, - /*[in]*/ struct ILImage * channelImage ) = 0; -}; - -struct __declspec(uuid("edc919ed-2f22-48c3-b059-37e20a7d9a59")) -ILRegion : ILObject -{ - // - // Property data - // - - __declspec(property(get=GetReduceAngle,put=PutReduceAngle)) - double ReduceAngle; - __declspec(property(get=GetReduceScale,put=PutReduceScale)) - double ReduceScale; - __declspec(property(get=GetInterpolationMethod,put=PutInterpolationMethod)) - enum LPVInterpolationMethod InterpolationMethod; - - // - // Wrapper methods for error-handling - // - - HRESULT Draw ( - void * hdc, - VARIANT_BOOL drawHandles, - double zoomX, - double zoomY, - double panX, - double panY ); - enum LPVRoiHandle HitTest ( - int x, - int y, - double zoomX, - double zoomY, - double panX, - double panY ); - HRESULT Drag ( - enum LPVRoiHandle roiHandle, - int x, - int y, - double zoomX, - double zoomY, - double panX, - double panY ); - HRESULT EnableHandle ( - enum LPVRoiHandle roiHandle, - VARIANT_BOOL enabled ); - ILRegionPtr Add ( - struct ILRegion * other ); - ILRegionPtr Subtract ( - struct ILRegion * other ); - ILRegionPtr Union ( - struct ILRegion * other ); - VARIANT_BOOL Void ( ); - HRESULT ReduceImage ( - struct ILImage * image, - struct ILImage * * newImage, - struct ILImage * * newMask ); - HRESULT MapFromImage ( - double imagePointX, - double imagePointY, - double * regionPointX, - double * regionPointY ); - HRESULT MapToImage ( - double regionPointX, - double regionPointY, - double * imagePointX, - double * imagePointY ); - IDispatchPtr MapObjectFromImage ( - IDispatch * imageObject ); - IDispatchPtr MapObjectToImage ( - IDispatch * regionObject ); - ILRegionPtr Translate ( - double offsetX, - double offsetY ); - ILRegionPtr Scale ( - double factorX, - double factorY ); - ILRegionPtr Rotate ( - double da ); - ILRegionPtr RotateAndTranslate ( - double x, - double y, - double newX, - double newY, - double da ); - ILImagePtr ToMask ( - int w, - int h ); - ILRegionPtr Intersect ( - struct ILRegion * other ); - ILRegionPtr XOR ( - struct ILRegion * other ); - ILRegionPtr Copy ( ); - ILRegionPtr Invert ( ); - double GetReduceAngle ( ); - void PutReduceAngle ( - double val ); - double GetReduceScale ( ); - void PutReduceScale ( - double val ); - enum LPVInterpolationMethod GetInterpolationMethod ( ); - void PutInterpolationMethod ( - enum LPVInterpolationMethod val ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Draw ( - /*[in]*/ void * hdc, - /*[in]*/ VARIANT_BOOL drawHandles, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; - virtual HRESULT __stdcall raw_HitTest ( - /*[in]*/ int x, - /*[in]*/ int y, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY, - /*[out,retval]*/ enum LPVRoiHandle * roiHandle ) = 0; - virtual HRESULT __stdcall raw_Drag ( - /*[in]*/ enum LPVRoiHandle roiHandle, - /*[in]*/ int x, - /*[in]*/ int y, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; - virtual HRESULT __stdcall raw_EnableHandle ( - /*[in]*/ enum LPVRoiHandle roiHandle, - /*[in]*/ VARIANT_BOOL enabled ) = 0; - virtual HRESULT __stdcall raw_Add ( - /*[in]*/ struct ILRegion * other, - /*[out,retval]*/ struct ILRegion * * newRegion ) = 0; - virtual HRESULT __stdcall raw_Subtract ( - /*[in]*/ struct ILRegion * other, - /*[out,retval]*/ struct ILRegion * * newRegion ) = 0; - virtual HRESULT __stdcall raw_Union ( - /*[in]*/ struct ILRegion * other, - /*[out,retval]*/ struct ILRegion * * newRegion ) = 0; - virtual HRESULT __stdcall raw_Void ( - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall raw_ReduceImage ( - /*[in]*/ struct ILImage * image, - /*[out]*/ struct ILImage * * newImage, - /*[out]*/ struct ILImage * * newMask ) = 0; - virtual HRESULT __stdcall raw_MapFromImage ( - /*[in]*/ double imagePointX, - /*[in]*/ double imagePointY, - /*[out]*/ double * regionPointX, - /*[out]*/ double * regionPointY ) = 0; - virtual HRESULT __stdcall raw_MapToImage ( - /*[in]*/ double regionPointX, - /*[in]*/ double regionPointY, - /*[out]*/ double * imagePointX, - /*[out]*/ double * imagePointY ) = 0; - virtual HRESULT __stdcall raw_MapObjectFromImage ( - /*[in]*/ IDispatch * imageObject, - /*[out,retval]*/ IDispatch * * regionObject ) = 0; - virtual HRESULT __stdcall raw_MapObjectToImage ( - /*[in]*/ IDispatch * regionObject, - /*[out,retval]*/ IDispatch * * imageObject ) = 0; - virtual HRESULT __stdcall raw_Translate ( - /*[in]*/ double offsetX, - /*[in]*/ double offsetY, - /*[out,retval]*/ struct ILRegion * * newRegion ) = 0; - virtual HRESULT __stdcall raw_Scale ( - /*[in]*/ double factorX, - /*[in]*/ double factorY, - /*[out,retval]*/ struct ILRegion * * newRegion ) = 0; - virtual HRESULT __stdcall raw_Rotate ( - /*[in]*/ double da, - /*[out,retval]*/ struct ILRegion * * newRegion ) = 0; - virtual HRESULT __stdcall raw_RotateAndTranslate ( - /*[in]*/ double x, - /*[in]*/ double y, - /*[in]*/ double newX, - /*[in]*/ double newY, - /*[in]*/ double da, - /*[out,retval]*/ struct ILRegion * * newRegion ) = 0; - virtual HRESULT __stdcall raw_ToMask ( - /*[in]*/ int w, - /*[in]*/ int h, - /*[out,retval]*/ struct ILImage * * mask ) = 0; - virtual HRESULT __stdcall raw_Intersect ( - /*[in]*/ struct ILRegion * other, - /*[out,retval]*/ struct ILRegion * * newRegion ) = 0; - virtual HRESULT __stdcall raw_XOR ( - /*[in]*/ struct ILRegion * other, - /*[out,retval]*/ struct ILRegion * * newRegion ) = 0; - virtual HRESULT __stdcall raw_Copy ( - /*[out,retval]*/ struct ILRegion * * newRegion ) = 0; - virtual HRESULT __stdcall raw_Invert ( - /*[out,retval]*/ struct ILRegion * * newRegion ) = 0; - virtual HRESULT __stdcall get_ReduceAngle ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_ReduceAngle ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_ReduceScale ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_ReduceScale ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_InterpolationMethod ( - /*[out,retval]*/ enum LPVInterpolationMethod * val ) = 0; - virtual HRESULT __stdcall put_InterpolationMethod ( - /*[in]*/ enum LPVInterpolationMethod val ) = 0; -}; - -struct __declspec(uuid("aecb7fb8-d910-457e-9b47-2da967335bf7")) -ILRectRegion : ILRegion -{ - // - // Property data - // - - __declspec(property(get=GetLeft,put=PutLeft)) - double Left; - __declspec(property(get=GetTop,put=PutTop)) - double Top; - __declspec(property(get=GetWidth,put=PutWidth)) - double Width; - __declspec(property(get=GetHeight,put=PutHeight)) - double Height; - __declspec(property(get=GetCenterX)) - double CenterX; - __declspec(property(get=GetCenterY)) - double CenterY; - - // - // Wrapper methods for error-handling - // - - double GetLeft ( ); - void PutLeft ( - double val ); - double GetTop ( ); - void PutTop ( - double val ); - double GetWidth ( ); - void PutWidth ( - double val ); - double GetHeight ( ); - void PutHeight ( - double val ); - HRESULT SetPlacement ( - double tlx, - double tly, - double w, - double h ); - double GetCenterX ( ); - double GetCenterY ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Left ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Left ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Top ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Top ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Width ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Width ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Height ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Height ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall raw_SetPlacement ( - /*[in]*/ double tlx, - /*[in]*/ double tly, - /*[in]*/ double w, - /*[in]*/ double h ) = 0; - virtual HRESULT __stdcall get_CenterX ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall get_CenterY ( - /*[out,retval]*/ double * val ) = 0; -}; - -struct __declspec(uuid("605251ec-4957-4d85-a9a2-cd42f1e8b4b7")) -ILRotRectRegion : ILRegion -{ - // - // Property data - // - - __declspec(property(get=GetCenterX,put=PutCenterX)) - double CenterX; - __declspec(property(get=GetCenterY,put=PutCenterY)) - double CenterY; - __declspec(property(get=GetWidth,put=PutWidth)) - double Width; - __declspec(property(get=GetHeight,put=PutHeight)) - double Height; - __declspec(property(get=GetAngle,put=PutAngle)) - double Angle; - - // - // Wrapper methods for error-handling - // - - double GetCenterX ( ); - void PutCenterX ( - double val ); - double GetCenterY ( ); - void PutCenterY ( - double val ); - double GetWidth ( ); - void PutWidth ( - double val ); - double GetHeight ( ); - void PutHeight ( - double val ); - double GetAngle ( ); - void PutAngle ( - double val ); - HRESULT SetPlacement ( - double cenx, - double ceny, - double w, - double h, - double a ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_CenterX ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_CenterX ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_CenterY ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_CenterY ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Width ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Width ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Height ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Height ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Angle ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Angle ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall raw_SetPlacement ( - /*[in]*/ double cenx, - /*[in]*/ double ceny, - /*[in]*/ double w, - /*[in]*/ double h, - /*[in]*/ double a ) = 0; -}; - -struct __declspec(uuid("7c63e516-8af9-47ec-a35a-a32c194a783b")) -ILCircleRegion : ILRegion -{ - // - // Property data - // - - __declspec(property(get=GetCenterX,put=PutCenterX)) - double CenterX; - __declspec(property(get=GetCenterY,put=PutCenterY)) - double CenterY; - __declspec(property(get=GetRadius,put=PutRadius)) - double Radius; - - // - // Wrapper methods for error-handling - // - - double GetCenterX ( ); - void PutCenterX ( - double val ); - double GetCenterY ( ); - void PutCenterY ( - double val ); - double GetRadius ( ); - void PutRadius ( - double val ); - HRESULT SetPlacement ( - double cenx, - double ceny, - double r ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_CenterX ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_CenterX ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_CenterY ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_CenterY ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Radius ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Radius ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall raw_SetPlacement ( - /*[in]*/ double cenx, - /*[in]*/ double ceny, - /*[in]*/ double r ) = 0; -}; - -struct __declspec(uuid("8e869611-1478-4c52-8083-3b19d99e5fdb")) -ILPolyRegion : ILRegion -{ - // - // Wrapper methods for error-handling - // - - int CtrlCount ( ); - HRESULT AddCtrl ( - double x, - double y, - int ctrlIndex ); - HRESULT GetCtrl ( - int ctrlIndex, - double * x, - double * y ); - HRESULT SetPlacement ( - SAFEARRAY * xs, - SAFEARRAY * ys ); - HRESULT RemoveCtrl ( - int ctrlIndex ); - HRESULT SetCtrl ( - double x, - double y, - int ctrlIndex ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_CtrlCount ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall raw_AddCtrl ( - /*[in]*/ double x, - /*[in]*/ double y, - /*[in]*/ int ctrlIndex ) = 0; - virtual HRESULT __stdcall raw_GetCtrl ( - /*[in]*/ int ctrlIndex, - /*[out]*/ double * x, - /*[out]*/ double * y ) = 0; - virtual HRESULT __stdcall raw_SetPlacement ( - /*[in]*/ SAFEARRAY * xs, - /*[in]*/ SAFEARRAY * ys ) = 0; - virtual HRESULT __stdcall raw_RemoveCtrl ( - /*[in]*/ int ctrlIndex ) = 0; - virtual HRESULT __stdcall raw_SetCtrl ( - /*[in]*/ double x, - /*[in]*/ double y, - /*[in]*/ int ctrlIndex ) = 0; -}; - -struct __declspec(uuid("de41b0b3-1a33-4e7a-b38d-5cc098dff62b")) -ILMaskRegion : ILRegion -{ - // - // Wrapper methods for error-handling - // - - HRESULT SetMask ( - struct ILImage * mask, - double tlx, - double tly ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_SetMask ( - /*[in]*/ struct ILImage * mask, - /*[in]*/ double tlx, - /*[in]*/ double tly ) = 0; -}; - -struct __declspec(uuid("09161909-a8f9-4623-aa75-9e5398a5145b")) -ILAnnulusRegion : ILRegion -{ - // - // Property data - // - - __declspec(property(get=GetCenterX,put=PutCenterX)) - double CenterX; - __declspec(property(get=GetCenterY,put=PutCenterY)) - double CenterY; - __declspec(property(get=GetInnerRadius,put=PutInnerRadius)) - double InnerRadius; - __declspec(property(get=GetOuterRadius,put=PutOuterRadius)) - double OuterRadius; - - // - // Wrapper methods for error-handling - // - - double GetCenterX ( ); - void PutCenterX ( - double val ); - double GetCenterY ( ); - void PutCenterY ( - double val ); - double GetInnerRadius ( ); - void PutInnerRadius ( - double val ); - double GetOuterRadius ( ); - void PutOuterRadius ( - double val ); - HRESULT SetPlacement ( - double cenx, - double ceny, - double rInner, - double rOuter ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_CenterX ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_CenterX ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_CenterY ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_CenterY ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_InnerRadius ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_InnerRadius ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_OuterRadius ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_OuterRadius ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall raw_SetPlacement ( - /*[in]*/ double cenx, - /*[in]*/ double ceny, - /*[in]*/ double rInner, - /*[in]*/ double rOuter ) = 0; -}; - -struct __declspec(uuid("23207784-c0ae-4f89-89f4-0d4a07536f9e")) -ILEllipseRegion : ILRegion -{ - // - // Property data - // - - __declspec(property(get=GetAngle,put=PutAngle)) - double Angle; - __declspec(property(get=GetCenterX,put=PutCenterX)) - double CenterX; - __declspec(property(get=GetCenterY,put=PutCenterY)) - double CenterY; - __declspec(property(get=GetWidth,put=PutWidth)) - double Width; - __declspec(property(get=GetHeight,put=PutHeight)) - double Height; - - // - // Wrapper methods for error-handling - // - - double GetCenterX ( ); - void PutCenterX ( - double val ); - double GetCenterY ( ); - void PutCenterY ( - double val ); - double GetWidth ( ); - void PutWidth ( - double val ); - double GetHeight ( ); - void PutHeight ( - double val ); - double GetAngle ( ); - void PutAngle ( - double val ); - HRESULT SetPlacement ( - double cenx, - double ceny, - double w, - double h, - double a ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_CenterX ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_CenterX ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_CenterY ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_CenterY ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Width ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Width ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Height ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Height ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Angle ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Angle ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall raw_SetPlacement ( - /*[in]*/ double cenx, - /*[in]*/ double ceny, - /*[in]*/ double w, - /*[in]*/ double h, - /*[in]*/ double a ) = 0; -}; - -struct __declspec(uuid("69904f7a-3370-425d-984a-e1a21d19957c")) -ILAnnulusSectorRegion : ILRegion -{ - // - // Property data - // - - __declspec(property(get=GetCenterX,put=PutCenterX)) - double CenterX; - __declspec(property(get=GetCenterY,put=PutCenterY)) - double CenterY; - __declspec(property(get=GetInnerRadius,put=PutInnerRadius)) - double InnerRadius; - __declspec(property(get=GetOuterRadius,put=PutOuterRadius)) - double OuterRadius; - __declspec(property(get=GetStartAngle,put=PutStartAngle)) - double StartAngle; - __declspec(property(get=GetEndAngle,put=PutEndAngle)) - double EndAngle; - - // - // Wrapper methods for error-handling - // - - double GetCenterX ( ); - void PutCenterX ( - double val ); - double GetCenterY ( ); - void PutCenterY ( - double val ); - double GetInnerRadius ( ); - void PutInnerRadius ( - double val ); - double GetOuterRadius ( ); - void PutOuterRadius ( - double val ); - double GetStartAngle ( ); - void PutStartAngle ( - double val ); - double GetEndAngle ( ); - void PutEndAngle ( - double val ); - HRESULT SetPlacement ( - double cenx, - double ceny, - double rInner, - double rOuter, - double aStart, - double aEnd ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_CenterX ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_CenterX ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_CenterY ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_CenterY ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_InnerRadius ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_InnerRadius ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_OuterRadius ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_OuterRadius ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_StartAngle ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_StartAngle ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_EndAngle ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_EndAngle ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall raw_SetPlacement ( - /*[in]*/ double cenx, - /*[in]*/ double ceny, - /*[in]*/ double rInner, - /*[in]*/ double rOuter, - /*[in]*/ double aStart, - /*[in]*/ double aEnd ) = 0; -}; - -struct __declspec(uuid("1c052ea3-25c1-434a-8b1e-903803415814")) -ILImageList : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetMaxCount,put=PutMaxCount)) - int MaxCount; - __declspec(property(get=GetUseCache,put=PutUseCache)) - VARIANT_BOOL UseCache; - __declspec(property(get=GetSameSize,put=PutSameSize)) - VARIANT_BOOL SameSize; - - // - // Wrapper methods for error-handling - // - - int GetMaxCount ( ); - void PutMaxCount ( - int val ); - HRESULT Reset ( ); - int Count ( ); - HRESULT Add ( - struct ILImage * img, - struct ILRectRegion * region ); - HRESULT Adds ( - SAFEARRAY * images ); - ILImagePtr Item ( - int imgIndex ); - VARIANT_BOOL GetUseCache ( ); - void PutUseCache ( - VARIANT_BOOL val ); - VARIANT_BOOL GetSameSize ( ); - void PutSameSize ( - VARIANT_BOOL val ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_MaxCount ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall put_MaxCount ( - /*[in]*/ int val ) = 0; - virtual HRESULT __stdcall raw_Reset ( ) = 0; - virtual HRESULT __stdcall raw_Count ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall raw_Add ( - /*[in]*/ struct ILImage * img, - /*[in]*/ struct ILRectRegion * region ) = 0; - virtual HRESULT __stdcall raw_Adds ( - /*[in]*/ SAFEARRAY * images ) = 0; - virtual HRESULT __stdcall raw_Item ( - /*[in]*/ int imgIndex, - /*[out,retval]*/ struct ILImage * * img ) = 0; - virtual HRESULT __stdcall get_UseCache ( - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall put_UseCache ( - /*[in]*/ VARIANT_BOOL val ) = 0; - virtual HRESULT __stdcall get_SameSize ( - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall put_SameSize ( - /*[in]*/ VARIANT_BOOL val ) = 0; -}; - -// -// Wrapper method implementations -// - -#include "d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvCore.tli" - -#pragma pack(pop) diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/lpvCore.tli b/tpvs17/SmokeBoxIdentification/x64/Release/lpvCore.tli deleted file mode 100644 index 03c42c3..0000000 --- a/tpvs17/SmokeBoxIdentification/x64/Release/lpvCore.tli +++ /dev/null @@ -1,1156 +0,0 @@ -// Created by Microsoft (R) C/C++ Compiler Version 14.16.27051.0 (4b0afb50). -// -// d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvCore.tli -// -// Wrapper implementations for Win32 type library c34b3e9e-6dea-4aa9-b500-0266f90dc15f -// compiler-generated file created 12/28/23 at 14:09:51 - DO NOT EDIT! - -#pragma once - -// -// interface ILDrawable wrapper method implementations -// - -inline HRESULT ILDrawable::SetPen ( enum LPVPenStyle penStyle, int penWidth, unsigned long penColor ) { - HRESULT _hr = raw_SetPen(penStyle, penWidth, penColor); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILDrawable::SetPenColor ( unsigned long penColor ) { - HRESULT _hr = raw_SetPenColor(penColor); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILDrawable::SetPenWidth ( int penWidth ) { - HRESULT _hr = raw_SetPenWidth(penWidth); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILDrawable::SetPenStyle ( enum LPVPenStyle penStyle ) { - HRESULT _hr = raw_SetPenStyle(penStyle); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILDrawable::SetBrushColor ( unsigned long brushColor ) { - HRESULT _hr = raw_SetBrushColor(brushColor); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILDrawable::SetFont ( _bstr_t fontFamily, int fontHeight, unsigned long fontColor, VARIANT_BOOL bold, VARIANT_BOOL italic, VARIANT_BOOL underline, VARIANT_BOOL strikeOut ) { - HRESULT _hr = raw_SetFont(fontFamily, fontHeight, fontColor, bold, italic, underline, strikeOut); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILDrawable::SetFontFamily ( _bstr_t fontFamily ) { - HRESULT _hr = raw_SetFontFamily(fontFamily); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILDrawable::SetFontHeight ( int fontHeight ) { - HRESULT _hr = raw_SetFontHeight(fontHeight); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILDrawable::SetFontColor ( unsigned long fontColor ) { - HRESULT _hr = raw_SetFontColor(fontColor); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface ILSortable wrapper method implementations -// - -inline int ILSortable::GetIndex ( ) { - int _result = 0; - HRESULT _hr = get_Index(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILSortable::PutIndex ( int val ) { - HRESULT _hr = put_Index(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILSortable::GetPosX ( enum LPVPositionMode posMode ) { - double _result = 0; - HRESULT _hr = raw_GetPosX(posMode, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILSortable::GetPosY ( enum LPVPositionMode posMode ) { - double _result = 0; - HRESULT _hr = raw_GetPosY(posMode, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILSortable::GetScore ( ) { - double _result = 0; - HRESULT _hr = raw_GetScore(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -// -// interface ILSortables wrapper method implementations -// - -inline HRESULT ILSortables::Sort ( enum LPVSortBy sortBy, enum LPVSortOrder sortOrder, enum LPVPositionMode posMode ) { - HRESULT _hr = raw_Sort(sortBy, sortOrder, posMode); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline SAFEARRAY * ILSortables::SortTo ( enum LPVSortBy sortBy, enum LPVSortOrder sortOrder, enum LPVPositionMode posMode ) { - SAFEARRAY * _result = 0; - HRESULT _hr = raw_SortTo(sortBy, sortOrder, posMode, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT ILSortables::ApplySort ( SAFEARRAY * sortedIndexes ) { - HRESULT _hr = raw_ApplySort(sortedIndexes); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline int ILSortables::SortableCount ( ) { - int _result = 0; - HRESULT _hr = raw_SortableCount(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILSortablePtr ILSortables::GetSortable ( int Index ) { - struct ILSortable * _result = 0; - HRESULT _hr = raw_GetSortable(Index, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILSortablePtr(_result, false); -} - -// -// interface ILObject wrapper method implementations -// - -inline HRESULT ILObject::Reset ( ) { - HRESULT _hr = raw_Reset(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline enum LPVErrorCode ILObject::Save ( _bstr_t filename ) { - enum LPVErrorCode _result; - HRESULT _hr = raw_Save(filename, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline enum LPVErrorCode ILObject::Load ( _bstr_t filename ) { - enum LPVErrorCode _result; - HRESULT _hr = raw_Load(filename, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -// -// interface ILSystem wrapper method implementations -// - -inline VARIANT_BOOL ILSystem::CheckVersion ( long majorVersion, long minorVersion, long microVersion ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = raw_CheckVersion(majorVersion, minorVersion, microVersion, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT ILSystem::SetPen ( IDispatch * drawable, enum LPVPenStyle penStyle, int penWidth, unsigned long penColor ) { - HRESULT _hr = raw_SetPen(drawable, penStyle, penWidth, penColor); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILSystem::SetPenColor ( IDispatch * drawable, unsigned long penColor ) { - HRESULT _hr = raw_SetPenColor(drawable, penColor); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILSystem::SetPenWidth ( IDispatch * drawable, int penWidth ) { - HRESULT _hr = raw_SetPenWidth(drawable, penWidth); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILSystem::SetPenStyle ( IDispatch * drawable, enum LPVPenStyle penStyle ) { - HRESULT _hr = raw_SetPenStyle(drawable, penStyle); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILSystem::SetBrushColor ( IDispatch * drawable, unsigned long penColor ) { - HRESULT _hr = raw_SetBrushColor(drawable, penColor); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILSystem::SetFont ( IDispatch * drawable, _bstr_t fontFamily, int fontHeight, unsigned long fontColor, VARIANT_BOOL bold, VARIANT_BOOL italic, VARIANT_BOOL underline, VARIANT_BOOL strikeOut ) { - HRESULT _hr = raw_SetFont(drawable, fontFamily, fontHeight, fontColor, bold, italic, underline, strikeOut); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILSystem::SetFontFamily ( IDispatch * drawable, _bstr_t fontFamily ) { - HRESULT _hr = raw_SetFontFamily(drawable, fontFamily); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILSystem::SetFontHeight ( IDispatch * drawable, int fontHeight ) { - HRESULT _hr = raw_SetFontHeight(drawable, fontHeight); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILSystem::SetFontColor ( IDispatch * drawable, unsigned long fontColor ) { - HRESULT _hr = raw_SetFontColor(drawable, fontColor); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline unsigned long ILSystem::GetColorRef ( int red, int green, int blue ) { - unsigned long _result = 0; - HRESULT _hr = raw_GetColorRef(red, green, blue, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT ILSystem::SetDrawPointSize ( int size ) { - HRESULT _hr = raw_SetDrawPointSize(size); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILSystem::DrawPoint ( double x, double y, enum LPVPointShape shape, void * hdc, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_DrawPoint(x, y, shape, hdc, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILSystem::DrawLine ( double x1, double y1, double x2, double y2, void * hdc, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_DrawLine(x1, y1, x2, y2, hdc, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILSystem::DrawCircle ( double x, double y, double r, VARIANT_BOOL bFill, void * hdc, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_DrawCircle(x, y, r, bFill, hdc, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILSystem::DrawRect ( double x, double y, double w, double h, double a, VARIANT_BOOL bFill, void * hdc, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_DrawRect(x, y, w, h, a, bFill, hdc, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILSystem::DrawPolygon ( SAFEARRAY * xs, SAFEARRAY * ys, VARIANT_BOOL bClosed, VARIANT_BOOL bFill, void * hdc, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_DrawPolygon(xs, ys, bClosed, bFill, hdc, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILSystem::DrawString ( _bstr_t text, int tlx, int tly, void * hdc, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_DrawString(text, tlx, tly, hdc, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILSystem::GetRGBFromColorRef ( unsigned long colorRef, int * red, int * green, int * blue ) { - HRESULT _hr = raw_GetRGBFromColorRef(colorRef, red, green, blue); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILSystem::SetRegionHandleSize ( int size ) { - HRESULT _hr = raw_SetRegionHandleSize(size); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline VARIANT_BOOL ILSystem::CheckLicense ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = raw_CheckLicense(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline VARIANT_BOOL ILSystem::CheckLib ( _bstr_t libName ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = raw_CheckLib(libName, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -// -// interface ILImage wrapper method implementations -// - -inline enum LPVImageFormat ILImage::GetImageFormat ( ) { - enum LPVImageFormat _result; - HRESULT _hr = get_ImageFormat(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILImage::PutImageFormat ( enum LPVImageFormat val ) { - HRESULT _hr = put_ImageFormat(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline int ILImage::GetWidth ( ) { - int _result = 0; - HRESULT _hr = get_Width(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline int ILImage::GetHeight ( ) { - int _result = 0; - HRESULT _hr = get_Height(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline int ILImage::GetBytesPerLine ( ) { - int _result = 0; - HRESULT _hr = get_BytesPerLine(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void * ILImage::GetDataPointer ( ) { - void * _result = 0; - HRESULT _hr = get_DataPointer(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT ILImage::SetSize ( int w, int h ) { - HRESULT _hr = raw_SetSize(w, h); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline int ILImage::GetPixel ( int x, int y ) { - int _result = 0; - HRESULT _hr = get_Pixel(x, y, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILImage::PutPixel ( int x, int y, int val ) { - HRESULT _hr = put_Pixel(x, y, val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL ILImage::Void ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = raw_Void(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT ILImage::SetImageData ( int w, int h, void * dataPtr, int bpl, VARIANT_BOOL copyData ) { - HRESULT _hr = raw_SetImageData(w, h, dataPtr, bpl, copyData); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILImage::CopyTo ( struct ILImage * dstImg ) { - HRESULT _hr = raw_CopyTo(dstImg); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILImage::CopyFrom ( struct ILImage * img, struct ILRegion * region, int panX, int panY ) { - HRESULT _hr = raw_CopyFrom(img, region, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline enum LPVErrorCode ILImage::Save ( _bstr_t filename, struct ILRegion * region ) { - enum LPVErrorCode _result; - HRESULT _hr = raw_Save(filename, region, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT ILImage::Draw ( void * hdc, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_Draw(hdc, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILImage::DrawAsMask ( void * hdc, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_DrawAsMask(hdc, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline struct LColor ILImage::GetPixelColor ( int x, int y ) { - struct LColor _result; - HRESULT _hr = get_PixelColor(x, y, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILImage::PutPixelColor ( int x, int y, struct LColor val ) { - HRESULT _hr = put_PixelColor(x, y, val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline HRESULT ILImage::SetTo ( int val, struct ILRegion * region ) { - HRESULT _hr = raw_SetTo(val, region); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILImage::SetToColor ( struct LColor val, struct ILRegion * region ) { - HRESULT _hr = raw_SetToColor(val, region); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline ILImagePtr ILImage::GetChannel ( int channelIdx ) { - struct ILImage * _result = 0; - HRESULT _hr = raw_GetChannel(channelIdx, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILImagePtr(_result, false); -} - -inline HRESULT ILImage::SetChannel ( int channelIdx, struct ILImage * channelImage ) { - HRESULT _hr = raw_SetChannel(channelIdx, channelImage); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface ILRegion wrapper method implementations -// - -inline HRESULT ILRegion::Draw ( void * hdc, VARIANT_BOOL drawHandles, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_Draw(hdc, drawHandles, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline enum LPVRoiHandle ILRegion::HitTest ( int x, int y, double zoomX, double zoomY, double panX, double panY ) { - enum LPVRoiHandle _result; - HRESULT _hr = raw_HitTest(x, y, zoomX, zoomY, panX, panY, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT ILRegion::Drag ( enum LPVRoiHandle roiHandle, int x, int y, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_Drag(roiHandle, x, y, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILRegion::EnableHandle ( enum LPVRoiHandle roiHandle, VARIANT_BOOL enabled ) { - HRESULT _hr = raw_EnableHandle(roiHandle, enabled); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline ILRegionPtr ILRegion::Add ( struct ILRegion * other ) { - struct ILRegion * _result = 0; - HRESULT _hr = raw_Add(other, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRegionPtr(_result, false); -} - -inline ILRegionPtr ILRegion::Subtract ( struct ILRegion * other ) { - struct ILRegion * _result = 0; - HRESULT _hr = raw_Subtract(other, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRegionPtr(_result, false); -} - -inline ILRegionPtr ILRegion::Union ( struct ILRegion * other ) { - struct ILRegion * _result = 0; - HRESULT _hr = raw_Union(other, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRegionPtr(_result, false); -} - -inline VARIANT_BOOL ILRegion::Void ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = raw_Void(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT ILRegion::ReduceImage ( struct ILImage * image, struct ILImage * * newImage, struct ILImage * * newMask ) { - HRESULT _hr = raw_ReduceImage(image, newImage, newMask); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILRegion::MapFromImage ( double imagePointX, double imagePointY, double * regionPointX, double * regionPointY ) { - HRESULT _hr = raw_MapFromImage(imagePointX, imagePointY, regionPointX, regionPointY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILRegion::MapToImage ( double regionPointX, double regionPointY, double * imagePointX, double * imagePointY ) { - HRESULT _hr = raw_MapToImage(regionPointX, regionPointY, imagePointX, imagePointY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline IDispatchPtr ILRegion::MapObjectFromImage ( IDispatch * imageObject ) { - IDispatch * _result = 0; - HRESULT _hr = raw_MapObjectFromImage(imageObject, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return IDispatchPtr(_result, false); -} - -inline IDispatchPtr ILRegion::MapObjectToImage ( IDispatch * regionObject ) { - IDispatch * _result = 0; - HRESULT _hr = raw_MapObjectToImage(regionObject, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return IDispatchPtr(_result, false); -} - -inline ILRegionPtr ILRegion::Translate ( double offsetX, double offsetY ) { - struct ILRegion * _result = 0; - HRESULT _hr = raw_Translate(offsetX, offsetY, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRegionPtr(_result, false); -} - -inline ILRegionPtr ILRegion::Scale ( double factorX, double factorY ) { - struct ILRegion * _result = 0; - HRESULT _hr = raw_Scale(factorX, factorY, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRegionPtr(_result, false); -} - -inline ILRegionPtr ILRegion::Rotate ( double da ) { - struct ILRegion * _result = 0; - HRESULT _hr = raw_Rotate(da, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRegionPtr(_result, false); -} - -inline ILRegionPtr ILRegion::RotateAndTranslate ( double x, double y, double newX, double newY, double da ) { - struct ILRegion * _result = 0; - HRESULT _hr = raw_RotateAndTranslate(x, y, newX, newY, da, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRegionPtr(_result, false); -} - -inline ILImagePtr ILRegion::ToMask ( int w, int h ) { - struct ILImage * _result = 0; - HRESULT _hr = raw_ToMask(w, h, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILImagePtr(_result, false); -} - -inline ILRegionPtr ILRegion::Intersect ( struct ILRegion * other ) { - struct ILRegion * _result = 0; - HRESULT _hr = raw_Intersect(other, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRegionPtr(_result, false); -} - -inline ILRegionPtr ILRegion::XOR ( struct ILRegion * other ) { - struct ILRegion * _result = 0; - HRESULT _hr = raw_XOR(other, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRegionPtr(_result, false); -} - -inline ILRegionPtr ILRegion::Copy ( ) { - struct ILRegion * _result = 0; - HRESULT _hr = raw_Copy(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRegionPtr(_result, false); -} - -inline ILRegionPtr ILRegion::Invert ( ) { - struct ILRegion * _result = 0; - HRESULT _hr = raw_Invert(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRegionPtr(_result, false); -} - -inline double ILRegion::GetReduceAngle ( ) { - double _result = 0; - HRESULT _hr = get_ReduceAngle(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILRegion::PutReduceAngle ( double val ) { - HRESULT _hr = put_ReduceAngle(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILRegion::GetReduceScale ( ) { - double _result = 0; - HRESULT _hr = get_ReduceScale(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILRegion::PutReduceScale ( double val ) { - HRESULT _hr = put_ReduceScale(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum LPVInterpolationMethod ILRegion::GetInterpolationMethod ( ) { - enum LPVInterpolationMethod _result; - HRESULT _hr = get_InterpolationMethod(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILRegion::PutInterpolationMethod ( enum LPVInterpolationMethod val ) { - HRESULT _hr = put_InterpolationMethod(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -// -// interface ILRectRegion wrapper method implementations -// - -inline double ILRectRegion::GetLeft ( ) { - double _result = 0; - HRESULT _hr = get_Left(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILRectRegion::PutLeft ( double val ) { - HRESULT _hr = put_Left(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILRectRegion::GetTop ( ) { - double _result = 0; - HRESULT _hr = get_Top(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILRectRegion::PutTop ( double val ) { - HRESULT _hr = put_Top(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILRectRegion::GetWidth ( ) { - double _result = 0; - HRESULT _hr = get_Width(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILRectRegion::PutWidth ( double val ) { - HRESULT _hr = put_Width(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILRectRegion::GetHeight ( ) { - double _result = 0; - HRESULT _hr = get_Height(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILRectRegion::PutHeight ( double val ) { - HRESULT _hr = put_Height(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline HRESULT ILRectRegion::SetPlacement ( double tlx, double tly, double w, double h ) { - HRESULT _hr = raw_SetPlacement(tlx, tly, w, h); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline double ILRectRegion::GetCenterX ( ) { - double _result = 0; - HRESULT _hr = get_CenterX(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILRectRegion::GetCenterY ( ) { - double _result = 0; - HRESULT _hr = get_CenterY(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -// -// interface ILRotRectRegion wrapper method implementations -// - -inline double ILRotRectRegion::GetCenterX ( ) { - double _result = 0; - HRESULT _hr = get_CenterX(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILRotRectRegion::PutCenterX ( double val ) { - HRESULT _hr = put_CenterX(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILRotRectRegion::GetCenterY ( ) { - double _result = 0; - HRESULT _hr = get_CenterY(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILRotRectRegion::PutCenterY ( double val ) { - HRESULT _hr = put_CenterY(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILRotRectRegion::GetWidth ( ) { - double _result = 0; - HRESULT _hr = get_Width(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILRotRectRegion::PutWidth ( double val ) { - HRESULT _hr = put_Width(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILRotRectRegion::GetHeight ( ) { - double _result = 0; - HRESULT _hr = get_Height(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILRotRectRegion::PutHeight ( double val ) { - HRESULT _hr = put_Height(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILRotRectRegion::GetAngle ( ) { - double _result = 0; - HRESULT _hr = get_Angle(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILRotRectRegion::PutAngle ( double val ) { - HRESULT _hr = put_Angle(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline HRESULT ILRotRectRegion::SetPlacement ( double cenx, double ceny, double w, double h, double a ) { - HRESULT _hr = raw_SetPlacement(cenx, ceny, w, h, a); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface ILCircleRegion wrapper method implementations -// - -inline double ILCircleRegion::GetCenterX ( ) { - double _result = 0; - HRESULT _hr = get_CenterX(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILCircleRegion::PutCenterX ( double val ) { - HRESULT _hr = put_CenterX(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILCircleRegion::GetCenterY ( ) { - double _result = 0; - HRESULT _hr = get_CenterY(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILCircleRegion::PutCenterY ( double val ) { - HRESULT _hr = put_CenterY(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILCircleRegion::GetRadius ( ) { - double _result = 0; - HRESULT _hr = get_Radius(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILCircleRegion::PutRadius ( double val ) { - HRESULT _hr = put_Radius(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline HRESULT ILCircleRegion::SetPlacement ( double cenx, double ceny, double r ) { - HRESULT _hr = raw_SetPlacement(cenx, ceny, r); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface ILPolyRegion wrapper method implementations -// - -inline int ILPolyRegion::CtrlCount ( ) { - int _result = 0; - HRESULT _hr = raw_CtrlCount(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT ILPolyRegion::AddCtrl ( double x, double y, int ctrlIndex ) { - HRESULT _hr = raw_AddCtrl(x, y, ctrlIndex); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILPolyRegion::GetCtrl ( int ctrlIndex, double * x, double * y ) { - HRESULT _hr = raw_GetCtrl(ctrlIndex, x, y); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILPolyRegion::SetPlacement ( SAFEARRAY * xs, SAFEARRAY * ys ) { - HRESULT _hr = raw_SetPlacement(xs, ys); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILPolyRegion::RemoveCtrl ( int ctrlIndex ) { - HRESULT _hr = raw_RemoveCtrl(ctrlIndex); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILPolyRegion::SetCtrl ( double x, double y, int ctrlIndex ) { - HRESULT _hr = raw_SetCtrl(x, y, ctrlIndex); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface ILMaskRegion wrapper method implementations -// - -inline HRESULT ILMaskRegion::SetMask ( struct ILImage * mask, double tlx, double tly ) { - HRESULT _hr = raw_SetMask(mask, tlx, tly); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface ILAnnulusRegion wrapper method implementations -// - -inline double ILAnnulusRegion::GetCenterX ( ) { - double _result = 0; - HRESULT _hr = get_CenterX(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILAnnulusRegion::PutCenterX ( double val ) { - HRESULT _hr = put_CenterX(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILAnnulusRegion::GetCenterY ( ) { - double _result = 0; - HRESULT _hr = get_CenterY(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILAnnulusRegion::PutCenterY ( double val ) { - HRESULT _hr = put_CenterY(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILAnnulusRegion::GetInnerRadius ( ) { - double _result = 0; - HRESULT _hr = get_InnerRadius(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILAnnulusRegion::PutInnerRadius ( double val ) { - HRESULT _hr = put_InnerRadius(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILAnnulusRegion::GetOuterRadius ( ) { - double _result = 0; - HRESULT _hr = get_OuterRadius(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILAnnulusRegion::PutOuterRadius ( double val ) { - HRESULT _hr = put_OuterRadius(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline HRESULT ILAnnulusRegion::SetPlacement ( double cenx, double ceny, double rInner, double rOuter ) { - HRESULT _hr = raw_SetPlacement(cenx, ceny, rInner, rOuter); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface ILEllipseRegion wrapper method implementations -// - -inline double ILEllipseRegion::GetCenterX ( ) { - double _result = 0; - HRESULT _hr = get_CenterX(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILEllipseRegion::PutCenterX ( double val ) { - HRESULT _hr = put_CenterX(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILEllipseRegion::GetCenterY ( ) { - double _result = 0; - HRESULT _hr = get_CenterY(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILEllipseRegion::PutCenterY ( double val ) { - HRESULT _hr = put_CenterY(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILEllipseRegion::GetWidth ( ) { - double _result = 0; - HRESULT _hr = get_Width(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILEllipseRegion::PutWidth ( double val ) { - HRESULT _hr = put_Width(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILEllipseRegion::GetHeight ( ) { - double _result = 0; - HRESULT _hr = get_Height(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILEllipseRegion::PutHeight ( double val ) { - HRESULT _hr = put_Height(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILEllipseRegion::GetAngle ( ) { - double _result = 0; - HRESULT _hr = get_Angle(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILEllipseRegion::PutAngle ( double val ) { - HRESULT _hr = put_Angle(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline HRESULT ILEllipseRegion::SetPlacement ( double cenx, double ceny, double w, double h, double a ) { - HRESULT _hr = raw_SetPlacement(cenx, ceny, w, h, a); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface ILAnnulusSectorRegion wrapper method implementations -// - -inline double ILAnnulusSectorRegion::GetCenterX ( ) { - double _result = 0; - HRESULT _hr = get_CenterX(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILAnnulusSectorRegion::PutCenterX ( double val ) { - HRESULT _hr = put_CenterX(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILAnnulusSectorRegion::GetCenterY ( ) { - double _result = 0; - HRESULT _hr = get_CenterY(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILAnnulusSectorRegion::PutCenterY ( double val ) { - HRESULT _hr = put_CenterY(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILAnnulusSectorRegion::GetInnerRadius ( ) { - double _result = 0; - HRESULT _hr = get_InnerRadius(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILAnnulusSectorRegion::PutInnerRadius ( double val ) { - HRESULT _hr = put_InnerRadius(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILAnnulusSectorRegion::GetOuterRadius ( ) { - double _result = 0; - HRESULT _hr = get_OuterRadius(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILAnnulusSectorRegion::PutOuterRadius ( double val ) { - HRESULT _hr = put_OuterRadius(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILAnnulusSectorRegion::GetStartAngle ( ) { - double _result = 0; - HRESULT _hr = get_StartAngle(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILAnnulusSectorRegion::PutStartAngle ( double val ) { - HRESULT _hr = put_StartAngle(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILAnnulusSectorRegion::GetEndAngle ( ) { - double _result = 0; - HRESULT _hr = get_EndAngle(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILAnnulusSectorRegion::PutEndAngle ( double val ) { - HRESULT _hr = put_EndAngle(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline HRESULT ILAnnulusSectorRegion::SetPlacement ( double cenx, double ceny, double rInner, double rOuter, double aStart, double aEnd ) { - HRESULT _hr = raw_SetPlacement(cenx, ceny, rInner, rOuter, aStart, aEnd); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface ILImageList wrapper method implementations -// - -inline int ILImageList::GetMaxCount ( ) { - int _result = 0; - HRESULT _hr = get_MaxCount(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILImageList::PutMaxCount ( int val ) { - HRESULT _hr = put_MaxCount(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline HRESULT ILImageList::Reset ( ) { - HRESULT _hr = raw_Reset(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline int ILImageList::Count ( ) { - int _result = 0; - HRESULT _hr = raw_Count(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT ILImageList::Add ( struct ILImage * img, struct ILRectRegion * region ) { - HRESULT _hr = raw_Add(img, region); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILImageList::Adds ( SAFEARRAY * images ) { - HRESULT _hr = raw_Adds(images); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline ILImagePtr ILImageList::Item ( int imgIndex ) { - struct ILImage * _result = 0; - HRESULT _hr = raw_Item(imgIndex, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILImagePtr(_result, false); -} - -inline VARIANT_BOOL ILImageList::GetUseCache ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_UseCache(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILImageList::PutUseCache ( VARIANT_BOOL val ) { - HRESULT _hr = put_UseCache(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL ILImageList::GetSameSize ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_SameSize(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILImageList::PutSameSize ( VARIANT_BOOL val ) { - HRESULT _hr = put_SameSize(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/lpvGeom.tlh b/tpvs17/SmokeBoxIdentification/x64/Release/lpvGeom.tlh deleted file mode 100644 index 978868e..0000000 --- a/tpvs17/SmokeBoxIdentification/x64/Release/lpvGeom.tlh +++ /dev/null @@ -1,1496 +0,0 @@ -// Created by Microsoft (R) C/C++ Compiler Version 14.16.27051.0 (8aeba44d). -// -// d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvGeom.tlh -// -// C++ source equivalent of Win32 type library 8955aafb-4602-4d6a-a888-69d1437c4d2b -// compiler-generated file created 12/28/23 at 14:09:51 - DO NOT EDIT! - -// -// Cross-referenced type libraries: -// -// - -#pragma once -#pragma pack(push, 8) - -#include - -// -// Forward references and typedefs -// - -struct __declspec(uuid("8955aafb-4602-4d6a-a888-69d1437c4d2b")) -/* LIBID */ __LPVGeomLib; -enum LPVIntersectType; -enum LPVPointTestResult; -struct __declspec(uuid("4ecee3ee-e71c-4dba-b08f-c00c69eebc93")) -/* dual interface */ ILLine; -struct __declspec(uuid("f23b68da-45ed-4203-ac61-731ea2fcae84")) -/* dual interface */ ILPoint; -struct __declspec(uuid("e1d93b22-94d6-497f-bc6d-d852436bd283")) -/* dual interface */ ILTransform; -struct __declspec(uuid("e8d18797-3725-4811-84c7-03536ce85e83")) -/* dual interface */ ILPoints; -struct __declspec(uuid("cfbd782d-5cc7-48ac-b7bb-e07d3d983523")) -/* dual interface */ ILRect; -struct __declspec(uuid("956b9ed4-57fa-4065-b8f0-fa22b5f45204")) -/* dual interface */ ILPolygon; -struct __declspec(uuid("6638b456-970d-476c-9c74-f214d5197f0c")) -/* dual interface */ ILCircle; -struct __declspec(uuid("bd8e9711-2a32-4593-820e-aeaf53286136")) -/* dual interface */ ILArc; -struct __declspec(uuid("12315b29-3f8d-4f4f-bdd3-c45acf4d832b")) -/* dual interface */ ILEllipse; -struct /* coclass */ LPoint; -struct /* coclass */ LPoints; -struct /* coclass */ LCircle; -struct /* coclass */ LLine; -struct /* coclass */ LPolygon; -struct /* coclass */ LRect; -struct /* coclass */ LEllipse; -struct /* coclass */ LArc; -struct /* coclass */ LTransform; - -// -// Smart pointer typedef declarations -// - -_COM_SMARTPTR_TYPEDEF(ILLine, __uuidof(ILLine)); -_COM_SMARTPTR_TYPEDEF(ILPoint, __uuidof(ILPoint)); -_COM_SMARTPTR_TYPEDEF(ILTransform, __uuidof(ILTransform)); -_COM_SMARTPTR_TYPEDEF(ILPoints, __uuidof(ILPoints)); -_COM_SMARTPTR_TYPEDEF(ILRect, __uuidof(ILRect)); -_COM_SMARTPTR_TYPEDEF(ILPolygon, __uuidof(ILPolygon)); -_COM_SMARTPTR_TYPEDEF(ILEllipse, __uuidof(ILEllipse)); -_COM_SMARTPTR_TYPEDEF(ILCircle, __uuidof(ILCircle)); -_COM_SMARTPTR_TYPEDEF(ILArc, __uuidof(ILArc)); - -// -// Type library items -// - -enum LPVIntersectType -{ - LPVIntersectUnbounded = 0, - LPVIntersectBoundedLeft = 1, - LPVIntersectBounded = 2, - LPVIntersectBoundedRight = 3, - LPVIntersectNone = 4, - LPVIntersectBoundedPartial = 1 -}; - -enum LPVPointTestResult -{ - LPVPointTestInside = 0, - LPVPointTestOutside = 1, - LPVPointTestOnEdge = 2 -}; - -struct __declspec(uuid("95da080e-bfb1-4d94-80c1-2f12b8265232")) -LPoint; - // [ default ] interface ILPoint - // interface ILDrawable - // interface ILSortable - -struct __declspec(uuid("72aca2d2-8ed3-4bb0-bfdc-75a584d06fb0")) -LPoints; - // [ default ] interface ILPoints - // interface ILDrawable - // interface ILSortables - // interface ILSortable - -struct __declspec(uuid("62f03494-7d5c-4887-a3c8-d4f10855db7c")) -LCircle; - // [ default ] interface ILCircle - // interface ILDrawable - // interface ILSortable - -struct __declspec(uuid("45954f31-ed28-4608-859f-5554a86a16e2")) -LLine; - // [ default ] interface ILLine - // interface ILDrawable - // interface ILSortable - -struct __declspec(uuid("d4b46ac0-95ca-4e21-99ad-1fb67b78bd8c")) -LPolygon; - // [ default ] interface ILPolygon - // interface ILDrawable - // interface ILSortable - -struct __declspec(uuid("d489e3a7-0717-4e49-b2b8-fd390d9e99ee")) -LRect; - // [ default ] interface ILRect - // interface ILDrawable - // interface ILSortable - -struct __declspec(uuid("292ddf7a-a20f-409e-8546-ad2a6670e269")) -LEllipse; - // [ default ] interface ILEllipse - // interface ILDrawable - // interface ILSortable - -struct __declspec(uuid("f4d662ee-3dfd-492e-87bb-1696c3accd56")) -LArc; - // [ default ] interface ILArc - // interface ILDrawable - // interface ILSortable - -struct __declspec(uuid("118c59d5-fc88-42a1-980c-b090b7423b8a")) -LTransform; - // [ default ] interface ILTransform - -struct __declspec(uuid("4ecee3ee-e71c-4dba-b08f-c00c69eebc93")) -ILLine : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetX1,put=PutX1)) - double X1; - __declspec(property(get=GetY1,put=PutY1)) - double Y1; - __declspec(property(get=GetX2,put=PutX2)) - double X2; - __declspec(property(get=GetY2,put=PutY2)) - double Y2; - - // - // Wrapper methods for error-handling - // - - double GetX1 ( ); - void PutX1 ( - double val ); - double GetY1 ( ); - void PutY1 ( - double val ); - double GetX2 ( ); - void PutX2 ( - double val ); - double GetY2 ( ); - void PutY2 ( - double val ); - VARIANT_BOOL Valid ( ); - HRESULT Set ( - double X1, - double Y1, - double X2, - double Y2 ); - HRESULT Set2 ( - double midx, - double midy, - double lineAngle, - double length ); - HRESULT Draw ( - void * hdc, - double zoomX, - double zoomY, - double panX, - double panY ); - ILPointPtr GetMidPoint ( ); - double GetAngle ( ); - double GetLength ( ); - enum LPVIntersectType IntersectLine ( - struct ILLine * line, - struct ILPoint * * intersectPoint ); - enum LPVIntersectType IntersectCircle ( - struct ILCircle * circle, - struct ILPoints * * intersectPoints ); - enum LPVIntersectType IntersectPoly ( - struct ILPolygon * polygon, - struct ILPoints * * intersectPoints ); - double Perpendicular ( - struct ILPoint * point, - struct ILPoint * * rootPoint ); - ILLinePtr BisectLine ( - struct ILLine * line ); - double Distance ( - struct ILLine * line ); - double AcuteAngle ( - struct ILLine * line ); - double Parallel ( - struct ILLine * line ); - double AngleTo ( - struct ILLine * line ); - ILLinePtr Translate ( - double offsetX, - double offsetY ); - ILLinePtr Transform ( - struct ILTransform * tf ); - ILRotRectRegionPtr ToRotRectRegion ( - int exp ); - HRESULT FromRotRectRegion ( - struct ILRotRectRegion * val ); - ILPolygonPtr Resample ( - int num ); - ILPolygonPtr ResampleByStep ( - double step, - double stepThreshold ); - double GetX ( - double Y ); - double GetY ( - double X ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_X1 ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_X1 ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Y1 ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Y1 ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_X2 ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_X2 ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Y2 ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Y2 ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall raw_Valid ( - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall raw_Set ( - /*[in]*/ double X1, - /*[in]*/ double Y1, - /*[in]*/ double X2, - /*[in]*/ double Y2 ) = 0; - virtual HRESULT __stdcall raw_Set2 ( - /*[in]*/ double midx, - /*[in]*/ double midy, - /*[in]*/ double lineAngle, - /*[in]*/ double length ) = 0; - virtual HRESULT __stdcall raw_Draw ( - /*[in]*/ void * hdc, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; - virtual HRESULT __stdcall raw_GetMidPoint ( - /*[out,retval]*/ struct ILPoint * * result ) = 0; - virtual HRESULT __stdcall raw_GetAngle ( - /*[out,retval]*/ double * result ) = 0; - virtual HRESULT __stdcall raw_GetLength ( - /*[out,retval]*/ double * result ) = 0; - virtual HRESULT __stdcall raw_IntersectLine ( - /*[in]*/ struct ILLine * line, - /*[out]*/ struct ILPoint * * intersectPoint, - /*[out,retval]*/ enum LPVIntersectType * type ) = 0; - virtual HRESULT __stdcall raw_IntersectCircle ( - /*[in]*/ struct ILCircle * circle, - /*[out]*/ struct ILPoints * * intersectPoints, - /*[out,retval]*/ enum LPVIntersectType * type ) = 0; - virtual HRESULT __stdcall raw_IntersectPoly ( - /*[in]*/ struct ILPolygon * polygon, - /*[out]*/ struct ILPoints * * intersectPoints, - /*[out,retval]*/ enum LPVIntersectType * type ) = 0; - virtual HRESULT __stdcall raw_Perpendicular ( - /*[in]*/ struct ILPoint * point, - /*[out]*/ struct ILPoint * * rootPoint, - /*[out,retval]*/ double * Distance ) = 0; - virtual HRESULT __stdcall raw_BisectLine ( - /*[in]*/ struct ILLine * line, - /*[out,retval]*/ struct ILLine * * result ) = 0; - virtual HRESULT __stdcall raw_Distance ( - /*[in]*/ struct ILLine * line, - /*[out,retval]*/ double * result ) = 0; - virtual HRESULT __stdcall raw_AcuteAngle ( - /*[in]*/ struct ILLine * line, - /*[out,retval]*/ double * result ) = 0; - virtual HRESULT __stdcall raw_Parallel ( - /*[in]*/ struct ILLine * line, - /*[out,retval]*/ double * result ) = 0; - virtual HRESULT __stdcall raw_AngleTo ( - /*[in]*/ struct ILLine * line, - /*[out,retval]*/ double * result ) = 0; - virtual HRESULT __stdcall raw_Translate ( - /*[in]*/ double offsetX, - /*[in]*/ double offsetY, - /*[out,retval]*/ struct ILLine * * result ) = 0; - virtual HRESULT __stdcall raw_Transform ( - /*[in]*/ struct ILTransform * tf, - /*[out,retval]*/ struct ILLine * * result ) = 0; - virtual HRESULT __stdcall raw_ToRotRectRegion ( - /*[in]*/ int exp, - /*[out,retval]*/ struct ILRotRectRegion * * val ) = 0; - virtual HRESULT __stdcall raw_FromRotRectRegion ( - /*[in]*/ struct ILRotRectRegion * val ) = 0; - virtual HRESULT __stdcall raw_Resample ( - /*[in]*/ int num, - /*[out,retval]*/ struct ILPolygon * * result ) = 0; - virtual HRESULT __stdcall raw_ResampleByStep ( - /*[in]*/ double step, - /*[in]*/ double stepThreshold, - /*[out,retval]*/ struct ILPolygon * * result ) = 0; - virtual HRESULT __stdcall raw_GetX ( - /*[in]*/ double Y, - /*[out,retval]*/ double * X ) = 0; - virtual HRESULT __stdcall raw_GetY ( - /*[in]*/ double X, - /*[out,retval]*/ double * Y ) = 0; -}; - -struct __declspec(uuid("f23b68da-45ed-4203-ac61-731ea2fcae84")) -ILPoint : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetX,put=PutX)) - double X; - __declspec(property(get=GetY,put=PutY)) - double Y; - - // - // Wrapper methods for error-handling - // - - double GetX ( ); - void PutX ( - double val ); - double GetY ( ); - void PutY ( - double val ); - VARIANT_BOOL Valid ( ); - HRESULT Set ( - double X, - double Y ); - HRESULT Draw ( - enum LPVPointShape shape, - void * hdc, - double zoomX, - double zoomY, - double panX, - double panY ); - ILPointPtr MidPoint ( - struct ILPoint * point ); - double DotProduct ( - struct ILPoint * point ); - double Distance ( - struct ILPoint * point ); - double DistanceWithRefLine ( - struct ILPoint * point, - struct ILLine * refLine ); - double Collinear ( - struct ILPoint * point1, - struct ILPoint * point2 ); - ILPointPtr Translate ( - double offsetX, - double offsetY ); - ILPointPtr Scale ( - double factorX, - double factorY ); - ILPointPtr Transform ( - struct ILTransform * tf ); - HRESULT FromSortable ( - struct ILSortable * obj, - enum LPVPositionMode posMode ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_X ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_X ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Y ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Y ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall raw_Valid ( - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall raw_Set ( - /*[in]*/ double X, - /*[in]*/ double Y ) = 0; - virtual HRESULT __stdcall raw_Draw ( - /*[in]*/ enum LPVPointShape shape, - /*[in]*/ void * hdc, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; - virtual HRESULT __stdcall raw_MidPoint ( - /*[in]*/ struct ILPoint * point, - /*[out,retval]*/ struct ILPoint * * result ) = 0; - virtual HRESULT __stdcall raw_DotProduct ( - /*[in]*/ struct ILPoint * point, - /*[out,retval]*/ double * result ) = 0; - virtual HRESULT __stdcall raw_Distance ( - /*[in]*/ struct ILPoint * point, - /*[out,retval]*/ double * result ) = 0; - virtual HRESULT __stdcall raw_DistanceWithRefLine ( - /*[in]*/ struct ILPoint * point, - /*[in]*/ struct ILLine * refLine, - /*[out,retval]*/ double * result ) = 0; - virtual HRESULT __stdcall raw_Collinear ( - /*[in]*/ struct ILPoint * point1, - /*[in]*/ struct ILPoint * point2, - /*[out,retval]*/ double * result ) = 0; - virtual HRESULT __stdcall raw_Translate ( - /*[in]*/ double offsetX, - /*[in]*/ double offsetY, - /*[out,retval]*/ struct ILPoint * * result ) = 0; - virtual HRESULT __stdcall raw_Scale ( - /*[in]*/ double factorX, - /*[in]*/ double factorY, - /*[out,retval]*/ struct ILPoint * * result ) = 0; - virtual HRESULT __stdcall raw_Transform ( - /*[in]*/ struct ILTransform * tf, - /*[out,retval]*/ struct ILPoint * * result ) = 0; - virtual HRESULT __stdcall raw_FromSortable ( - /*[in]*/ struct ILSortable * obj, - /*[in]*/ enum LPVPositionMode posMode ) = 0; -}; - -struct __declspec(uuid("e1d93b22-94d6-497f-bc6d-d852436bd283")) -ILTransform : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetMatrix,put=PutMatrix)) - struct LMatrix33 Matrix; - - // - // Wrapper methods for error-handling - // - - struct LMatrix33 GetMatrix ( ); - void PutMatrix ( - struct LMatrix33 val ); - ILTransformPtr Translate ( - double offsetX, - double offsetY ); - ILTransformPtr Scale ( - double factorX, - double factorY ); - ILTransformPtr Rotate ( - double da, - enum LPVAxis axis ); - ILTransformPtr Transform ( - struct ILTransform * tf ); - double Build ( - struct ILPoints * srcPoints, - struct ILPoints * dstPoints, - enum LPVTransformType type ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Matrix ( - /*[out,retval]*/ struct LMatrix33 * val ) = 0; - virtual HRESULT __stdcall put_Matrix ( - /*[in]*/ struct LMatrix33 val ) = 0; - virtual HRESULT __stdcall raw_Translate ( - /*[in]*/ double offsetX, - /*[in]*/ double offsetY, - /*[out,retval]*/ struct ILTransform * * result ) = 0; - virtual HRESULT __stdcall raw_Scale ( - /*[in]*/ double factorX, - /*[in]*/ double factorY, - /*[out,retval]*/ struct ILTransform * * result ) = 0; - virtual HRESULT __stdcall raw_Rotate ( - /*[in]*/ double da, - /*[in]*/ enum LPVAxis axis, - /*[out,retval]*/ struct ILTransform * * result ) = 0; - virtual HRESULT __stdcall raw_Transform ( - /*[in]*/ struct ILTransform * tf, - /*[out,retval]*/ struct ILTransform * * result ) = 0; - virtual HRESULT __stdcall raw_Build ( - /*[in]*/ struct ILPoints * srcPoints, - /*[in]*/ struct ILPoints * dstPoints, - /*[in]*/ enum LPVTransformType type, - /*[out,retval]*/ double * mapError ) = 0; -}; - -struct __declspec(uuid("e8d18797-3725-4811-84c7-03536ce85e83")) -ILPoints : IDispatch -{ - // - // Wrapper methods for error-handling - // - - VARIANT_BOOL Valid ( ); - HRESULT Reset ( ); - int Count ( ); - ILPointPtr Item ( - int index ); - HRESULT Add ( - double X, - double Y ); - HRESULT Draw ( - enum LPVPointShape shape, - void * hdc, - double zoomX, - double zoomY, - double panX, - double panY ); - HRESULT SetPoints ( - SAFEARRAY * xs, - SAFEARRAY * ys ); - HRESULT AddPoints ( - struct ILPoints * points ); - HRESULT RemovePoints ( - double lbX, - double ubX, - double lbY, - double ubY ); - HRESULT GetPoints ( - SAFEARRAY * xs, - SAFEARRAY * ys ); - ILRectPtr GetBoundingRect ( ); - ILRectPtr GetBoundingRotRect ( ); - ILCirclePtr GetBoundingCircle ( ); - ILPolygonPtr GetConvexHull ( ); - ILLinePtr FitLine ( - double fitDistThreshold, - int fitCountThreshold ); - ILCirclePtr FitCircle ( - double fitDistThreshold, - int fitCountThreshold ); - ILEllipsePtr FitEllipse ( ); - ILPointPtr GetCenter ( ); - SAFEARRAY * DistancesToPoint ( - struct ILPoint * point ); - SAFEARRAY * DistancesToLine ( - struct ILLine * line ); - SAFEARRAY * DistancesToPolygon ( - struct ILPolygon * polygon, - SAFEARRAY * * rootPoints ); - SAFEARRAY * DistancesToPoints ( - struct ILPoints * points, - SAFEARRAY * * indexes ); - double DistanceToPoint ( - struct ILPoint * point, - enum LPVAggregation aggType ); - double DistanceToLine ( - struct ILLine * line, - enum LPVAggregation aggType ); - double DistanceToPolygon ( - struct ILPolygon * polygon, - enum LPVAggregation aggType ); - double DistanceToPoints ( - struct ILPoints * points, - enum LPVAggregation aggType ); - ILPointsPtr Translate ( - double offsetX, - double offsetY ); - ILPointsPtr Scale ( - double factorX, - double factorY ); - ILPointsPtr Transform ( - struct ILTransform * tf ); - HRESULT AddPointsInRegion ( - struct ILRegion * region ); - HRESULT FromSortables ( - struct ILSortables * obj, - enum LPVPositionMode posMode ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Valid ( - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall raw_Reset ( ) = 0; - virtual HRESULT __stdcall raw_Count ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall raw_Item ( - /*[in]*/ int index, - /*[out,retval]*/ struct ILPoint * * point ) = 0; - virtual HRESULT __stdcall raw_Add ( - /*[in]*/ double X, - /*[in]*/ double Y ) = 0; - virtual HRESULT __stdcall raw_Draw ( - /*[in]*/ enum LPVPointShape shape, - /*[in]*/ void * hdc, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; - virtual HRESULT __stdcall raw_SetPoints ( - /*[in]*/ SAFEARRAY * xs, - /*[in]*/ SAFEARRAY * ys ) = 0; - virtual HRESULT __stdcall raw_AddPoints ( - /*[in]*/ struct ILPoints * points ) = 0; - virtual HRESULT __stdcall raw_RemovePoints ( - /*[in]*/ double lbX, - /*[in]*/ double ubX, - /*[in]*/ double lbY, - /*[in]*/ double ubY ) = 0; - virtual HRESULT __stdcall raw_GetPoints ( - /*[out]*/ SAFEARRAY * xs, - /*[out]*/ SAFEARRAY * ys ) = 0; - virtual HRESULT __stdcall raw_GetBoundingRect ( - /*[out,retval]*/ struct ILRect * * val ) = 0; - virtual HRESULT __stdcall raw_GetBoundingRotRect ( - /*[out,retval]*/ struct ILRect * * val ) = 0; - virtual HRESULT __stdcall raw_GetBoundingCircle ( - /*[out,retval]*/ struct ILCircle * * val ) = 0; - virtual HRESULT __stdcall raw_GetConvexHull ( - /*[out,retval]*/ struct ILPolygon * * val ) = 0; - virtual HRESULT __stdcall raw_FitLine ( - /*[in]*/ double fitDistThreshold, - /*[in]*/ int fitCountThreshold, - /*[out,retval]*/ struct ILLine * * val ) = 0; - virtual HRESULT __stdcall raw_FitCircle ( - /*[in]*/ double fitDistThreshold, - /*[in]*/ int fitCountThreshold, - /*[out,retval]*/ struct ILCircle * * val ) = 0; - virtual HRESULT __stdcall raw_FitEllipse ( - /*[out,retval]*/ struct ILEllipse * * val ) = 0; - virtual HRESULT __stdcall raw_GetCenter ( - /*[out,retval]*/ struct ILPoint * * val ) = 0; - virtual HRESULT __stdcall raw_DistancesToPoint ( - /*[in]*/ struct ILPoint * point, - /*[out,retval]*/ SAFEARRAY * * vals ) = 0; - virtual HRESULT __stdcall raw_DistancesToLine ( - /*[in]*/ struct ILLine * line, - /*[out,retval]*/ SAFEARRAY * * vals ) = 0; - virtual HRESULT __stdcall raw_DistancesToPolygon ( - /*[in]*/ struct ILPolygon * polygon, - /*[out]*/ SAFEARRAY * * rootPoints, - /*[out,retval]*/ SAFEARRAY * * vals ) = 0; - virtual HRESULT __stdcall raw_DistancesToPoints ( - /*[in]*/ struct ILPoints * points, - /*[out]*/ SAFEARRAY * * indexes, - /*[out,retval]*/ SAFEARRAY * * vals ) = 0; - virtual HRESULT __stdcall raw_DistanceToPoint ( - /*[in]*/ struct ILPoint * point, - /*[in]*/ enum LPVAggregation aggType, - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall raw_DistanceToLine ( - /*[in]*/ struct ILLine * line, - /*[in]*/ enum LPVAggregation aggType, - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall raw_DistanceToPolygon ( - /*[in]*/ struct ILPolygon * polygon, - /*[in]*/ enum LPVAggregation aggType, - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall raw_DistanceToPoints ( - /*[in]*/ struct ILPoints * points, - /*[in]*/ enum LPVAggregation aggType, - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall raw_Translate ( - /*[in]*/ double offsetX, - /*[in]*/ double offsetY, - /*[out,retval]*/ struct ILPoints * * results ) = 0; - virtual HRESULT __stdcall raw_Scale ( - /*[in]*/ double factorX, - /*[in]*/ double factorY, - /*[out,retval]*/ struct ILPoints * * results ) = 0; - virtual HRESULT __stdcall raw_Transform ( - /*[in]*/ struct ILTransform * tf, - /*[out,retval]*/ struct ILPoints * * result ) = 0; - virtual HRESULT __stdcall raw_AddPointsInRegion ( - /*[in]*/ struct ILRegion * region ) = 0; - virtual HRESULT __stdcall raw_FromSortables ( - /*[in]*/ struct ILSortables * obj, - /*[in]*/ enum LPVPositionMode posMode ) = 0; -}; - -struct __declspec(uuid("cfbd782d-5cc7-48ac-b7bb-e07d3d983523")) -ILRect : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetX,put=PutX)) - double X; - __declspec(property(get=GetY,put=PutY)) - double Y; - __declspec(property(get=GetWidth,put=PutWidth)) - double Width; - __declspec(property(get=GetHeight,put=PutHeight)) - double Height; - __declspec(property(get=GetAngle,put=PutAngle)) - double Angle; - - // - // Wrapper methods for error-handling - // - - double GetX ( ); - void PutX ( - double val ); - double GetY ( ); - void PutY ( - double val ); - double GetWidth ( ); - void PutWidth ( - double val ); - double GetHeight ( ); - void PutHeight ( - double val ); - double GetAngle ( ); - void PutAngle ( - double val ); - VARIANT_BOOL Valid ( ); - HRESULT Set ( - double X, - double Y, - double w, - double h, - double a ); - HRESULT Draw ( - VARIANT_BOOL bFill, - void * hdc, - double zoomX, - double zoomY, - double panX, - double panY ); - ILRectPtr Adjust ( - double dtop, - double dbottom, - double dleft, - double dright ); - ILPointPtr GetCenter ( ); - ILPointPtr GetTopLeft ( ); - ILPointPtr GetTopRight ( ); - ILPointPtr GetBottomLeft ( ); - ILPointPtr GetBottomRight ( ); - ILPointsPtr GetPoints ( ); - enum LPVPointTestResult PointTest ( - struct ILPoint * point ); - ILRectPtr Translate ( - double offsetX, - double offsetY ); - ILRectPtr Transform ( - struct ILTransform * tf ); - ILRotRectRegionPtr ToRotRectRegion ( ); - HRESULT FromRotRectRegion ( - struct ILRotRectRegion * val ); - ILRectRegionPtr ToRectRegion ( ); - HRESULT FromRectRegion ( - struct ILRectRegion * val ); - double GetPerimeter ( ); - double GetArea ( ); - ILRectPtr GetBoundingRect ( ); - ILLinePtr GetTop ( ); - ILLinePtr GetBottom ( ); - ILLinePtr GetLeft ( ); - ILLinePtr GetRight ( ); - ILPolygonPtr Resample ( - int num ); - ILPolygonPtr ResampleByStep ( - double step, - double stepThreshold ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_X ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_X ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Y ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Y ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Width ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Width ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Height ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Height ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Angle ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Angle ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall raw_Valid ( - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall raw_Set ( - /*[in]*/ double X, - /*[in]*/ double Y, - /*[in]*/ double w, - /*[in]*/ double h, - /*[in]*/ double a ) = 0; - virtual HRESULT __stdcall raw_Draw ( - /*[in]*/ VARIANT_BOOL bFill, - /*[in]*/ void * hdc, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; - virtual HRESULT __stdcall raw_Adjust ( - /*[in]*/ double dtop, - /*[in]*/ double dbottom, - /*[in]*/ double dleft, - /*[in]*/ double dright, - /*[out,retval]*/ struct ILRect * * result ) = 0; - virtual HRESULT __stdcall raw_GetCenter ( - /*[out,retval]*/ struct ILPoint * * val ) = 0; - virtual HRESULT __stdcall raw_GetTopLeft ( - /*[out,retval]*/ struct ILPoint * * val ) = 0; - virtual HRESULT __stdcall raw_GetTopRight ( - /*[out,retval]*/ struct ILPoint * * val ) = 0; - virtual HRESULT __stdcall raw_GetBottomLeft ( - /*[out,retval]*/ struct ILPoint * * val ) = 0; - virtual HRESULT __stdcall raw_GetBottomRight ( - /*[out,retval]*/ struct ILPoint * * val ) = 0; - virtual HRESULT __stdcall raw_GetPoints ( - /*[out,retval]*/ struct ILPoints * * val ) = 0; - virtual HRESULT __stdcall raw_PointTest ( - /*[in]*/ struct ILPoint * point, - /*[out,retval]*/ enum LPVPointTestResult * val ) = 0; - virtual HRESULT __stdcall raw_Translate ( - /*[in]*/ double offsetX, - /*[in]*/ double offsetY, - /*[out,retval]*/ struct ILRect * * result ) = 0; - virtual HRESULT __stdcall raw_Transform ( - /*[in]*/ struct ILTransform * tf, - /*[out,retval]*/ struct ILRect * * result ) = 0; - virtual HRESULT __stdcall raw_ToRotRectRegion ( - /*[out,retval]*/ struct ILRotRectRegion * * val ) = 0; - virtual HRESULT __stdcall raw_FromRotRectRegion ( - /*[in]*/ struct ILRotRectRegion * val ) = 0; - virtual HRESULT __stdcall raw_ToRectRegion ( - /*[out,retval]*/ struct ILRectRegion * * val ) = 0; - virtual HRESULT __stdcall raw_FromRectRegion ( - /*[in]*/ struct ILRectRegion * val ) = 0; - virtual HRESULT __stdcall raw_GetPerimeter ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall raw_GetArea ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall raw_GetBoundingRect ( - /*[out,retval]*/ struct ILRect * * val ) = 0; - virtual HRESULT __stdcall raw_GetTop ( - /*[out,retval]*/ struct ILLine * * val ) = 0; - virtual HRESULT __stdcall raw_GetBottom ( - /*[out,retval]*/ struct ILLine * * val ) = 0; - virtual HRESULT __stdcall raw_GetLeft ( - /*[out,retval]*/ struct ILLine * * val ) = 0; - virtual HRESULT __stdcall raw_GetRight ( - /*[out,retval]*/ struct ILLine * * val ) = 0; - virtual HRESULT __stdcall raw_Resample ( - /*[in]*/ int num, - /*[out,retval]*/ struct ILPolygon * * result ) = 0; - virtual HRESULT __stdcall raw_ResampleByStep ( - /*[in]*/ double step, - /*[in]*/ double stepThreshold, - /*[out,retval]*/ struct ILPolygon * * result ) = 0; -}; - -struct __declspec(uuid("956b9ed4-57fa-4065-b8f0-fa22b5f45204")) -ILPolygon : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetClosed,put=PutClosed)) - VARIANT_BOOL Closed; - - // - // Wrapper methods for error-handling - // - - VARIANT_BOOL Valid ( ); - HRESULT Reset ( ); - int Count ( ); - ILPointPtr Item ( - int index ); - HRESULT Set ( - int index, - double X, - double Y ); - HRESULT Draw ( - VARIANT_BOOL bFill, - void * hdc, - double zoomX, - double zoomY, - double panX, - double panY ); - HRESULT SetPolygon ( - SAFEARRAY * xs, - SAFEARRAY * ys, - VARIANT_BOOL isClosed ); - HRESULT AddPoints ( - struct ILPoints * points ); - HRESULT RemovePoints ( - double lbX, - double ubX, - double lbY, - double ubY ); - ILPointsPtr GetPoints ( ); - VARIANT_BOOL GetClosed ( ); - void PutClosed ( - VARIANT_BOOL val ); - enum LPVPointTestResult PointTest ( - struct ILPoint * point ); - enum LPVIntersectType IntersectLine ( - struct ILLine * line, - struct ILPoints * * intersectPoints ); - ILCirclePtr GetInscribedCircle ( ); - ILPointPtr GetGravityCenter ( ); - double DistanceToPoint ( - struct ILPoint * point, - enum LPVAggregation aggType, - struct ILPoint * * rootPoint ); - double DistanceToPolygon ( - struct ILPolygon * polygon, - enum LPVAggregation aggType, - struct ILPoint * * rootPoint1, - struct ILPoint * * rootPoint2 ); - ILPolygonPtr Translate ( - double offsetX, - double offsetY ); - ILPolygonPtr Transform ( - struct ILTransform * tf ); - ILPolyRegionPtr ToPolyRegion ( ); - HRESULT FromPolyRegion ( - struct ILPolyRegion * val ); - double GetPerimeter ( ); - double GetArea ( ); - ILPolygonPtr Resample ( - int num ); - ILPolygonPtr ResampleByStep ( - double step, - double stepThreshold ); - VARIANT_BOOL IntersectPolygon ( - struct ILPolygon * polygon, - struct ILPoints * * intersectPoints ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Valid ( - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall raw_Reset ( ) = 0; - virtual HRESULT __stdcall raw_Count ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall raw_Item ( - /*[in]*/ int index, - /*[out,retval]*/ struct ILPoint * * point ) = 0; - virtual HRESULT __stdcall raw_Set ( - /*[in]*/ int index, - /*[in]*/ double X, - /*[in]*/ double Y ) = 0; - virtual HRESULT __stdcall raw_Draw ( - /*[in]*/ VARIANT_BOOL bFill, - /*[in]*/ void * hdc, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; - virtual HRESULT __stdcall raw_SetPolygon ( - /*[in]*/ SAFEARRAY * xs, - /*[in]*/ SAFEARRAY * ys, - /*[in]*/ VARIANT_BOOL isClosed ) = 0; - virtual HRESULT __stdcall raw_AddPoints ( - /*[in]*/ struct ILPoints * points ) = 0; - virtual HRESULT __stdcall raw_RemovePoints ( - /*[in]*/ double lbX, - /*[in]*/ double ubX, - /*[in]*/ double lbY, - /*[in]*/ double ubY ) = 0; - virtual HRESULT __stdcall raw_GetPoints ( - /*[out,retval]*/ struct ILPoints * * val ) = 0; - virtual HRESULT __stdcall get_Closed ( - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall put_Closed ( - /*[in]*/ VARIANT_BOOL val ) = 0; - virtual HRESULT __stdcall raw_PointTest ( - /*[in]*/ struct ILPoint * point, - /*[out,retval]*/ enum LPVPointTestResult * val ) = 0; - virtual HRESULT __stdcall raw_IntersectLine ( - /*[in]*/ struct ILLine * line, - /*[out]*/ struct ILPoints * * intersectPoints, - /*[out,retval]*/ enum LPVIntersectType * type ) = 0; - virtual HRESULT __stdcall raw_GetInscribedCircle ( - /*[out,retval]*/ struct ILCircle * * val ) = 0; - virtual HRESULT __stdcall raw_GetGravityCenter ( - /*[out,retval]*/ struct ILPoint * * val ) = 0; - virtual HRESULT __stdcall raw_DistanceToPoint ( - /*[in]*/ struct ILPoint * point, - /*[in]*/ enum LPVAggregation aggType, - /*[out]*/ struct ILPoint * * rootPoint, - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall raw_DistanceToPolygon ( - /*[in]*/ struct ILPolygon * polygon, - /*[in]*/ enum LPVAggregation aggType, - /*[out]*/ struct ILPoint * * rootPoint1, - /*[out]*/ struct ILPoint * * rootPoint2, - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall raw_Translate ( - /*[in]*/ double offsetX, - /*[in]*/ double offsetY, - /*[out,retval]*/ struct ILPolygon * * results ) = 0; - virtual HRESULT __stdcall raw_Transform ( - /*[in]*/ struct ILTransform * tf, - /*[out,retval]*/ struct ILPolygon * * result ) = 0; - virtual HRESULT __stdcall raw_ToPolyRegion ( - /*[out,retval]*/ struct ILPolyRegion * * val ) = 0; - virtual HRESULT __stdcall raw_FromPolyRegion ( - /*[in]*/ struct ILPolyRegion * val ) = 0; - virtual HRESULT __stdcall raw_GetPerimeter ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall raw_GetArea ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall raw_Resample ( - /*[in]*/ int num, - /*[out,retval]*/ struct ILPolygon * * result ) = 0; - virtual HRESULT __stdcall raw_ResampleByStep ( - /*[in]*/ double step, - /*[in]*/ double stepThreshold, - /*[out,retval]*/ struct ILPolygon * * result ) = 0; - virtual HRESULT __stdcall raw_IntersectPolygon ( - /*[in]*/ struct ILPolygon * polygon, - /*[out]*/ struct ILPoints * * intersectPoints, - /*[out,retval]*/ VARIANT_BOOL * result ) = 0; -}; - -struct __declspec(uuid("12315b29-3f8d-4f4f-bdd3-c45acf4d832b")) -ILEllipse : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetX,put=PutX)) - double X; - __declspec(property(get=GetY,put=PutY)) - double Y; - __declspec(property(get=GetWidth,put=PutWidth)) - double Width; - __declspec(property(get=GetHeight,put=PutHeight)) - double Height; - __declspec(property(get=GetAngle,put=PutAngle)) - double Angle; - - // - // Wrapper methods for error-handling - // - - double GetX ( ); - void PutX ( - double val ); - double GetY ( ); - void PutY ( - double val ); - double GetWidth ( ); - void PutWidth ( - double val ); - double GetHeight ( ); - void PutHeight ( - double val ); - double GetAngle ( ); - void PutAngle ( - double val ); - VARIANT_BOOL Valid ( ); - HRESULT Set ( - double X, - double Y, - double w, - double h, - double a ); - HRESULT Draw ( - VARIANT_BOOL bFill, - void * hdc, - double zoomX, - double zoomY, - double panX, - double panY ); - ILPointPtr GetCenter ( ); - ILPointPtr GetTop ( ); - ILPointPtr GetBottom ( ); - ILPointPtr GetLeft ( ); - ILPointPtr GetRight ( ); - ILRectPtr GetBoundingRect ( ); - ILRectPtr GetBoundingRotRect ( ); - ILPolygonPtr SamplingByAngle ( - double startArcAngle, - double endArcAngle, - double stepAngle ); - ILEllipsePtr Translate ( - double offsetX, - double offsetY ); - ILEllipsePtr Transform ( - struct ILTransform * tf ); - ILEllipseRegionPtr ToEllipseRegion ( ); - HRESULT FromEllipseRegion ( - struct ILEllipseRegion * val ); - double GetPerimeter ( ); - double GetArea ( ); - ILPolygonPtr Resample ( - int num ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_X ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_X ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Y ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Y ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Width ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Width ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Height ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Height ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Angle ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Angle ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall raw_Valid ( - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall raw_Set ( - /*[in]*/ double X, - /*[in]*/ double Y, - /*[in]*/ double w, - /*[in]*/ double h, - /*[in]*/ double a ) = 0; - virtual HRESULT __stdcall raw_Draw ( - /*[in]*/ VARIANT_BOOL bFill, - /*[in]*/ void * hdc, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; - virtual HRESULT __stdcall raw_GetCenter ( - /*[out,retval]*/ struct ILPoint * * val ) = 0; - virtual HRESULT __stdcall raw_GetTop ( - /*[out,retval]*/ struct ILPoint * * val ) = 0; - virtual HRESULT __stdcall raw_GetBottom ( - /*[out,retval]*/ struct ILPoint * * val ) = 0; - virtual HRESULT __stdcall raw_GetLeft ( - /*[out,retval]*/ struct ILPoint * * val ) = 0; - virtual HRESULT __stdcall raw_GetRight ( - /*[out,retval]*/ struct ILPoint * * val ) = 0; - virtual HRESULT __stdcall raw_GetBoundingRect ( - /*[out,retval]*/ struct ILRect * * val ) = 0; - virtual HRESULT __stdcall raw_GetBoundingRotRect ( - /*[out,retval]*/ struct ILRect * * val ) = 0; - virtual HRESULT __stdcall raw_SamplingByAngle ( - /*[in]*/ double startArcAngle, - /*[in]*/ double endArcAngle, - /*[in]*/ double stepAngle, - /*[out,retval]*/ struct ILPolygon * * result ) = 0; - virtual HRESULT __stdcall raw_Translate ( - /*[in]*/ double offsetX, - /*[in]*/ double offsetY, - /*[out,retval]*/ struct ILEllipse * * result ) = 0; - virtual HRESULT __stdcall raw_Transform ( - /*[in]*/ struct ILTransform * tf, - /*[out,retval]*/ struct ILEllipse * * result ) = 0; - virtual HRESULT __stdcall raw_ToEllipseRegion ( - /*[out,retval]*/ struct ILEllipseRegion * * val ) = 0; - virtual HRESULT __stdcall raw_FromEllipseRegion ( - /*[in]*/ struct ILEllipseRegion * val ) = 0; - virtual HRESULT __stdcall raw_GetPerimeter ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall raw_GetArea ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall raw_Resample ( - /*[in]*/ int num, - /*[out,retval]*/ struct ILPolygon * * result ) = 0; -}; - -struct __declspec(uuid("6638b456-970d-476c-9c74-f214d5197f0c")) -ILCircle : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetX,put=PutX)) - double X; - __declspec(property(get=GetY,put=PutY)) - double Y; - __declspec(property(get=GetRadius,put=PutRadius)) - double Radius; - - // - // Wrapper methods for error-handling - // - - double GetX ( ); - void PutX ( - double val ); - double GetY ( ); - void PutY ( - double val ); - double GetRadius ( ); - void PutRadius ( - double val ); - VARIANT_BOOL Valid ( ); - HRESULT Set ( - double X, - double Y, - double r ); - HRESULT Draw ( - VARIANT_BOOL bFill, - void * hdc, - double zoomX, - double zoomY, - double panX, - double panY ); - ILPointPtr GetCenter ( ); - ILArcPtr GetArc ( - double aStart, - double aEnd ); - enum LPVPointTestResult PointTest ( - struct ILPoint * point ); - double Concentric ( - struct ILCircle * circle ); - enum LPVIntersectType IntersectLine ( - struct ILLine * line, - struct ILPoints * * intersectPoints ); - ILCirclePtr Translate ( - double offsetX, - double offsetY ); - ILCirclePtr Transform ( - struct ILTransform * tf ); - ILCircleRegionPtr ToCircleRegion ( ); - ILAnnulusRegionPtr ToAnnulusRegion ( - int inExp, - int outExp ); - HRESULT FromCircleRegion ( - struct ILCircleRegion * val ); - HRESULT FromAnnulusRegion ( - struct ILAnnulusRegion * val ); - double GetPerimeter ( ); - double GetArea ( ); - ILPolygonPtr Resample ( - int num ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_X ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_X ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Y ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Y ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Radius ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Radius ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall raw_Valid ( - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall raw_Set ( - /*[in]*/ double X, - /*[in]*/ double Y, - /*[in]*/ double r ) = 0; - virtual HRESULT __stdcall raw_Draw ( - /*[in]*/ VARIANT_BOOL bFill, - /*[in]*/ void * hdc, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; - virtual HRESULT __stdcall raw_GetCenter ( - /*[out,retval]*/ struct ILPoint * * val ) = 0; - virtual HRESULT __stdcall raw_GetArc ( - /*[in]*/ double aStart, - /*[in]*/ double aEnd, - /*[out,retval]*/ struct ILArc * * val ) = 0; - virtual HRESULT __stdcall raw_PointTest ( - /*[in]*/ struct ILPoint * point, - /*[out,retval]*/ enum LPVPointTestResult * val ) = 0; - virtual HRESULT __stdcall raw_Concentric ( - /*[in]*/ struct ILCircle * circle, - /*[out,retval]*/ double * result ) = 0; - virtual HRESULT __stdcall raw_IntersectLine ( - /*[in]*/ struct ILLine * line, - /*[out]*/ struct ILPoints * * intersectPoints, - /*[out,retval]*/ enum LPVIntersectType * type ) = 0; - virtual HRESULT __stdcall raw_Translate ( - /*[in]*/ double offsetX, - /*[in]*/ double offsetY, - /*[out,retval]*/ struct ILCircle * * result ) = 0; - virtual HRESULT __stdcall raw_Transform ( - /*[in]*/ struct ILTransform * tf, - /*[out,retval]*/ struct ILCircle * * result ) = 0; - virtual HRESULT __stdcall raw_ToCircleRegion ( - /*[out,retval]*/ struct ILCircleRegion * * val ) = 0; - virtual HRESULT __stdcall raw_ToAnnulusRegion ( - /*[in]*/ int inExp, - /*[in]*/ int outExp, - /*[out,retval]*/ struct ILAnnulusRegion * * val ) = 0; - virtual HRESULT __stdcall raw_FromCircleRegion ( - /*[in]*/ struct ILCircleRegion * val ) = 0; - virtual HRESULT __stdcall raw_FromAnnulusRegion ( - /*[in]*/ struct ILAnnulusRegion * val ) = 0; - virtual HRESULT __stdcall raw_GetPerimeter ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall raw_GetArea ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall raw_Resample ( - /*[in]*/ int num, - /*[out,retval]*/ struct ILPolygon * * result ) = 0; -}; - -struct __declspec(uuid("bd8e9711-2a32-4593-820e-aeaf53286136")) -ILArc : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetX,put=PutX)) - double X; - __declspec(property(get=GetY,put=PutY)) - double Y; - __declspec(property(get=GetRadius,put=PutRadius)) - double Radius; - __declspec(property(get=GetStartAngle,put=PutStartAngle)) - double StartAngle; - __declspec(property(get=GetEndAngle,put=PutEndAngle)) - double EndAngle; - - // - // Wrapper methods for error-handling - // - - double GetX ( ); - void PutX ( - double val ); - double GetY ( ); - void PutY ( - double val ); - double GetRadius ( ); - void PutRadius ( - double val ); - double GetStartAngle ( ); - void PutStartAngle ( - double val ); - double GetEndAngle ( ); - void PutEndAngle ( - double val ); - VARIANT_BOOL Valid ( ); - HRESULT Set ( - double X, - double Y, - double r, - double aStart, - double aEnd ); - HRESULT Draw ( - VARIANT_BOOL bFill, - void * hdc, - double zoomX, - double zoomY, - double panX, - double panY ); - ILPointPtr GetCenter ( ); - ILCirclePtr GetCircle ( ); - ILPointPtr GetStartPoint ( ); - ILPointPtr GetEndPoint ( ); - ILRectPtr GetBoundingRect ( ); - ILArcPtr Translate ( - double offsetX, - double offsetY ); - ILArcPtr Transform ( - struct ILTransform * tf ); - ILAnnulusSectorRegionPtr ToAnnulusSectorRegion ( - int inExp, - int outExp ); - HRESULT FromAnnulusSectorRegion ( - struct ILAnnulusSectorRegion * val ); - double GetLength ( ); - double GetAngle ( ); - ILPolygonPtr Resample ( - int num ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_X ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_X ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Y ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Y ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_Radius ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_Radius ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_StartAngle ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_StartAngle ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_EndAngle ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_EndAngle ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall raw_Valid ( - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall raw_Set ( - /*[in]*/ double X, - /*[in]*/ double Y, - /*[in]*/ double r, - /*[in]*/ double aStart, - /*[in]*/ double aEnd ) = 0; - virtual HRESULT __stdcall raw_Draw ( - /*[in]*/ VARIANT_BOOL bFill, - /*[in]*/ void * hdc, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; - virtual HRESULT __stdcall raw_GetCenter ( - /*[out,retval]*/ struct ILPoint * * val ) = 0; - virtual HRESULT __stdcall raw_GetCircle ( - /*[out,retval]*/ struct ILCircle * * val ) = 0; - virtual HRESULT __stdcall raw_GetStartPoint ( - /*[out,retval]*/ struct ILPoint * * val ) = 0; - virtual HRESULT __stdcall raw_GetEndPoint ( - /*[out,retval]*/ struct ILPoint * * val ) = 0; - virtual HRESULT __stdcall raw_GetBoundingRect ( - /*[out,retval]*/ struct ILRect * * val ) = 0; - virtual HRESULT __stdcall raw_Translate ( - /*[in]*/ double offsetX, - /*[in]*/ double offsetY, - /*[out,retval]*/ struct ILArc * * result ) = 0; - virtual HRESULT __stdcall raw_Transform ( - /*[in]*/ struct ILTransform * tf, - /*[out,retval]*/ struct ILArc * * result ) = 0; - virtual HRESULT __stdcall raw_ToAnnulusSectorRegion ( - /*[in]*/ int inExp, - /*[in]*/ int outExp, - /*[out,retval]*/ struct ILAnnulusSectorRegion * * val ) = 0; - virtual HRESULT __stdcall raw_FromAnnulusSectorRegion ( - /*[in]*/ struct ILAnnulusSectorRegion * val ) = 0; - virtual HRESULT __stdcall raw_GetLength ( - /*[out,retval]*/ double * result ) = 0; - virtual HRESULT __stdcall raw_GetAngle ( - /*[out,retval]*/ double * result ) = 0; - virtual HRESULT __stdcall raw_Resample ( - /*[in]*/ int num, - /*[out,retval]*/ struct ILPolygon * * result ) = 0; -}; - -// -// Wrapper method implementations -// - -#include "d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvGeom.tli" - -#pragma pack(pop) diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/lpvGeom.tli b/tpvs17/SmokeBoxIdentification/x64/Release/lpvGeom.tli deleted file mode 100644 index aa48894..0000000 --- a/tpvs17/SmokeBoxIdentification/x64/Release/lpvGeom.tli +++ /dev/null @@ -1,1530 +0,0 @@ -// Created by Microsoft (R) C/C++ Compiler Version 14.16.27051.0 (8aeba44d). -// -// d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvGeom.tli -// -// Wrapper implementations for Win32 type library 8955aafb-4602-4d6a-a888-69d1437c4d2b -// compiler-generated file created 12/28/23 at 14:09:51 - DO NOT EDIT! - -#pragma once - -// -// interface ILLine wrapper method implementations -// - -inline double ILLine::GetX1 ( ) { - double _result = 0; - HRESULT _hr = get_X1(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILLine::PutX1 ( double val ) { - HRESULT _hr = put_X1(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILLine::GetY1 ( ) { - double _result = 0; - HRESULT _hr = get_Y1(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILLine::PutY1 ( double val ) { - HRESULT _hr = put_Y1(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILLine::GetX2 ( ) { - double _result = 0; - HRESULT _hr = get_X2(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILLine::PutX2 ( double val ) { - HRESULT _hr = put_X2(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILLine::GetY2 ( ) { - double _result = 0; - HRESULT _hr = get_Y2(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILLine::PutY2 ( double val ) { - HRESULT _hr = put_Y2(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL ILLine::Valid ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = raw_Valid(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT ILLine::Set ( double X1, double Y1, double X2, double Y2 ) { - HRESULT _hr = raw_Set(X1, Y1, X2, Y2); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILLine::Set2 ( double midx, double midy, double lineAngle, double length ) { - HRESULT _hr = raw_Set2(midx, midy, lineAngle, length); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILLine::Draw ( void * hdc, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_Draw(hdc, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline ILPointPtr ILLine::GetMidPoint ( ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_GetMidPoint(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline double ILLine::GetAngle ( ) { - double _result = 0; - HRESULT _hr = raw_GetAngle(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILLine::GetLength ( ) { - double _result = 0; - HRESULT _hr = raw_GetLength(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline enum LPVIntersectType ILLine::IntersectLine ( struct ILLine * line, struct ILPoint * * intersectPoint ) { - enum LPVIntersectType _result; - HRESULT _hr = raw_IntersectLine(line, intersectPoint, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline enum LPVIntersectType ILLine::IntersectCircle ( struct ILCircle * circle, struct ILPoints * * intersectPoints ) { - enum LPVIntersectType _result; - HRESULT _hr = raw_IntersectCircle(circle, intersectPoints, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline enum LPVIntersectType ILLine::IntersectPoly ( struct ILPolygon * polygon, struct ILPoints * * intersectPoints ) { - enum LPVIntersectType _result; - HRESULT _hr = raw_IntersectPoly(polygon, intersectPoints, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILLine::Perpendicular ( struct ILPoint * point, struct ILPoint * * rootPoint ) { - double _result = 0; - HRESULT _hr = raw_Perpendicular(point, rootPoint, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILLinePtr ILLine::BisectLine ( struct ILLine * line ) { - struct ILLine * _result = 0; - HRESULT _hr = raw_BisectLine(line, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILLinePtr(_result, false); -} - -inline double ILLine::Distance ( struct ILLine * line ) { - double _result = 0; - HRESULT _hr = raw_Distance(line, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILLine::AcuteAngle ( struct ILLine * line ) { - double _result = 0; - HRESULT _hr = raw_AcuteAngle(line, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILLine::Parallel ( struct ILLine * line ) { - double _result = 0; - HRESULT _hr = raw_Parallel(line, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILLine::AngleTo ( struct ILLine * line ) { - double _result = 0; - HRESULT _hr = raw_AngleTo(line, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILLinePtr ILLine::Translate ( double offsetX, double offsetY ) { - struct ILLine * _result = 0; - HRESULT _hr = raw_Translate(offsetX, offsetY, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILLinePtr(_result, false); -} - -inline ILLinePtr ILLine::Transform ( struct ILTransform * tf ) { - struct ILLine * _result = 0; - HRESULT _hr = raw_Transform(tf, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILLinePtr(_result, false); -} - -inline ILRotRectRegionPtr ILLine::ToRotRectRegion ( int exp ) { - struct ILRotRectRegion * _result = 0; - HRESULT _hr = raw_ToRotRectRegion(exp, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRotRectRegionPtr(_result, false); -} - -inline HRESULT ILLine::FromRotRectRegion ( struct ILRotRectRegion * val ) { - HRESULT _hr = raw_FromRotRectRegion(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline ILPolygonPtr ILLine::Resample ( int num ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_Resample(num, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -inline ILPolygonPtr ILLine::ResampleByStep ( double step, double stepThreshold ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_ResampleByStep(step, stepThreshold, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -inline double ILLine::GetX ( double Y ) { - double _result = 0; - HRESULT _hr = raw_GetX(Y, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILLine::GetY ( double X ) { - double _result = 0; - HRESULT _hr = raw_GetY(X, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -// -// interface ILPoint wrapper method implementations -// - -inline double ILPoint::GetX ( ) { - double _result = 0; - HRESULT _hr = get_X(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILPoint::PutX ( double val ) { - HRESULT _hr = put_X(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILPoint::GetY ( ) { - double _result = 0; - HRESULT _hr = get_Y(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILPoint::PutY ( double val ) { - HRESULT _hr = put_Y(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL ILPoint::Valid ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = raw_Valid(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT ILPoint::Set ( double X, double Y ) { - HRESULT _hr = raw_Set(X, Y); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILPoint::Draw ( enum LPVPointShape shape, void * hdc, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_Draw(shape, hdc, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline ILPointPtr ILPoint::MidPoint ( struct ILPoint * point ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_MidPoint(point, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline double ILPoint::DotProduct ( struct ILPoint * point ) { - double _result = 0; - HRESULT _hr = raw_DotProduct(point, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILPoint::Distance ( struct ILPoint * point ) { - double _result = 0; - HRESULT _hr = raw_Distance(point, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILPoint::DistanceWithRefLine ( struct ILPoint * point, struct ILLine * refLine ) { - double _result = 0; - HRESULT _hr = raw_DistanceWithRefLine(point, refLine, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILPoint::Collinear ( struct ILPoint * point1, struct ILPoint * point2 ) { - double _result = 0; - HRESULT _hr = raw_Collinear(point1, point2, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILPointPtr ILPoint::Translate ( double offsetX, double offsetY ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_Translate(offsetX, offsetY, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline ILPointPtr ILPoint::Scale ( double factorX, double factorY ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_Scale(factorX, factorY, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline ILPointPtr ILPoint::Transform ( struct ILTransform * tf ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_Transform(tf, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline HRESULT ILPoint::FromSortable ( struct ILSortable * obj, enum LPVPositionMode posMode ) { - HRESULT _hr = raw_FromSortable(obj, posMode); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface ILTransform wrapper method implementations -// - -inline struct LMatrix33 ILTransform::GetMatrix ( ) { - struct LMatrix33 _result; - HRESULT _hr = get_Matrix(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILTransform::PutMatrix ( struct LMatrix33 val ) { - HRESULT _hr = put_Matrix(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline ILTransformPtr ILTransform::Translate ( double offsetX, double offsetY ) { - struct ILTransform * _result = 0; - HRESULT _hr = raw_Translate(offsetX, offsetY, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILTransformPtr(_result, false); -} - -inline ILTransformPtr ILTransform::Scale ( double factorX, double factorY ) { - struct ILTransform * _result = 0; - HRESULT _hr = raw_Scale(factorX, factorY, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILTransformPtr(_result, false); -} - -inline ILTransformPtr ILTransform::Rotate ( double da, enum LPVAxis axis ) { - struct ILTransform * _result = 0; - HRESULT _hr = raw_Rotate(da, axis, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILTransformPtr(_result, false); -} - -inline ILTransformPtr ILTransform::Transform ( struct ILTransform * tf ) { - struct ILTransform * _result = 0; - HRESULT _hr = raw_Transform(tf, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILTransformPtr(_result, false); -} - -inline double ILTransform::Build ( struct ILPoints * srcPoints, struct ILPoints * dstPoints, enum LPVTransformType type ) { - double _result = 0; - HRESULT _hr = raw_Build(srcPoints, dstPoints, type, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -// -// interface ILPoints wrapper method implementations -// - -inline VARIANT_BOOL ILPoints::Valid ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = raw_Valid(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT ILPoints::Reset ( ) { - HRESULT _hr = raw_Reset(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline int ILPoints::Count ( ) { - int _result = 0; - HRESULT _hr = raw_Count(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILPointPtr ILPoints::Item ( int index ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_Item(index, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline HRESULT ILPoints::Add ( double X, double Y ) { - HRESULT _hr = raw_Add(X, Y); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILPoints::Draw ( enum LPVPointShape shape, void * hdc, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_Draw(shape, hdc, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILPoints::SetPoints ( SAFEARRAY * xs, SAFEARRAY * ys ) { - HRESULT _hr = raw_SetPoints(xs, ys); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILPoints::AddPoints ( struct ILPoints * points ) { - HRESULT _hr = raw_AddPoints(points); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILPoints::RemovePoints ( double lbX, double ubX, double lbY, double ubY ) { - HRESULT _hr = raw_RemovePoints(lbX, ubX, lbY, ubY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILPoints::GetPoints ( SAFEARRAY * xs, SAFEARRAY * ys ) { - HRESULT _hr = raw_GetPoints(xs, ys); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline ILRectPtr ILPoints::GetBoundingRect ( ) { - struct ILRect * _result = 0; - HRESULT _hr = raw_GetBoundingRect(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRectPtr(_result, false); -} - -inline ILRectPtr ILPoints::GetBoundingRotRect ( ) { - struct ILRect * _result = 0; - HRESULT _hr = raw_GetBoundingRotRect(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRectPtr(_result, false); -} - -inline ILCirclePtr ILPoints::GetBoundingCircle ( ) { - struct ILCircle * _result = 0; - HRESULT _hr = raw_GetBoundingCircle(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILCirclePtr(_result, false); -} - -inline ILPolygonPtr ILPoints::GetConvexHull ( ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_GetConvexHull(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -inline ILLinePtr ILPoints::FitLine ( double fitDistThreshold, int fitCountThreshold ) { - struct ILLine * _result = 0; - HRESULT _hr = raw_FitLine(fitDistThreshold, fitCountThreshold, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILLinePtr(_result, false); -} - -inline ILCirclePtr ILPoints::FitCircle ( double fitDistThreshold, int fitCountThreshold ) { - struct ILCircle * _result = 0; - HRESULT _hr = raw_FitCircle(fitDistThreshold, fitCountThreshold, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILCirclePtr(_result, false); -} - -inline ILEllipsePtr ILPoints::FitEllipse ( ) { - struct ILEllipse * _result = 0; - HRESULT _hr = raw_FitEllipse(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILEllipsePtr(_result, false); -} - -inline ILPointPtr ILPoints::GetCenter ( ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_GetCenter(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline SAFEARRAY * ILPoints::DistancesToPoint ( struct ILPoint * point ) { - SAFEARRAY * _result = 0; - HRESULT _hr = raw_DistancesToPoint(point, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline SAFEARRAY * ILPoints::DistancesToLine ( struct ILLine * line ) { - SAFEARRAY * _result = 0; - HRESULT _hr = raw_DistancesToLine(line, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline SAFEARRAY * ILPoints::DistancesToPolygon ( struct ILPolygon * polygon, SAFEARRAY * * rootPoints ) { - SAFEARRAY * _result = 0; - HRESULT _hr = raw_DistancesToPolygon(polygon, rootPoints, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline SAFEARRAY * ILPoints::DistancesToPoints ( struct ILPoints * points, SAFEARRAY * * indexes ) { - SAFEARRAY * _result = 0; - HRESULT _hr = raw_DistancesToPoints(points, indexes, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILPoints::DistanceToPoint ( struct ILPoint * point, enum LPVAggregation aggType ) { - double _result = 0; - HRESULT _hr = raw_DistanceToPoint(point, aggType, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILPoints::DistanceToLine ( struct ILLine * line, enum LPVAggregation aggType ) { - double _result = 0; - HRESULT _hr = raw_DistanceToLine(line, aggType, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILPoints::DistanceToPolygon ( struct ILPolygon * polygon, enum LPVAggregation aggType ) { - double _result = 0; - HRESULT _hr = raw_DistanceToPolygon(polygon, aggType, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILPoints::DistanceToPoints ( struct ILPoints * points, enum LPVAggregation aggType ) { - double _result = 0; - HRESULT _hr = raw_DistanceToPoints(points, aggType, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILPointsPtr ILPoints::Translate ( double offsetX, double offsetY ) { - struct ILPoints * _result = 0; - HRESULT _hr = raw_Translate(offsetX, offsetY, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointsPtr(_result, false); -} - -inline ILPointsPtr ILPoints::Scale ( double factorX, double factorY ) { - struct ILPoints * _result = 0; - HRESULT _hr = raw_Scale(factorX, factorY, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointsPtr(_result, false); -} - -inline ILPointsPtr ILPoints::Transform ( struct ILTransform * tf ) { - struct ILPoints * _result = 0; - HRESULT _hr = raw_Transform(tf, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointsPtr(_result, false); -} - -inline HRESULT ILPoints::AddPointsInRegion ( struct ILRegion * region ) { - HRESULT _hr = raw_AddPointsInRegion(region); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILPoints::FromSortables ( struct ILSortables * obj, enum LPVPositionMode posMode ) { - HRESULT _hr = raw_FromSortables(obj, posMode); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface ILRect wrapper method implementations -// - -inline double ILRect::GetX ( ) { - double _result = 0; - HRESULT _hr = get_X(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILRect::PutX ( double val ) { - HRESULT _hr = put_X(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILRect::GetY ( ) { - double _result = 0; - HRESULT _hr = get_Y(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILRect::PutY ( double val ) { - HRESULT _hr = put_Y(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILRect::GetWidth ( ) { - double _result = 0; - HRESULT _hr = get_Width(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILRect::PutWidth ( double val ) { - HRESULT _hr = put_Width(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILRect::GetHeight ( ) { - double _result = 0; - HRESULT _hr = get_Height(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILRect::PutHeight ( double val ) { - HRESULT _hr = put_Height(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILRect::GetAngle ( ) { - double _result = 0; - HRESULT _hr = get_Angle(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILRect::PutAngle ( double val ) { - HRESULT _hr = put_Angle(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL ILRect::Valid ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = raw_Valid(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT ILRect::Set ( double X, double Y, double w, double h, double a ) { - HRESULT _hr = raw_Set(X, Y, w, h, a); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILRect::Draw ( VARIANT_BOOL bFill, void * hdc, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_Draw(bFill, hdc, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline ILRectPtr ILRect::Adjust ( double dtop, double dbottom, double dleft, double dright ) { - struct ILRect * _result = 0; - HRESULT _hr = raw_Adjust(dtop, dbottom, dleft, dright, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRectPtr(_result, false); -} - -inline ILPointPtr ILRect::GetCenter ( ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_GetCenter(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline ILPointPtr ILRect::GetTopLeft ( ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_GetTopLeft(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline ILPointPtr ILRect::GetTopRight ( ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_GetTopRight(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline ILPointPtr ILRect::GetBottomLeft ( ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_GetBottomLeft(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline ILPointPtr ILRect::GetBottomRight ( ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_GetBottomRight(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline ILPointsPtr ILRect::GetPoints ( ) { - struct ILPoints * _result = 0; - HRESULT _hr = raw_GetPoints(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointsPtr(_result, false); -} - -inline enum LPVPointTestResult ILRect::PointTest ( struct ILPoint * point ) { - enum LPVPointTestResult _result; - HRESULT _hr = raw_PointTest(point, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILRectPtr ILRect::Translate ( double offsetX, double offsetY ) { - struct ILRect * _result = 0; - HRESULT _hr = raw_Translate(offsetX, offsetY, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRectPtr(_result, false); -} - -inline ILRectPtr ILRect::Transform ( struct ILTransform * tf ) { - struct ILRect * _result = 0; - HRESULT _hr = raw_Transform(tf, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRectPtr(_result, false); -} - -inline ILRotRectRegionPtr ILRect::ToRotRectRegion ( ) { - struct ILRotRectRegion * _result = 0; - HRESULT _hr = raw_ToRotRectRegion(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRotRectRegionPtr(_result, false); -} - -inline HRESULT ILRect::FromRotRectRegion ( struct ILRotRectRegion * val ) { - HRESULT _hr = raw_FromRotRectRegion(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline ILRectRegionPtr ILRect::ToRectRegion ( ) { - struct ILRectRegion * _result = 0; - HRESULT _hr = raw_ToRectRegion(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRectRegionPtr(_result, false); -} - -inline HRESULT ILRect::FromRectRegion ( struct ILRectRegion * val ) { - HRESULT _hr = raw_FromRectRegion(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline double ILRect::GetPerimeter ( ) { - double _result = 0; - HRESULT _hr = raw_GetPerimeter(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILRect::GetArea ( ) { - double _result = 0; - HRESULT _hr = raw_GetArea(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILRectPtr ILRect::GetBoundingRect ( ) { - struct ILRect * _result = 0; - HRESULT _hr = raw_GetBoundingRect(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRectPtr(_result, false); -} - -inline ILLinePtr ILRect::GetTop ( ) { - struct ILLine * _result = 0; - HRESULT _hr = raw_GetTop(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILLinePtr(_result, false); -} - -inline ILLinePtr ILRect::GetBottom ( ) { - struct ILLine * _result = 0; - HRESULT _hr = raw_GetBottom(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILLinePtr(_result, false); -} - -inline ILLinePtr ILRect::GetLeft ( ) { - struct ILLine * _result = 0; - HRESULT _hr = raw_GetLeft(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILLinePtr(_result, false); -} - -inline ILLinePtr ILRect::GetRight ( ) { - struct ILLine * _result = 0; - HRESULT _hr = raw_GetRight(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILLinePtr(_result, false); -} - -inline ILPolygonPtr ILRect::Resample ( int num ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_Resample(num, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -inline ILPolygonPtr ILRect::ResampleByStep ( double step, double stepThreshold ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_ResampleByStep(step, stepThreshold, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -// -// interface ILPolygon wrapper method implementations -// - -inline VARIANT_BOOL ILPolygon::Valid ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = raw_Valid(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT ILPolygon::Reset ( ) { - HRESULT _hr = raw_Reset(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline int ILPolygon::Count ( ) { - int _result = 0; - HRESULT _hr = raw_Count(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILPointPtr ILPolygon::Item ( int index ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_Item(index, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline HRESULT ILPolygon::Set ( int index, double X, double Y ) { - HRESULT _hr = raw_Set(index, X, Y); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILPolygon::Draw ( VARIANT_BOOL bFill, void * hdc, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_Draw(bFill, hdc, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILPolygon::SetPolygon ( SAFEARRAY * xs, SAFEARRAY * ys, VARIANT_BOOL isClosed ) { - HRESULT _hr = raw_SetPolygon(xs, ys, isClosed); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILPolygon::AddPoints ( struct ILPoints * points ) { - HRESULT _hr = raw_AddPoints(points); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILPolygon::RemovePoints ( double lbX, double ubX, double lbY, double ubY ) { - HRESULT _hr = raw_RemovePoints(lbX, ubX, lbY, ubY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline ILPointsPtr ILPolygon::GetPoints ( ) { - struct ILPoints * _result = 0; - HRESULT _hr = raw_GetPoints(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointsPtr(_result, false); -} - -inline VARIANT_BOOL ILPolygon::GetClosed ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_Closed(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILPolygon::PutClosed ( VARIANT_BOOL val ) { - HRESULT _hr = put_Closed(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum LPVPointTestResult ILPolygon::PointTest ( struct ILPoint * point ) { - enum LPVPointTestResult _result; - HRESULT _hr = raw_PointTest(point, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline enum LPVIntersectType ILPolygon::IntersectLine ( struct ILLine * line, struct ILPoints * * intersectPoints ) { - enum LPVIntersectType _result; - HRESULT _hr = raw_IntersectLine(line, intersectPoints, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILCirclePtr ILPolygon::GetInscribedCircle ( ) { - struct ILCircle * _result = 0; - HRESULT _hr = raw_GetInscribedCircle(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILCirclePtr(_result, false); -} - -inline ILPointPtr ILPolygon::GetGravityCenter ( ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_GetGravityCenter(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline double ILPolygon::DistanceToPoint ( struct ILPoint * point, enum LPVAggregation aggType, struct ILPoint * * rootPoint ) { - double _result = 0; - HRESULT _hr = raw_DistanceToPoint(point, aggType, rootPoint, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILPolygon::DistanceToPolygon ( struct ILPolygon * polygon, enum LPVAggregation aggType, struct ILPoint * * rootPoint1, struct ILPoint * * rootPoint2 ) { - double _result = 0; - HRESULT _hr = raw_DistanceToPolygon(polygon, aggType, rootPoint1, rootPoint2, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILPolygonPtr ILPolygon::Translate ( double offsetX, double offsetY ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_Translate(offsetX, offsetY, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -inline ILPolygonPtr ILPolygon::Transform ( struct ILTransform * tf ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_Transform(tf, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -inline ILPolyRegionPtr ILPolygon::ToPolyRegion ( ) { - struct ILPolyRegion * _result = 0; - HRESULT _hr = raw_ToPolyRegion(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolyRegionPtr(_result, false); -} - -inline HRESULT ILPolygon::FromPolyRegion ( struct ILPolyRegion * val ) { - HRESULT _hr = raw_FromPolyRegion(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline double ILPolygon::GetPerimeter ( ) { - double _result = 0; - HRESULT _hr = raw_GetPerimeter(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILPolygon::GetArea ( ) { - double _result = 0; - HRESULT _hr = raw_GetArea(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILPolygonPtr ILPolygon::Resample ( int num ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_Resample(num, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -inline ILPolygonPtr ILPolygon::ResampleByStep ( double step, double stepThreshold ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_ResampleByStep(step, stepThreshold, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -inline VARIANT_BOOL ILPolygon::IntersectPolygon ( struct ILPolygon * polygon, struct ILPoints * * intersectPoints ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = raw_IntersectPolygon(polygon, intersectPoints, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -// -// interface ILEllipse wrapper method implementations -// - -inline double ILEllipse::GetX ( ) { - double _result = 0; - HRESULT _hr = get_X(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILEllipse::PutX ( double val ) { - HRESULT _hr = put_X(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILEllipse::GetY ( ) { - double _result = 0; - HRESULT _hr = get_Y(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILEllipse::PutY ( double val ) { - HRESULT _hr = put_Y(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILEllipse::GetWidth ( ) { - double _result = 0; - HRESULT _hr = get_Width(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILEllipse::PutWidth ( double val ) { - HRESULT _hr = put_Width(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILEllipse::GetHeight ( ) { - double _result = 0; - HRESULT _hr = get_Height(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILEllipse::PutHeight ( double val ) { - HRESULT _hr = put_Height(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILEllipse::GetAngle ( ) { - double _result = 0; - HRESULT _hr = get_Angle(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILEllipse::PutAngle ( double val ) { - HRESULT _hr = put_Angle(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL ILEllipse::Valid ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = raw_Valid(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT ILEllipse::Set ( double X, double Y, double w, double h, double a ) { - HRESULT _hr = raw_Set(X, Y, w, h, a); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILEllipse::Draw ( VARIANT_BOOL bFill, void * hdc, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_Draw(bFill, hdc, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline ILPointPtr ILEllipse::GetCenter ( ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_GetCenter(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline ILPointPtr ILEllipse::GetTop ( ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_GetTop(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline ILPointPtr ILEllipse::GetBottom ( ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_GetBottom(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline ILPointPtr ILEllipse::GetLeft ( ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_GetLeft(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline ILPointPtr ILEllipse::GetRight ( ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_GetRight(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline ILRectPtr ILEllipse::GetBoundingRect ( ) { - struct ILRect * _result = 0; - HRESULT _hr = raw_GetBoundingRect(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRectPtr(_result, false); -} - -inline ILRectPtr ILEllipse::GetBoundingRotRect ( ) { - struct ILRect * _result = 0; - HRESULT _hr = raw_GetBoundingRotRect(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRectPtr(_result, false); -} - -inline ILPolygonPtr ILEllipse::SamplingByAngle ( double startArcAngle, double endArcAngle, double stepAngle ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_SamplingByAngle(startArcAngle, endArcAngle, stepAngle, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -inline ILEllipsePtr ILEllipse::Translate ( double offsetX, double offsetY ) { - struct ILEllipse * _result = 0; - HRESULT _hr = raw_Translate(offsetX, offsetY, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILEllipsePtr(_result, false); -} - -inline ILEllipsePtr ILEllipse::Transform ( struct ILTransform * tf ) { - struct ILEllipse * _result = 0; - HRESULT _hr = raw_Transform(tf, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILEllipsePtr(_result, false); -} - -inline ILEllipseRegionPtr ILEllipse::ToEllipseRegion ( ) { - struct ILEllipseRegion * _result = 0; - HRESULT _hr = raw_ToEllipseRegion(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILEllipseRegionPtr(_result, false); -} - -inline HRESULT ILEllipse::FromEllipseRegion ( struct ILEllipseRegion * val ) { - HRESULT _hr = raw_FromEllipseRegion(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline double ILEllipse::GetPerimeter ( ) { - double _result = 0; - HRESULT _hr = raw_GetPerimeter(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILEllipse::GetArea ( ) { - double _result = 0; - HRESULT _hr = raw_GetArea(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILPolygonPtr ILEllipse::Resample ( int num ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_Resample(num, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -// -// interface ILCircle wrapper method implementations -// - -inline double ILCircle::GetX ( ) { - double _result = 0; - HRESULT _hr = get_X(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILCircle::PutX ( double val ) { - HRESULT _hr = put_X(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILCircle::GetY ( ) { - double _result = 0; - HRESULT _hr = get_Y(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILCircle::PutY ( double val ) { - HRESULT _hr = put_Y(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILCircle::GetRadius ( ) { - double _result = 0; - HRESULT _hr = get_Radius(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILCircle::PutRadius ( double val ) { - HRESULT _hr = put_Radius(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL ILCircle::Valid ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = raw_Valid(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT ILCircle::Set ( double X, double Y, double r ) { - HRESULT _hr = raw_Set(X, Y, r); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILCircle::Draw ( VARIANT_BOOL bFill, void * hdc, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_Draw(bFill, hdc, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline ILPointPtr ILCircle::GetCenter ( ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_GetCenter(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline ILArcPtr ILCircle::GetArc ( double aStart, double aEnd ) { - struct ILArc * _result = 0; - HRESULT _hr = raw_GetArc(aStart, aEnd, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILArcPtr(_result, false); -} - -inline enum LPVPointTestResult ILCircle::PointTest ( struct ILPoint * point ) { - enum LPVPointTestResult _result; - HRESULT _hr = raw_PointTest(point, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILCircle::Concentric ( struct ILCircle * circle ) { - double _result = 0; - HRESULT _hr = raw_Concentric(circle, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline enum LPVIntersectType ILCircle::IntersectLine ( struct ILLine * line, struct ILPoints * * intersectPoints ) { - enum LPVIntersectType _result; - HRESULT _hr = raw_IntersectLine(line, intersectPoints, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILCirclePtr ILCircle::Translate ( double offsetX, double offsetY ) { - struct ILCircle * _result = 0; - HRESULT _hr = raw_Translate(offsetX, offsetY, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILCirclePtr(_result, false); -} - -inline ILCirclePtr ILCircle::Transform ( struct ILTransform * tf ) { - struct ILCircle * _result = 0; - HRESULT _hr = raw_Transform(tf, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILCirclePtr(_result, false); -} - -inline ILCircleRegionPtr ILCircle::ToCircleRegion ( ) { - struct ILCircleRegion * _result = 0; - HRESULT _hr = raw_ToCircleRegion(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILCircleRegionPtr(_result, false); -} - -inline ILAnnulusRegionPtr ILCircle::ToAnnulusRegion ( int inExp, int outExp ) { - struct ILAnnulusRegion * _result = 0; - HRESULT _hr = raw_ToAnnulusRegion(inExp, outExp, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILAnnulusRegionPtr(_result, false); -} - -inline HRESULT ILCircle::FromCircleRegion ( struct ILCircleRegion * val ) { - HRESULT _hr = raw_FromCircleRegion(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILCircle::FromAnnulusRegion ( struct ILAnnulusRegion * val ) { - HRESULT _hr = raw_FromAnnulusRegion(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline double ILCircle::GetPerimeter ( ) { - double _result = 0; - HRESULT _hr = raw_GetPerimeter(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILCircle::GetArea ( ) { - double _result = 0; - HRESULT _hr = raw_GetArea(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILPolygonPtr ILCircle::Resample ( int num ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_Resample(num, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -// -// interface ILArc wrapper method implementations -// - -inline double ILArc::GetX ( ) { - double _result = 0; - HRESULT _hr = get_X(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILArc::PutX ( double val ) { - HRESULT _hr = put_X(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILArc::GetY ( ) { - double _result = 0; - HRESULT _hr = get_Y(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILArc::PutY ( double val ) { - HRESULT _hr = put_Y(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILArc::GetRadius ( ) { - double _result = 0; - HRESULT _hr = get_Radius(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILArc::PutRadius ( double val ) { - HRESULT _hr = put_Radius(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILArc::GetStartAngle ( ) { - double _result = 0; - HRESULT _hr = get_StartAngle(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILArc::PutStartAngle ( double val ) { - HRESULT _hr = put_StartAngle(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline double ILArc::GetEndAngle ( ) { - double _result = 0; - HRESULT _hr = get_EndAngle(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILArc::PutEndAngle ( double val ) { - HRESULT _hr = put_EndAngle(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL ILArc::Valid ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = raw_Valid(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT ILArc::Set ( double X, double Y, double r, double aStart, double aEnd ) { - HRESULT _hr = raw_Set(X, Y, r, aStart, aEnd); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILArc::Draw ( VARIANT_BOOL bFill, void * hdc, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_Draw(bFill, hdc, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline ILPointPtr ILArc::GetCenter ( ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_GetCenter(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline ILCirclePtr ILArc::GetCircle ( ) { - struct ILCircle * _result = 0; - HRESULT _hr = raw_GetCircle(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILCirclePtr(_result, false); -} - -inline ILPointPtr ILArc::GetStartPoint ( ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_GetStartPoint(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline ILPointPtr ILArc::GetEndPoint ( ) { - struct ILPoint * _result = 0; - HRESULT _hr = raw_GetEndPoint(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline ILRectPtr ILArc::GetBoundingRect ( ) { - struct ILRect * _result = 0; - HRESULT _hr = raw_GetBoundingRect(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRectPtr(_result, false); -} - -inline ILArcPtr ILArc::Translate ( double offsetX, double offsetY ) { - struct ILArc * _result = 0; - HRESULT _hr = raw_Translate(offsetX, offsetY, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILArcPtr(_result, false); -} - -inline ILArcPtr ILArc::Transform ( struct ILTransform * tf ) { - struct ILArc * _result = 0; - HRESULT _hr = raw_Transform(tf, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILArcPtr(_result, false); -} - -inline ILAnnulusSectorRegionPtr ILArc::ToAnnulusSectorRegion ( int inExp, int outExp ) { - struct ILAnnulusSectorRegion * _result = 0; - HRESULT _hr = raw_ToAnnulusSectorRegion(inExp, outExp, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILAnnulusSectorRegionPtr(_result, false); -} - -inline HRESULT ILArc::FromAnnulusSectorRegion ( struct ILAnnulusSectorRegion * val ) { - HRESULT _hr = raw_FromAnnulusSectorRegion(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline double ILArc::GetLength ( ) { - double _result = 0; - HRESULT _hr = raw_GetLength(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILArc::GetAngle ( ) { - double _result = 0; - HRESULT _hr = raw_GetAngle(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILPolygonPtr ILArc::Resample ( int num ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_Resample(num, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/lpvGeomX.tlh b/tpvs17/SmokeBoxIdentification/x64/Release/lpvGeomX.tlh deleted file mode 100644 index 66d3489..0000000 --- a/tpvs17/SmokeBoxIdentification/x64/Release/lpvGeomX.tlh +++ /dev/null @@ -1,378 +0,0 @@ -// Created by Microsoft (R) C/C++ Compiler Version 14.16.27051.0 (739a92f1). -// -// d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvGeomX.tlh -// -// C++ source equivalent of Win32 type library 02517f91-b197-4cd5-a1b5-92d1da6ca9ce -// compiler-generated file created 12/28/23 at 14:09:51 - DO NOT EDIT! - -// -// Cross-referenced type libraries: -// -// - -#pragma once -#pragma pack(push, 8) - -#include - -// -// Forward references and typedefs -// - -struct __declspec(uuid("02517f91-b197-4cd5-a1b5-92d1da6ca9ce")) -/* LIBID */ __LPVGeomXLib; -enum LPVSortedArrayDrawFlags; -struct __declspec(uuid("18d6bce0-257a-4c4c-a8a3-c23ff1ffa7d9")) -/* dual interface */ ILSortedArray; -struct __declspec(uuid("e521cc81-60e4-4d70-829c-ab54ecd41671")) -/* dual interface */ ILGeomOp; -struct __declspec(uuid("20f82bdf-ef37-4e91-897f-6be7e74d5cbe")) -/* dual interface */ ILSorter; -struct __declspec(uuid("50db3b8b-dc90-4c91-8900-cef9f74ad644")) -/* dual interface */ ILPolygonClipper; -struct /* coclass */ LGeomOp; -struct /* coclass */ LSorter; -struct /* coclass */ LSortedArray; -struct /* coclass */ LPolygonClipper; - -// -// Smart pointer typedef declarations -// - -_COM_SMARTPTR_TYPEDEF(ILSortedArray, __uuidof(ILSortedArray)); -_COM_SMARTPTR_TYPEDEF(ILGeomOp, __uuidof(ILGeomOp)); -_COM_SMARTPTR_TYPEDEF(ILSorter, __uuidof(ILSorter)); -_COM_SMARTPTR_TYPEDEF(ILPolygonClipper, __uuidof(ILPolygonClipper)); - -// -// Type library items -// - -enum LPVSortedArrayDrawFlags -{ - LPVSortedArrayDrawPosition = 1, - LPVSortedArrayDrawIndex = 2, - LPVSortedArrayDrawFiltered = 4, - LPVSortedArrayDrawMissing = 8, - LPVSortedArrayDrawRowLines = 16, - LPVSortedArrayDrawColumnLines = 32, - LPVSortedArrayDrawDefault = 3, - LPVSortedArrayDrawAll = 255 -}; - -struct __declspec(uuid("18d6bce0-257a-4c4c-a8a3-c23ff1ffa7d9")) -ILSortedArray : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetRowCount)) - int RowCount; - __declspec(property(get=GetColumnCount)) - int ColumnCount; - __declspec(property(get=GetHasItem)) - VARIANT_BOOL HasItem[][]; - __declspec(property(get=GetItem)) - ILSortablePtr Item[][]; - __declspec(property(get=GetPosition)) - ILPointPtr Position[][]; - __declspec(property(get=GetRowLine)) - ILLinePtr RowLine[]; - __declspec(property(get=GetColumnLine)) - ILLinePtr ColumnLine[]; - __declspec(property(get=GetAvgRowSpace)) - double AvgRowSpace; - __declspec(property(get=GetAvgColumnSpace)) - double AvgColumnSpace; - __declspec(property(get=GetFilteredCount)) - int FilteredCount; - __declspec(property(get=GetItemFiltered)) - ILSortablePtr ItemFiltered[]; - - // - // Wrapper methods for error-handling - // - - int GetRowCount ( ); - int GetColumnCount ( ); - VARIANT_BOOL GetHasItem ( - int columnIndex, - int rowIndex ); - ILSortablePtr GetItem ( - int columnIndex, - int rowIndex ); - ILPointPtr GetPosition ( - int columnIndex, - int rowIndex ); - ILLinePtr GetRowLine ( - int rowIndex ); - ILLinePtr GetColumnLine ( - int columnIndex ); - double GetAvgRowSpace ( ); - double GetAvgColumnSpace ( ); - HRESULT Draw ( - void * hdc, - enum LPVSortedArrayDrawFlags drawFlags, - double zoomX, - double zoomY, - double panX, - double panY ); - int GetFilteredCount ( ); - ILSortablePtr GetItemFiltered ( - int index ); - HRESULT Reset ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_RowCount ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall get_ColumnCount ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall get_HasItem ( - /*[in]*/ int columnIndex, - /*[in]*/ int rowIndex, - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall get_Item ( - /*[in]*/ int columnIndex, - /*[in]*/ int rowIndex, - /*[out,retval]*/ struct ILSortable * * sortable ) = 0; - virtual HRESULT __stdcall get_Position ( - /*[in]*/ int columnIndex, - /*[in]*/ int rowIndex, - /*[out,retval]*/ struct ILPoint * * posPoint ) = 0; - virtual HRESULT __stdcall get_RowLine ( - /*[in]*/ int rowIndex, - /*[out,retval]*/ struct ILLine * * RowLine ) = 0; - virtual HRESULT __stdcall get_ColumnLine ( - /*[in]*/ int columnIndex, - /*[out,retval]*/ struct ILLine * * ColumnLine ) = 0; - virtual HRESULT __stdcall get_AvgRowSpace ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall get_AvgColumnSpace ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall raw_Draw ( - /*[in]*/ void * hdc, - /*[in]*/ enum LPVSortedArrayDrawFlags drawFlags, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; - virtual HRESULT __stdcall get_FilteredCount ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall get_ItemFiltered ( - /*[in]*/ int index, - /*[out,retval]*/ struct ILSortable * * sortable ) = 0; - virtual HRESULT __stdcall raw_Reset ( ) = 0; -}; - -struct __declspec(uuid("e521cc81-60e4-4d70-829c-ab54ecd41671")) -ILGeomOp : IDispatch -{ - // - // Wrapper methods for error-handling - // - - ILRectPtr InnerRect ( - struct ILImage * mask ); - ILRectPtr InnerSquare ( - struct ILImage * mask ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_InnerRect ( - /*[in]*/ struct ILImage * mask, - /*[out,retval]*/ struct ILRect * * resultRect ) = 0; - virtual HRESULT __stdcall raw_InnerSquare ( - /*[in]*/ struct ILImage * mask, - /*[out,retval]*/ struct ILRect * * resultSquare ) = 0; -}; - -struct __declspec(uuid("20f82bdf-ef37-4e91-897f-6be7e74d5cbe")) -ILSorter : IDispatch -{ - // - // Wrapper methods for error-handling - // - - HRESULT SetSource ( - struct ILSortables * sortables ); - HRESULT SetSource2 ( - SAFEARRAY * sortableArray ); - enum LPVErrorCode SortToArray ( - enum LPVPositionMode posMode, - double columnSpaceAppr, - double rowSpaceAppr, - double toleranceFactor, - struct ILSortedArray * * sortedResult ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_SetSource ( - /*[in]*/ struct ILSortables * sortables ) = 0; - virtual HRESULT __stdcall raw_SetSource2 ( - /*[in]*/ SAFEARRAY * sortableArray ) = 0; - virtual HRESULT __stdcall raw_SortToArray ( - /*[in]*/ enum LPVPositionMode posMode, - /*[in]*/ double columnSpaceAppr, - /*[in]*/ double rowSpaceAppr, - /*[in]*/ double toleranceFactor, - /*[out]*/ struct ILSortedArray * * sortedResult, - /*[out,retval]*/ enum LPVErrorCode * error ) = 0; -}; - -struct __declspec(uuid("50db3b8b-dc90-4c91-8900-cef9f74ad644")) -ILPolygonClipper : IDispatch -{ - // - // Wrapper methods for error-handling - // - - ILPolygonPtr Smooth ( - struct ILPolygon * poly, - double nbRange ); - ILPolygonPtr SmoothIterative ( - struct ILPolygon * poly, - double filterNbRng, - double updateNbRng, - int maxIterCount, - double stopCriteria ); - ILPolygonPtr Simplify ( - struct ILPolygon * poly, - int maxVertexes, - double areaThreshold, - double angleThreshold ); - ILPolygonPtr SimplifyDP ( - struct ILPolygon * poly, - double distThreshold ); - ILPolygonPtr TrimCollinear ( - struct ILPolygon * poly ); - ILPolygonPtr Expand ( - struct ILPolygon * poly, - double delta, - double miterLimit ); - ILPolygonPtr Shrink ( - struct ILPolygon * poly, - double delta, - double miterLimit ); - SAFEARRAY * Union ( - struct ILPolygon * poly1, - struct ILPolygon * poly2 ); - ILPolygonPtr Union1 ( - struct ILPolygon * poly1, - struct ILPolygon * poly2 ); - SAFEARRAY * Subtract ( - struct ILPolygon * poly1, - struct ILPolygon * poly2 ); - ILPolygonPtr Subtract1 ( - struct ILPolygon * poly1, - struct ILPolygon * poly2 ); - SAFEARRAY * Intersect ( - struct ILPolygon * poly1, - struct ILPolygon * poly2 ); - ILPolygonPtr Intersect1 ( - struct ILPolygon * poly1, - struct ILPolygon * poly2 ); - SAFEARRAY * XOR ( - struct ILPolygon * poly1, - struct ILPolygon * poly2 ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Smooth ( - /*[in]*/ struct ILPolygon * poly, - /*[in]*/ double nbRange, - /*[out,retval]*/ struct ILPolygon * * resultPoly ) = 0; - virtual HRESULT __stdcall raw_SmoothIterative ( - /*[in]*/ struct ILPolygon * poly, - /*[in]*/ double filterNbRng, - /*[in]*/ double updateNbRng, - /*[in]*/ int maxIterCount, - /*[in]*/ double stopCriteria, - /*[out,retval]*/ struct ILPolygon * * resultPoly ) = 0; - virtual HRESULT __stdcall raw_Simplify ( - /*[in]*/ struct ILPolygon * poly, - /*[in]*/ int maxVertexes, - /*[in]*/ double areaThreshold, - /*[in]*/ double angleThreshold, - /*[out,retval]*/ struct ILPolygon * * resultPoly ) = 0; - virtual HRESULT __stdcall raw_SimplifyDP ( - /*[in]*/ struct ILPolygon * poly, - /*[in]*/ double distThreshold, - /*[out,retval]*/ struct ILPolygon * * resultPoly ) = 0; - virtual HRESULT __stdcall raw_TrimCollinear ( - /*[in]*/ struct ILPolygon * poly, - /*[out,retval]*/ struct ILPolygon * * resultPoly ) = 0; - virtual HRESULT __stdcall raw_Expand ( - /*[in]*/ struct ILPolygon * poly, - /*[in]*/ double delta, - /*[in]*/ double miterLimit, - /*[out,retval]*/ struct ILPolygon * * resultPoly ) = 0; - virtual HRESULT __stdcall raw_Shrink ( - /*[in]*/ struct ILPolygon * poly, - /*[in]*/ double delta, - /*[in]*/ double miterLimit, - /*[out,retval]*/ struct ILPolygon * * resultPoly ) = 0; - virtual HRESULT __stdcall raw_Union ( - /*[in]*/ struct ILPolygon * poly1, - /*[in]*/ struct ILPolygon * poly2, - /*[out,retval]*/ SAFEARRAY * * resultPolys ) = 0; - virtual HRESULT __stdcall raw_Union1 ( - /*[in]*/ struct ILPolygon * poly1, - /*[in]*/ struct ILPolygon * poly2, - /*[out,retval]*/ struct ILPolygon * * resultPoly ) = 0; - virtual HRESULT __stdcall raw_Subtract ( - /*[in]*/ struct ILPolygon * poly1, - /*[in]*/ struct ILPolygon * poly2, - /*[out,retval]*/ SAFEARRAY * * resultPolys ) = 0; - virtual HRESULT __stdcall raw_Subtract1 ( - /*[in]*/ struct ILPolygon * poly1, - /*[in]*/ struct ILPolygon * poly2, - /*[out,retval]*/ struct ILPolygon * * resultPoly ) = 0; - virtual HRESULT __stdcall raw_Intersect ( - /*[in]*/ struct ILPolygon * poly1, - /*[in]*/ struct ILPolygon * poly2, - /*[out,retval]*/ SAFEARRAY * * resultPolys ) = 0; - virtual HRESULT __stdcall raw_Intersect1 ( - /*[in]*/ struct ILPolygon * poly1, - /*[in]*/ struct ILPolygon * poly2, - /*[out,retval]*/ struct ILPolygon * * resultPoly ) = 0; - virtual HRESULT __stdcall raw_XOR ( - /*[in]*/ struct ILPolygon * poly1, - /*[in]*/ struct ILPolygon * poly2, - /*[out,retval]*/ SAFEARRAY * * resultPolys ) = 0; -}; - -struct __declspec(uuid("d35c7edc-02af-4f65-8c04-cfc4150ade69")) -LGeomOp; - // [ default ] interface ILGeomOp - -struct __declspec(uuid("200e31b1-c00a-4530-b811-4c763235a062")) -LSorter; - // [ default ] interface ILSorter - // interface ILSortables - -struct __declspec(uuid("d3568c16-e90b-4db4-8449-dd3536757a30")) -LSortedArray; - // [ default ] interface ILSortedArray - // interface ILDrawable - -struct __declspec(uuid("9816d73e-b81c-435f-ab2d-67d6c7860a64")) -LPolygonClipper; - // [ default ] interface ILPolygonClipper - -// -// Wrapper method implementations -// - -#include "d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvGeomX.tli" - -#pragma pack(pop) diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/lpvGeomX.tli b/tpvs17/SmokeBoxIdentification/x64/Release/lpvGeomX.tli deleted file mode 100644 index 20d29fe..0000000 --- a/tpvs17/SmokeBoxIdentification/x64/Release/lpvGeomX.tli +++ /dev/null @@ -1,244 +0,0 @@ -// Created by Microsoft (R) C/C++ Compiler Version 14.16.27051.0 (739a92f1). -// -// d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvGeomX.tli -// -// Wrapper implementations for Win32 type library 02517f91-b197-4cd5-a1b5-92d1da6ca9ce -// compiler-generated file created 12/28/23 at 14:09:51 - DO NOT EDIT! - -#pragma once - -// -// interface ILSortedArray wrapper method implementations -// - -inline int ILSortedArray::GetRowCount ( ) { - int _result = 0; - HRESULT _hr = get_RowCount(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline int ILSortedArray::GetColumnCount ( ) { - int _result = 0; - HRESULT _hr = get_ColumnCount(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline VARIANT_BOOL ILSortedArray::GetHasItem ( int columnIndex, int rowIndex ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_HasItem(columnIndex, rowIndex, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILSortablePtr ILSortedArray::GetItem ( int columnIndex, int rowIndex ) { - struct ILSortable * _result = 0; - HRESULT _hr = get_Item(columnIndex, rowIndex, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILSortablePtr(_result, false); -} - -inline ILPointPtr ILSortedArray::GetPosition ( int columnIndex, int rowIndex ) { - struct ILPoint * _result = 0; - HRESULT _hr = get_Position(columnIndex, rowIndex, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline ILLinePtr ILSortedArray::GetRowLine ( int rowIndex ) { - struct ILLine * _result = 0; - HRESULT _hr = get_RowLine(rowIndex, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILLinePtr(_result, false); -} - -inline ILLinePtr ILSortedArray::GetColumnLine ( int columnIndex ) { - struct ILLine * _result = 0; - HRESULT _hr = get_ColumnLine(columnIndex, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILLinePtr(_result, false); -} - -inline double ILSortedArray::GetAvgRowSpace ( ) { - double _result = 0; - HRESULT _hr = get_AvgRowSpace(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILSortedArray::GetAvgColumnSpace ( ) { - double _result = 0; - HRESULT _hr = get_AvgColumnSpace(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT ILSortedArray::Draw ( void * hdc, enum LPVSortedArrayDrawFlags drawFlags, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_Draw(hdc, drawFlags, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline int ILSortedArray::GetFilteredCount ( ) { - int _result = 0; - HRESULT _hr = get_FilteredCount(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILSortablePtr ILSortedArray::GetItemFiltered ( int index ) { - struct ILSortable * _result = 0; - HRESULT _hr = get_ItemFiltered(index, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILSortablePtr(_result, false); -} - -inline HRESULT ILSortedArray::Reset ( ) { - HRESULT _hr = raw_Reset(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface ILGeomOp wrapper method implementations -// - -inline ILRectPtr ILGeomOp::InnerRect ( struct ILImage * mask ) { - struct ILRect * _result = 0; - HRESULT _hr = raw_InnerRect(mask, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRectPtr(_result, false); -} - -inline ILRectPtr ILGeomOp::InnerSquare ( struct ILImage * mask ) { - struct ILRect * _result = 0; - HRESULT _hr = raw_InnerSquare(mask, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRectPtr(_result, false); -} - -// -// interface ILSorter wrapper method implementations -// - -inline HRESULT ILSorter::SetSource ( struct ILSortables * sortables ) { - HRESULT _hr = raw_SetSource(sortables); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILSorter::SetSource2 ( SAFEARRAY * sortableArray ) { - HRESULT _hr = raw_SetSource2(sortableArray); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline enum LPVErrorCode ILSorter::SortToArray ( enum LPVPositionMode posMode, double columnSpaceAppr, double rowSpaceAppr, double toleranceFactor, struct ILSortedArray * * sortedResult ) { - enum LPVErrorCode _result; - HRESULT _hr = raw_SortToArray(posMode, columnSpaceAppr, rowSpaceAppr, toleranceFactor, sortedResult, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -// -// interface ILPolygonClipper wrapper method implementations -// - -inline ILPolygonPtr ILPolygonClipper::Smooth ( struct ILPolygon * poly, double nbRange ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_Smooth(poly, nbRange, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -inline ILPolygonPtr ILPolygonClipper::SmoothIterative ( struct ILPolygon * poly, double filterNbRng, double updateNbRng, int maxIterCount, double stopCriteria ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_SmoothIterative(poly, filterNbRng, updateNbRng, maxIterCount, stopCriteria, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -inline ILPolygonPtr ILPolygonClipper::Simplify ( struct ILPolygon * poly, int maxVertexes, double areaThreshold, double angleThreshold ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_Simplify(poly, maxVertexes, areaThreshold, angleThreshold, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -inline ILPolygonPtr ILPolygonClipper::SimplifyDP ( struct ILPolygon * poly, double distThreshold ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_SimplifyDP(poly, distThreshold, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -inline ILPolygonPtr ILPolygonClipper::TrimCollinear ( struct ILPolygon * poly ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_TrimCollinear(poly, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -inline ILPolygonPtr ILPolygonClipper::Expand ( struct ILPolygon * poly, double delta, double miterLimit ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_Expand(poly, delta, miterLimit, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -inline ILPolygonPtr ILPolygonClipper::Shrink ( struct ILPolygon * poly, double delta, double miterLimit ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_Shrink(poly, delta, miterLimit, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -inline SAFEARRAY * ILPolygonClipper::Union ( struct ILPolygon * poly1, struct ILPolygon * poly2 ) { - SAFEARRAY * _result = 0; - HRESULT _hr = raw_Union(poly1, poly2, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILPolygonPtr ILPolygonClipper::Union1 ( struct ILPolygon * poly1, struct ILPolygon * poly2 ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_Union1(poly1, poly2, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -inline SAFEARRAY * ILPolygonClipper::Subtract ( struct ILPolygon * poly1, struct ILPolygon * poly2 ) { - SAFEARRAY * _result = 0; - HRESULT _hr = raw_Subtract(poly1, poly2, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILPolygonPtr ILPolygonClipper::Subtract1 ( struct ILPolygon * poly1, struct ILPolygon * poly2 ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_Subtract1(poly1, poly2, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -inline SAFEARRAY * ILPolygonClipper::Intersect ( struct ILPolygon * poly1, struct ILPolygon * poly2 ) { - SAFEARRAY * _result = 0; - HRESULT _hr = raw_Intersect(poly1, poly2, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILPolygonPtr ILPolygonClipper::Intersect1 ( struct ILPolygon * poly1, struct ILPolygon * poly2 ) { - struct ILPolygon * _result = 0; - HRESULT _hr = raw_Intersect1(poly1, poly2, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPolygonPtr(_result, false); -} - -inline SAFEARRAY * ILPolygonClipper::XOR ( struct ILPolygon * poly1, struct ILPolygon * poly2 ) { - SAFEARRAY * _result = 0; - HRESULT _hr = raw_XOR(poly1, poly2, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/lpvImgProc.tlh b/tpvs17/SmokeBoxIdentification/x64/Release/lpvImgProc.tlh deleted file mode 100644 index 0ca280c..0000000 --- a/tpvs17/SmokeBoxIdentification/x64/Release/lpvImgProc.tlh +++ /dev/null @@ -1,1087 +0,0 @@ -// Created by Microsoft (R) C/C++ Compiler Version 14.16.27051.0 (656e3eff). -// -// d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvImgProc.tlh -// -// C++ source equivalent of Win32 type library 29c8366a-f227-4cc4-bdbb-b32397056cf5 -// compiler-generated file created 12/28/23 at 14:09:51 - DO NOT EDIT! - -// -// Cross-referenced type libraries: -// -// - -#pragma once -#pragma pack(push, 8) - -#include - -// -// Forward references and typedefs -// - -struct __declspec(uuid("29c8366a-f227-4cc4-bdbb-b32397056cf5")) -/* LIBID */ __LPVImgProcLib; -struct __declspec(uuid("8d2d4809-12dc-43f5-a8db-6e019f30aaf6")) -/* dual interface */ ILImageThreshold; -struct __declspec(uuid("eae8f218-93d3-46dc-bd33-33094226d93e")) -/* dual interface */ ILImageFilter; -struct __declspec(uuid("3c452435-77ac-4c17-98b0-30a89b050ef7")) -/* dual interface */ ILImageMorph; -struct __declspec(uuid("6b2fa65f-b23d-426a-a8c6-6605a161eee8")) -/* dual interface */ ILEdgeFilter; -struct __declspec(uuid("051e5237-6993-40f2-93e4-9bee5aab498d")) -/* dual interface */ ILImageArithm; -struct __declspec(uuid("2ff1a6a0-eefb-422e-a1f6-e0d4d7c7b548")) -/* dual interface */ ILHistogram; -struct __declspec(uuid("f16695d2-7be5-4643-beac-04770f17c8a0")) -/* dual interface */ ILImageStats; -struct __declspec(uuid("4955c40c-3bd2-40f4-90bb-d89ae0d29493")) -/* dual interface */ ILHDR; -struct __declspec(uuid("9a7e60dc-393b-442f-95ba-c8fc96ad4e0f")) -/* dual interface */ ILImageConvert; -struct __declspec(uuid("80eb7211-94e1-49ce-8d71-7587c068fc0c")) -/* dual interface */ ILBGSubtract; -struct /* coclass */ LImageThreshold; -struct /* coclass */ LImageFilter; -struct /* coclass */ LImageMorph; -struct /* coclass */ LEdgeFilter; -struct /* coclass */ LImageArithm; -struct /* coclass */ LHistogram; -struct /* coclass */ LImageStats; -struct /* coclass */ LHDR; -struct /* coclass */ LImageConvert; -struct /* coclass */ LBGSubtract; - -// -// Smart pointer typedef declarations -// - -_COM_SMARTPTR_TYPEDEF(ILImageThreshold, __uuidof(ILImageThreshold)); -_COM_SMARTPTR_TYPEDEF(ILImageFilter, __uuidof(ILImageFilter)); -_COM_SMARTPTR_TYPEDEF(ILImageMorph, __uuidof(ILImageMorph)); -_COM_SMARTPTR_TYPEDEF(ILEdgeFilter, __uuidof(ILEdgeFilter)); -_COM_SMARTPTR_TYPEDEF(ILImageArithm, __uuidof(ILImageArithm)); -_COM_SMARTPTR_TYPEDEF(ILHistogram, __uuidof(ILHistogram)); -_COM_SMARTPTR_TYPEDEF(ILImageStats, __uuidof(ILImageStats)); -_COM_SMARTPTR_TYPEDEF(ILHDR, __uuidof(ILHDR)); -_COM_SMARTPTR_TYPEDEF(ILImageConvert, __uuidof(ILImageConvert)); -_COM_SMARTPTR_TYPEDEF(ILBGSubtract, __uuidof(ILBGSubtract)); - -// -// Type library items -// - -struct __declspec(uuid("8d2d4809-12dc-43f5-a8db-6e019f30aaf6")) -ILImageThreshold : ILObject -{ - // - // Property data - // - - __declspec(property(get=GetThresholdType)) - enum LPVThresholdType ThresholdType; - __declspec(property(get=GetThresholdLB)) - int ThresholdLB; - __declspec(property(get=GetThresholdUB)) - int ThresholdUB; - __declspec(property(get=GetThresholdLBBias)) - int ThresholdLBBias; - __declspec(property(get=GetThresholdUBBias)) - int ThresholdUBBias; - __declspec(property(get=GetLocalBlockWidth)) - int LocalBlockWidth; - __declspec(property(get=GetLocalBlockHeight)) - int LocalBlockHeight; - - // - // Wrapper methods for error-handling - // - - HRESULT SetThreshold ( - int lb, - int ub ); - HRESULT SetThresholdAdaptGlobal ( - int lbBias, - int ubBias ); - HRESULT SetThresholdAdaptLocal ( - int blockWidth, - int blockHeight, - int lbBias, - int ubBias ); - HRESULT Binarize ( - struct ILImage * img, - struct ILImage * result ); - HRESULT ThresholdDistance ( - struct ILImage * img, - struct ILImage * result ); - HRESULT Clip ( - struct ILImage * img, - struct ILImage * result ); - HRESULT Stretch ( - struct ILImage * img, - struct ILImage * result ); - enum LPVThresholdType GetThresholdType ( ); - int GetThresholdLB ( ); - int GetThresholdUB ( ); - int GetThresholdLBBias ( ); - int GetThresholdUBBias ( ); - int GetLocalBlockWidth ( ); - int GetLocalBlockHeight ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_SetThreshold ( - /*[in]*/ int lb, - /*[in]*/ int ub ) = 0; - virtual HRESULT __stdcall raw_SetThresholdAdaptGlobal ( - /*[in]*/ int lbBias, - /*[in]*/ int ubBias ) = 0; - virtual HRESULT __stdcall raw_SetThresholdAdaptLocal ( - /*[in]*/ int blockWidth, - /*[in]*/ int blockHeight, - /*[in]*/ int lbBias, - /*[in]*/ int ubBias ) = 0; - virtual HRESULT __stdcall raw_Binarize ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_ThresholdDistance ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_Clip ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_Stretch ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall get_ThresholdType ( - /*[out,retval]*/ enum LPVThresholdType * val ) = 0; - virtual HRESULT __stdcall get_ThresholdLB ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall get_ThresholdUB ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall get_ThresholdLBBias ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall get_ThresholdUBBias ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall get_LocalBlockWidth ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall get_LocalBlockHeight ( - /*[out,retval]*/ int * val ) = 0; -}; - -struct __declspec(uuid("eae8f218-93d3-46dc-bd33-33094226d93e")) -ILImageFilter : ILObject -{ - // - // Property data - // - - __declspec(property(get=GetKernelWidth)) - int KernelWidth; - __declspec(property(get=GetKernelHeight)) - int KernelHeight; - __declspec(property(get=GetKernelSigma)) - double KernelSigma; - __declspec(property(get=GetKernelGain)) - double KernelGain; - - // - // Wrapper methods for error-handling - // - - HRESULT SetKernelSize ( - int kWidth, - int kHeight ); - HRESULT SetKernelSigma ( - double kSigma, - double kGain ); - HRESULT Equalize ( - struct ILImage * img, - struct ILImage * result ); - HRESULT HighPass ( - struct ILImage * img, - struct ILImage * result ); - HRESULT Gaussian ( - struct ILImage * img, - struct ILImage * result ); - HRESULT LocalMedian ( - struct ILImage * img, - struct ILImage * result ); - HRESULT LocalMedianNorm ( - struct ILImage * img, - struct ILImage * result ); - HRESULT OpticalDensity ( - struct ILImage * img, - struct ILImage * result ); - HRESULT MeanFilter ( - struct ILImage * img, - struct ILImage * result ); - int GetKernelWidth ( ); - int GetKernelHeight ( ); - HRESULT Sharpen ( - struct ILImage * img, - struct ILImage * result ); - double GetKernelSigma ( ); - double GetKernelGain ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_SetKernelSize ( - /*[in]*/ int kWidth, - /*[in]*/ int kHeight ) = 0; - virtual HRESULT __stdcall raw_SetKernelSigma ( - /*[in]*/ double kSigma, - /*[in]*/ double kGain ) = 0; - virtual HRESULT __stdcall raw_Equalize ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_HighPass ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_Gaussian ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_LocalMedian ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_LocalMedianNorm ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_OpticalDensity ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_MeanFilter ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall get_KernelWidth ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall get_KernelHeight ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall raw_Sharpen ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall get_KernelSigma ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall get_KernelGain ( - /*[out,retval]*/ double * val ) = 0; -}; - -struct __declspec(uuid("3c452435-77ac-4c17-98b0-30a89b050ef7")) -ILImageMorph : ILObject -{ - // - // Property data - // - - __declspec(property(get=GetMorphShape)) - enum LPVMorphShape MorphShape; - __declspec(property(get=GetMorphWidth)) - int MorphWidth; - __declspec(property(get=GetMorphHeight)) - int MorphHeight; - - // - // Wrapper methods for error-handling - // - - HRESULT SetMorphShape ( - enum LPVMorphShape shape, - int kWidth, - int kHeight ); - HRESULT BottomHat ( - struct ILImage * img, - struct ILImage * result ); - HRESULT TopHat ( - struct ILImage * img, - struct ILImage * result ); - HRESULT TopBottomHat ( - struct ILImage * img, - struct ILImage * result ); - HRESULT Close ( - struct ILImage * img, - struct ILImage * result ); - HRESULT Open ( - struct ILImage * img, - struct ILImage * result ); - HRESULT Dilate ( - struct ILImage * img, - struct ILImage * result ); - HRESULT Erode ( - struct ILImage * img, - struct ILImage * result ); - HRESULT Gradient ( - struct ILImage * img, - struct ILImage * result ); - enum LPVMorphShape GetMorphShape ( ); - int GetMorphWidth ( ); - int GetMorphHeight ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_SetMorphShape ( - /*[in]*/ enum LPVMorphShape shape, - /*[in]*/ int kWidth, - /*[in]*/ int kHeight ) = 0; - virtual HRESULT __stdcall raw_BottomHat ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_TopHat ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_TopBottomHat ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_Close ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_Open ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_Dilate ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_Erode ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_Gradient ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall get_MorphShape ( - /*[out,retval]*/ enum LPVMorphShape * shape ) = 0; - virtual HRESULT __stdcall get_MorphWidth ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall get_MorphHeight ( - /*[out,retval]*/ int * val ) = 0; -}; - -struct __declspec(uuid("6b2fa65f-b23d-426a-a8c6-6605a161eee8")) -ILEdgeFilter : ILObject -{ - // - // Property data - // - - __declspec(property(get=GetKernelType)) - enum LPVEdgeKernel KernelType; - __declspec(property(get=GetKernelWidth)) - int KernelWidth; - __declspec(property(get=GetKernelHeight)) - int KernelHeight; - __declspec(property(get=GetEdgePolarityX)) - enum LPVPolarity EdgePolarityX; - __declspec(property(get=GetEdgePolarityY)) - enum LPVPolarity EdgePolarityY; - - // - // Wrapper methods for error-handling - // - - HRESULT SetEdgeKernel ( - enum LPVEdgeKernel kType, - int kWidth, - int kHeight ); - HRESULT SetEdgePolarity ( - enum LPVPolarity xPolarity, - enum LPVPolarity yPolarity ); - HRESULT GradientH ( - struct ILImage * img, - struct ILImage * result ); - HRESULT GradientV ( - struct ILImage * img, - struct ILImage * result ); - HRESULT GradientFull ( - struct ILImage * img, - struct ILImage * result ); - enum LPVEdgeKernel GetKernelType ( ); - int GetKernelWidth ( ); - int GetKernelHeight ( ); - enum LPVPolarity GetEdgePolarityX ( ); - enum LPVPolarity GetEdgePolarityY ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_SetEdgeKernel ( - /*[in]*/ enum LPVEdgeKernel kType, - /*[in]*/ int kWidth, - /*[in]*/ int kHeight ) = 0; - virtual HRESULT __stdcall raw_SetEdgePolarity ( - /*[in]*/ enum LPVPolarity xPolarity, - /*[in]*/ enum LPVPolarity yPolarity ) = 0; - virtual HRESULT __stdcall raw_GradientH ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_GradientV ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_GradientFull ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall get_KernelType ( - /*[out,retval]*/ enum LPVEdgeKernel * kType ) = 0; - virtual HRESULT __stdcall get_KernelWidth ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall get_KernelHeight ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall get_EdgePolarityX ( - /*[out,retval]*/ enum LPVPolarity * val ) = 0; - virtual HRESULT __stdcall get_EdgePolarityY ( - /*[out,retval]*/ enum LPVPolarity * val ) = 0; -}; - -struct __declspec(uuid("051e5237-6993-40f2-93e4-9bee5aab498d")) -ILImageArithm : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetResultGain,put=PutResultGain)) - double ResultGain; - __declspec(property(get=GetResultOffset,put=PutResultOffset)) - double ResultOffset; - __declspec(property(get=GetBGColor,put=PutBGColor)) - struct LColor BGColor; - - // - // Wrapper methods for error-handling - // - - HRESULT Invert ( - struct ILImage * img, - struct ILImage * result ); - HRESULT GainOffset ( - struct ILImage * img, - struct ILImage * result, - double gain, - double offset ); - HRESULT Add ( - struct ILImage * img1, - struct ILImage * img2, - struct ILImage * result ); - HRESULT AddWeighted ( - struct ILImage * img1, - struct ILImage * img2, - double alpha, - double beta, - struct ILImage * result ); - HRESULT Sub ( - struct ILImage * img1, - struct ILImage * img2, - struct ILImage * result ); - HRESULT Multiply ( - struct ILImage * img1, - struct ILImage * img2, - struct ILImage * result ); - HRESULT Divide ( - struct ILImage * img1, - struct ILImage * img2, - struct ILImage * result ); - HRESULT Diff ( - struct ILImage * img1, - struct ILImage * img2, - struct ILImage * result ); - HRESULT Min ( - struct ILImage * img1, - struct ILImage * img2, - struct ILImage * result ); - HRESULT Max ( - struct ILImage * img1, - struct ILImage * img2, - struct ILImage * result ); - HRESULT Pow ( - struct ILImage * img, - double power, - struct ILImage * result ); - HRESULT Log ( - struct ILImage * img, - double base, - struct ILImage * result ); - HRESULT Flip ( - struct ILImage * img, - enum LPVFlipType flipType, - struct ILImage * result ); - HRESULT Rotate ( - struct ILImage * img, - double angle, - enum LPVInterpolationMethod interMethod, - struct ILImage * result ); - HRESULT Resize ( - struct ILImage * img, - double zoomX, - double zoomY, - enum LPVInterpolationMethod interMethod, - struct ILImage * result ); - HRESULT ResizeTo ( - struct ILImage * img, - int w, - int h, - enum LPVInterpolationMethod interMethod, - struct ILImage * result ); - HRESULT 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 Transform ( - struct ILImage * img, - struct ILTransform * tf, - enum LPVInterpolationMethod interMethod, - struct ILImage * result ); - HRESULT Blend ( - struct ILImageList * imgList, - enum LPVAggregation aggType, - struct ILImage * result ); - SAFEARRAY * ProjectX ( - struct ILImage * img, - enum LPVAggregation aggType ); - SAFEARRAY * ProjectY ( - struct ILImage * img, - enum LPVAggregation aggType ); - double GetResultGain ( ); - void PutResultGain ( - double val ); - double GetResultOffset ( ); - void PutResultOffset ( - double val ); - HRESULT TileX ( - struct ILImageList * imgList, - int columnCount, - VARIANT_BOOL compactMode, - struct ILImage * result ); - HRESULT TileY ( - struct ILImageList * imgList, - int rowCount, - VARIANT_BOOL compactMode, - struct ILImage * result ); - struct LColor GetBGColor ( ); - void PutBGColor ( - struct LColor val ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Invert ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_GainOffset ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * result, - /*[in]*/ double gain, - /*[in]*/ double offset ) = 0; - virtual HRESULT __stdcall raw_Add ( - /*[in]*/ struct ILImage * img1, - /*[in]*/ struct ILImage * img2, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_AddWeighted ( - /*[in]*/ struct ILImage * img1, - /*[in]*/ struct ILImage * img2, - /*[in]*/ double alpha, - /*[in]*/ double beta, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_Sub ( - /*[in]*/ struct ILImage * img1, - /*[in]*/ struct ILImage * img2, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_Multiply ( - /*[in]*/ struct ILImage * img1, - /*[in]*/ struct ILImage * img2, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_Divide ( - /*[in]*/ struct ILImage * img1, - /*[in]*/ struct ILImage * img2, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_Diff ( - /*[in]*/ struct ILImage * img1, - /*[in]*/ struct ILImage * img2, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_Min ( - /*[in]*/ struct ILImage * img1, - /*[in]*/ struct ILImage * img2, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_Max ( - /*[in]*/ struct ILImage * img1, - /*[in]*/ struct ILImage * img2, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_Pow ( - /*[in]*/ struct ILImage * img, - /*[in]*/ double power, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_Log ( - /*[in]*/ struct ILImage * img, - /*[in]*/ double base, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_Flip ( - /*[in]*/ struct ILImage * img, - /*[in]*/ enum LPVFlipType flipType, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_Rotate ( - /*[in]*/ struct ILImage * img, - /*[in]*/ double angle, - /*[in]*/ enum LPVInterpolationMethod interMethod, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_Resize ( - /*[in]*/ struct ILImage * img, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ enum LPVInterpolationMethod interMethod, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_ResizeTo ( - /*[in]*/ struct ILImage * img, - /*[in]*/ int w, - /*[in]*/ int h, - /*[in]*/ enum LPVInterpolationMethod interMethod, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_ScaleRotate ( - /*[in]*/ struct ILImage * img, - /*[in]*/ double angle, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double pivotImgX, - /*[in]*/ double pivotImgY, - /*[in]*/ double pivotResultX, - /*[in]*/ double pivotResultY, - /*[in]*/ enum LPVInterpolationMethod interMethod, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_Transform ( - /*[in]*/ struct ILImage * img, - /*[in]*/ struct ILTransform * tf, - /*[in]*/ enum LPVInterpolationMethod interMethod, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_Blend ( - /*[in]*/ struct ILImageList * imgList, - /*[in]*/ enum LPVAggregation aggType, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_ProjectX ( - /*[in]*/ struct ILImage * img, - /*[in]*/ enum LPVAggregation aggType, - /*[out,retval]*/ SAFEARRAY * * result ) = 0; - virtual HRESULT __stdcall raw_ProjectY ( - /*[in]*/ struct ILImage * img, - /*[in]*/ enum LPVAggregation aggType, - /*[out,retval]*/ SAFEARRAY * * result ) = 0; - virtual HRESULT __stdcall get_ResultGain ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_ResultGain ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_ResultOffset ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_ResultOffset ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall raw_TileX ( - /*[in]*/ struct ILImageList * imgList, - /*[in]*/ int columnCount, - /*[in]*/ VARIANT_BOOL compactMode, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall raw_TileY ( - /*[in]*/ struct ILImageList * imgList, - /*[in]*/ int rowCount, - /*[in]*/ VARIANT_BOOL compactMode, - /*[out]*/ struct ILImage * result ) = 0; - virtual HRESULT __stdcall get_BGColor ( - /*[out,retval]*/ struct LColor * val ) = 0; - virtual HRESULT __stdcall put_BGColor ( - /*[in]*/ struct LColor val ) = 0; -}; - -struct __declspec(uuid("2ff1a6a0-eefb-422e-a1f6-e0d4d7c7b548")) -ILHistogram : IDispatch -{ - // - // Wrapper methods for error-handling - // - - HRESULT Reset ( ); - HRESULT Build ( - struct ILImage * img, - struct ILRegion * region, - int binCount, - int lowerBound, - int upperBound ); - double Item ( - int index ); - HRESULT MinMax ( - int * minIdx, - double * minValue, - int * maxIdx, - double * maxValue ); - HRESULT MeanStdDev ( - double * meanValue, - double * stdDevValue ); - HRESULT Draw ( - void * hdc, - enum LPVChartDrawFlags drawFlags, - int xGridStep, - int yGridStep ); - HRESULT BuildFromDataVec ( - SAFEARRAY * dataVec, - int binCount, - double lowerBound, - double upperBound ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Reset ( ) = 0; - virtual HRESULT __stdcall raw_Build ( - /*[in]*/ struct ILImage * img, - /*[in]*/ struct ILRegion * region, - /*[in]*/ int binCount, - /*[in]*/ int lowerBound, - /*[in]*/ int upperBound ) = 0; - virtual HRESULT __stdcall raw_Item ( - /*[in]*/ int index, - /*[out,retval]*/ double * value ) = 0; - virtual HRESULT __stdcall raw_MinMax ( - /*[out]*/ int * minIdx, - /*[out]*/ double * minValue, - /*[out]*/ int * maxIdx, - /*[out]*/ double * maxValue ) = 0; - virtual HRESULT __stdcall raw_MeanStdDev ( - /*[out]*/ double * meanValue, - /*[out]*/ double * stdDevValue ) = 0; - virtual HRESULT __stdcall raw_Draw ( - /*[in]*/ void * hdc, - /*[in]*/ enum LPVChartDrawFlags drawFlags, - /*[in]*/ int xGridStep, - /*[in]*/ int yGridStep ) = 0; - virtual HRESULT __stdcall raw_BuildFromDataVec ( - /*[in]*/ SAFEARRAY * dataVec, - /*[in]*/ int binCount, - /*[in]*/ double lowerBound, - /*[in]*/ double upperBound ) = 0; -}; - -struct __declspec(uuid("f16695d2-7be5-4643-beac-04770f17c8a0")) -ILImageStats : IDispatch -{ - // - // Wrapper methods for error-handling - // - - HRESULT Min ( - struct ILImage * img, - struct ILRegion * region, - int * value, - int * posX, - int * posY ); - HRESULT Max ( - struct ILImage * img, - struct ILRegion * region, - int * value, - int * posX, - int * posY ); - HRESULT MeanStdDev ( - struct ILImage * img, - struct ILRegion * region, - double * meanValue, - double * stdDevValue ); - HRESULT CountPixel ( - struct ILImage * img, - struct ILRegion * region, - int lb, - int ub, - int * belowCount, - int * betweenCount, - int * aboveCount ); - HRESULT CountPixelColor ( - struct ILImage * img, - struct ILRegion * region, - struct LColor lb, - struct LColor ub, - int * betweenCount, - int * outsideCount ); - double Sharpness ( - struct ILImage * img, - struct ILRegion * region ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Min ( - /*[in]*/ struct ILImage * img, - /*[in]*/ struct ILRegion * region, - /*[out]*/ int * value, - /*[out]*/ int * posX, - /*[out]*/ int * posY ) = 0; - virtual HRESULT __stdcall raw_Max ( - /*[in]*/ struct ILImage * img, - /*[in]*/ struct ILRegion * region, - /*[out]*/ int * value, - /*[out]*/ int * posX, - /*[out]*/ int * posY ) = 0; - virtual HRESULT __stdcall raw_MeanStdDev ( - /*[in]*/ struct ILImage * img, - /*[in]*/ struct ILRegion * region, - /*[out]*/ double * meanValue, - /*[out]*/ double * stdDevValue ) = 0; - virtual HRESULT __stdcall raw_CountPixel ( - /*[in]*/ struct ILImage * img, - /*[in]*/ struct ILRegion * region, - /*[in]*/ int lb, - /*[in]*/ int ub, - /*[out]*/ int * belowCount, - /*[out]*/ int * betweenCount, - /*[out]*/ int * aboveCount ) = 0; - virtual HRESULT __stdcall raw_CountPixelColor ( - /*[in]*/ struct ILImage * img, - /*[in]*/ struct ILRegion * region, - /*[in]*/ struct LColor lb, - /*[in]*/ struct LColor ub, - /*[out]*/ int * betweenCount, - /*[out]*/ int * outsideCount ) = 0; - virtual HRESULT __stdcall raw_Sharpness ( - /*[in]*/ struct ILImage * img, - /*[in]*/ struct ILRegion * region, - /*[out,retval]*/ double * value ) = 0; -}; - -struct __declspec(uuid("4955c40c-3bd2-40f4-90bb-d89ae0d29493")) -ILHDR : IDispatch -{ - // - // Wrapper methods for error-handling - // - - HRESULT Reset ( ); - enum LPVErrorCode BuildCRF ( - struct ILImageList * imgList, - SAFEARRAY * exposureTimes ); - HRESULT ToneMapping ( - struct ILImageList * imgList, - struct ILImage * result, - double gamma, - double contrastEnhance, - double saturationEnhance ); - HRESULT ExposureFusion ( - struct ILImageList * imgList, - struct ILImage * result, - double contrastWeight, - double saturationWeight, - double exposureWeight ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Reset ( ) = 0; - virtual HRESULT __stdcall raw_BuildCRF ( - /*[in]*/ struct ILImageList * imgList, - /*[in]*/ SAFEARRAY * exposureTimes, - /*[out,retval]*/ enum LPVErrorCode * error ) = 0; - virtual HRESULT __stdcall raw_ToneMapping ( - /*[in]*/ struct ILImageList * imgList, - /*[out]*/ struct ILImage * result, - /*[in]*/ double gamma, - /*[in]*/ double contrastEnhance, - /*[in]*/ double saturationEnhance ) = 0; - virtual HRESULT __stdcall raw_ExposureFusion ( - /*[in]*/ struct ILImageList * imgList, - /*[out]*/ struct ILImage * result, - /*[in]*/ double contrastWeight, - /*[in]*/ double saturationWeight, - /*[in]*/ double exposureWeight ) = 0; -}; - -struct __declspec(uuid("9a7e60dc-393b-442f-95ba-c8fc96ad4e0f")) -ILImageConvert : IDispatch -{ - // - // Wrapper methods for error-handling - // - - HRESULT BGRToGray ( - struct ILImage * bgrImg, - struct ILImage * grayImg ); - int BGRToGrayColor ( - struct LColor bgrColor ); - HRESULT GrayToBGR ( - struct ILImage * grayImg, - struct ILImage * bgrImg ); - struct LColor GrayToBGRColor ( - int grayColor ); - HRESULT Convert ( - enum LPVColorSpace fromColorSpace, - enum LPVColorSpace toColorSpace, - struct ILImage * srcColorImg, - struct ILImage * dstColorImg ); - struct LColor ConvertColor ( - enum LPVColorSpace fromColorSpace, - enum LPVColorSpace toColorSpace, - struct LColor srcColor ); - HRESULT BGRMix ( - struct ILImage * bgrImg, - double w0, - double w1, - double w2, - struct ILImage * grayImg ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_BGRToGray ( - /*[in]*/ struct ILImage * bgrImg, - /*[out]*/ struct ILImage * grayImg ) = 0; - virtual HRESULT __stdcall raw_BGRToGrayColor ( - /*[in]*/ struct LColor bgrColor, - /*[out,retval]*/ int * grayColor ) = 0; - virtual HRESULT __stdcall raw_GrayToBGR ( - /*[in]*/ struct ILImage * grayImg, - /*[out]*/ struct ILImage * bgrImg ) = 0; - virtual HRESULT __stdcall raw_GrayToBGRColor ( - /*[in]*/ int grayColor, - /*[out,retval]*/ struct LColor * bgrColor ) = 0; - virtual HRESULT __stdcall raw_Convert ( - /*[in]*/ enum LPVColorSpace fromColorSpace, - /*[in]*/ enum LPVColorSpace toColorSpace, - /*[in]*/ struct ILImage * srcColorImg, - /*[out]*/ struct ILImage * dstColorImg ) = 0; - virtual HRESULT __stdcall raw_ConvertColor ( - /*[in]*/ enum LPVColorSpace fromColorSpace, - /*[in]*/ enum LPVColorSpace toColorSpace, - /*[in]*/ struct LColor srcColor, - /*[out,retval]*/ struct LColor * dstColor ) = 0; - virtual HRESULT __stdcall raw_BGRMix ( - /*[in]*/ struct ILImage * bgrImg, - /*[in]*/ double w0, - /*[in]*/ double w1, - /*[in]*/ double w2, - /*[out]*/ struct ILImage * grayImg ) = 0; -}; - -struct __declspec(uuid("80eb7211-94e1-49ce-8d71-7587c068fc0c")) -ILBGSubtract : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetHistoryMaxCount,put=PutHistoryMaxCount)) - int HistoryMaxCount; - __declspec(property(get=GetVarianceThreshold,put=PutVarianceThreshold)) - double VarianceThreshold; - __declspec(property(get=GetGenerateThreshold,put=PutGenerateThreshold)) - double GenerateThreshold; - __declspec(property(get=GetLearningRate,put=PutLearningRate)) - double LearningRate; - - // - // Wrapper methods for error-handling - // - - HRESULT Reset ( ); - int GetHistoryMaxCount ( ); - void PutHistoryMaxCount ( - int val ); - double GetVarianceThreshold ( ); - void PutVarianceThreshold ( - double val ); - double GetGenerateThreshold ( ); - void PutGenerateThreshold ( - double val ); - double GetLearningRate ( ); - void PutLearningRate ( - double val ); - enum LPVErrorCode Apply ( - struct ILImage * img, - struct ILImage * fgMask, - VARIANT_BOOL doUpdateBGModel ); - enum LPVErrorCode UpdateBGModel ( - struct ILImage * img ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Reset ( ) = 0; - virtual HRESULT __stdcall get_HistoryMaxCount ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall put_HistoryMaxCount ( - /*[in]*/ int val ) = 0; - virtual HRESULT __stdcall get_VarianceThreshold ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_VarianceThreshold ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_GenerateThreshold ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_GenerateThreshold ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_LearningRate ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_LearningRate ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall raw_Apply ( - /*[in]*/ struct ILImage * img, - /*[out]*/ struct ILImage * fgMask, - /*[in]*/ VARIANT_BOOL doUpdateBGModel, - /*[out,retval]*/ enum LPVErrorCode * error ) = 0; - virtual HRESULT __stdcall raw_UpdateBGModel ( - /*[in]*/ struct ILImage * img, - /*[out,retval]*/ enum LPVErrorCode * error ) = 0; -}; - -struct __declspec(uuid("e1a2ffe0-aa84-4837-b2f5-b6bbd7078621")) -LImageThreshold; - // [ default ] interface ILImageThreshold - -struct __declspec(uuid("b2e6c676-1cc7-4d0a-aca9-3296f308a343")) -LImageFilter; - // [ default ] interface ILImageFilter - -struct __declspec(uuid("04a79f01-1b8c-40ca-aef8-1738f776dd74")) -LImageMorph; - // [ default ] interface ILImageMorph - -struct __declspec(uuid("7d2fea77-6e13-4b55-933d-44f50fa69583")) -LEdgeFilter; - // [ default ] interface ILEdgeFilter - -struct __declspec(uuid("97ddb8e8-2edf-485e-8783-81062ebefbdd")) -LImageArithm; - // [ default ] interface ILImageArithm - -struct __declspec(uuid("6942dc51-43ba-44d2-ac99-73d97c7db049")) -LHistogram; - // [ default ] interface ILHistogram - // interface ILDrawable - -struct __declspec(uuid("e0644288-acdf-4cce-8b1c-3304ca7d00f4")) -LImageStats; - // [ default ] interface ILImageStats - -struct __declspec(uuid("1a5ed7c4-a315-4c5f-9adc-837fbd6cdca9")) -LHDR; - // [ default ] interface ILHDR - -struct __declspec(uuid("fcdd137e-0c3f-476c-a0f0-e351d4098f75")) -LImageConvert; - // [ default ] interface ILImageConvert - -struct __declspec(uuid("77882fa2-31ce-4d12-a3e7-3f559763ce10")) -LBGSubtract; - // [ default ] interface ILBGSubtract - -// -// Wrapper method implementations -// - -#include "d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvImgProc.tli" - -#pragma pack(pop) diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/lpvImgProc.tli b/tpvs17/SmokeBoxIdentification/x64/Release/lpvImgProc.tli deleted file mode 100644 index a46ab62..0000000 --- a/tpvs17/SmokeBoxIdentification/x64/Release/lpvImgProc.tli +++ /dev/null @@ -1,761 +0,0 @@ -// Created by Microsoft (R) C/C++ Compiler Version 14.16.27051.0 (656e3eff). -// -// d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvImgProc.tli -// -// Wrapper implementations for Win32 type library 29c8366a-f227-4cc4-bdbb-b32397056cf5 -// compiler-generated file created 12/28/23 at 14:09:51 - 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)); -} - -inline HRESULT ILImageArithm::TileX ( struct ILImageList * imgList, int columnCount, VARIANT_BOOL compactMode, struct ILImage * result ) { - HRESULT _hr = raw_TileX(imgList, columnCount, compactMode, result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILImageArithm::TileY ( struct ILImageList * imgList, int rowCount, VARIANT_BOOL compactMode, struct ILImage * result ) { - HRESULT _hr = raw_TileY(imgList, rowCount, compactMode, result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline struct LColor ILImageArithm::GetBGColor ( ) { - struct LColor _result; - HRESULT _hr = get_BGColor(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILImageArithm::PutBGColor ( struct LColor val ) { - HRESULT _hr = put_BGColor(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; -} diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/lpvPat.tlh b/tpvs17/SmokeBoxIdentification/x64/Release/lpvPat.tlh deleted file mode 100644 index 646aa30..0000000 --- a/tpvs17/SmokeBoxIdentification/x64/Release/lpvPat.tlh +++ /dev/null @@ -1,475 +0,0 @@ -// Created by Microsoft (R) C/C++ Compiler Version 14.16.27051.0 (6e2a7e5e). -// -// d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvPat.tlh -// -// C++ source equivalent of Win32 type library 799860e5-cec7-4d65-9c62-a93320c0f60a -// compiler-generated file created 12/28/23 at 14:09:51 - DO NOT EDIT! - -// -// Cross-referenced type libraries: -// -// - -#pragma once -#pragma pack(push, 8) - -#include - -// -// Forward references and typedefs -// - -struct __declspec(uuid("799860e5-cec7-4d65-9c62-a93320c0f60a")) -/* LIBID */ __LPVPatLib; -enum LPVPatCenterMode; -enum LPVPatDrawFlags; -struct __declspec(uuid("9662131d-8e5e-4d1e-84b2-e7a7efda52ee")) -/* dual interface */ ILMatchResult; -struct __declspec(uuid("eae77889-b063-4d78-b429-7935df7d69b3")) -/* dual interface */ ILMatch; -struct __declspec(uuid("9425c450-6031-443b-b70b-d32bd8593a62")) -/* dual interface */ ILMatchResults; -struct /* coclass */ LMatchResult; -struct /* coclass */ LMatchResults; -struct /* coclass */ LMatch; - -// -// Smart pointer typedef declarations -// - -_COM_SMARTPTR_TYPEDEF(ILMatchResult, __uuidof(ILMatchResult)); -_COM_SMARTPTR_TYPEDEF(ILMatchResults, __uuidof(ILMatchResults)); -_COM_SMARTPTR_TYPEDEF(ILMatch, __uuidof(ILMatch)); - -// -// Type library items -// - -enum LPVPatCenterMode -{ - LPVPatImageCenter = 0, - LPVPatTrainedCenter = 1, - LPVPatCustomCenter = 2 -}; - -enum LPVPatDrawFlags -{ - LPVPatDrawBoundingRect = 1, - LPVPatDrawCenter = 2, - LPVPatDrawFeature = 4, - LPVPatDrawIndex = 8, - LPVPatDrawDefault = 2, - LPVPatDrawAll = 255 -}; - -struct __declspec(uuid("4dc5c77a-8779-4535-8712-dad884f184a5")) -LMatchResult; - // [ default ] interface ILMatchResult - // interface ILDrawable - // interface ILSortable - -struct __declspec(uuid("2c0fcf2c-24d0-4097-96f9-edd13229b0be")) -LMatchResults; - // [ default ] interface ILMatchResults - // interface ILDrawable - // interface ILSortables - -struct __declspec(uuid("24419286-7ab4-4911-8471-aff2cdc9d693")) -LMatch; - // [ default ] interface ILMatch - -struct __declspec(uuid("9662131d-8e5e-4d1e-84b2-e7a7efda52ee")) -ILMatchResult : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetScore)) - double Score; - __declspec(property(get=GetCenter)) - ILPointPtr Center; - __declspec(property(get=GetAngle)) - double Angle; - __declspec(property(get=GetScale)) - double Scale; - __declspec(property(get=GetScaleX)) - double ScaleX; - __declspec(property(get=GetScaleY)) - double ScaleY; - __declspec(property(get=GetShapeScore)) - double ShapeScore; - __declspec(property(get=GetGrayScore)) - double GrayScore; - - // - // Wrapper methods for error-handling - // - - double GetScore ( ); - ILPointPtr GetCenter ( ); - double GetAngle ( ); - double GetScale ( ); - HRESULT Draw ( - void * hdc, - enum LPVPatDrawFlags drawFlags, - double zoomX, - double zoomY, - double panX, - double panY ); - ILRectPtr GetRect ( ); - HRESULT Set ( - struct ILMatch * matchObject, - double patX, - double patY, - double patAngle, - double patScale, - double patScore ); - double GetScaleX ( ); - double GetScaleY ( ); - double GetShapeScore ( ); - double GetGrayScore ( ); - ILPointsPtr GetFeature ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Score ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall get_Center ( - /*[out,retval]*/ struct ILPoint * * val ) = 0; - virtual HRESULT __stdcall get_Angle ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall get_Scale ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall raw_Draw ( - /*[in]*/ void * hdc, - /*[in]*/ enum LPVPatDrawFlags drawFlags, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; - virtual HRESULT __stdcall raw_GetRect ( - /*[out,retval]*/ struct ILRect * * val ) = 0; - virtual HRESULT __stdcall raw_Set ( - /*[in]*/ struct ILMatch * matchObject, - /*[in]*/ double patX, - /*[in]*/ double patY, - /*[in]*/ double patAngle, - /*[in]*/ double patScale, - /*[in]*/ double patScore ) = 0; - virtual HRESULT __stdcall get_ScaleX ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall get_ScaleY ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall get_ShapeScore ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall get_GrayScore ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall raw_GetFeature ( - /*[out,retval]*/ struct ILPoints * * featurePoints ) = 0; -}; - -struct __declspec(uuid("9425c450-6031-443b-b70b-d32bd8593a62")) -ILMatchResults : IDispatch -{ - // - // Wrapper methods for error-handling - // - - HRESULT Reset ( ); - int Count ( ); - ILMatchResultPtr Item ( - int index ); - HRESULT Draw ( - void * hdc, - int index, - enum LPVPatDrawFlags drawFlags, - double zoomX, - double zoomY, - double panX, - double panY ); - HRESULT DrawAll ( - void * hdc, - enum LPVPatDrawFlags drawFlags, - double zoomX, - double zoomY, - double panX, - double panY ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Reset ( ) = 0; - virtual HRESULT __stdcall raw_Count ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall raw_Item ( - /*[in]*/ int index, - /*[out,retval]*/ struct ILMatchResult * * result ) = 0; - virtual HRESULT __stdcall raw_Draw ( - /*[in]*/ void * hdc, - /*[in]*/ int index, - /*[in]*/ enum LPVPatDrawFlags drawFlags, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; - virtual HRESULT __stdcall raw_DrawAll ( - /*[in]*/ void * hdc, - /*[in]*/ enum LPVPatDrawFlags drawFlags, - /*[in]*/ double zoomX, - /*[in]*/ double zoomY, - /*[in]*/ double panX, - /*[in]*/ double panY ) = 0; -}; - -struct __declspec(uuid("eae77889-b063-4d78-b429-7935df7d69b3")) -ILMatch : ILObject -{ - // - // Property data - // - - __declspec(property(get=GetAcceptScore,put=PutAcceptScore)) - int AcceptScore; - __declspec(property(get=GetAngleTolerance,put=PutAngleTolerance)) - int AngleTolerance; - __declspec(property(get=GetScaleTolerance,put=PutScaleTolerance)) - int ScaleTolerance; - __declspec(property(get=GetMaxCount,put=PutMaxCount)) - int MaxCount; - __declspec(property(get=GetOverlap,put=PutOverlap)) - int Overlap; - __declspec(property(get=GetIgnorePolarity,put=PutIgnorePolarity)) - VARIANT_BOOL IgnorePolarity; - __declspec(property(get=GetUseCache,put=PutUseCache)) - VARIANT_BOOL UseCache; - __declspec(property(get=GetStrictScore,put=PutStrictScore)) - VARIANT_BOOL StrictScore; - __declspec(property(get=GetExcludeBoundary,put=PutExcludeBoundary)) - VARIANT_BOOL ExcludeBoundary; - __declspec(property(get=GetGrayValueWeight,put=PutGrayValueWeight)) - int GrayValueWeight; - __declspec(property(get=GetAngleBias,put=PutAngleBias)) - int AngleBias; - __declspec(property(get=GetScaleBias,put=PutScaleBias)) - int ScaleBias; - __declspec(property(get=GetDetailLevel,put=PutDetailLevel)) - double DetailLevel; - __declspec(property(get=GetIsotropicScale,put=PutIsotropicScale)) - VARIANT_BOOL IsotropicScale; - __declspec(property(get=GetAccuracyLevel,put=PutAccuracyLevel)) - int AccuracyLevel; - __declspec(property(get=GetIgnoreMissing,put=PutIgnoreMissing)) - VARIANT_BOOL IgnoreMissing; - __declspec(property(get=GetMissingTolerance,put=PutMissingTolerance)) - int MissingTolerance; - - // - // Wrapper methods for error-handling - // - - enum LPVErrorCode Learn ( - struct ILImage * img, - struct ILRegion * region ); - enum LPVErrorCode LearnWithShape ( - struct ILImage * img, - struct ILRegion * region, - struct ILRegion * shapeRegion ); - enum LPVErrorCode LearnWithShapeImage ( - struct ILImage * img, - struct ILRegion * region, - struct ILImage * shapeImg ); - VARIANT_BOOL IsLearnt ( ); - enum LPVErrorCode Match ( - struct ILImage * img, - struct ILRegion * region, - struct ILMatchResults * * results ); - int GetAcceptScore ( ); - void PutAcceptScore ( - int val ); - int GetAngleTolerance ( ); - void PutAngleTolerance ( - int val ); - int GetAngleBias ( ); - void PutAngleBias ( - int val ); - int GetScaleTolerance ( ); - void PutScaleTolerance ( - int val ); - int GetScaleBias ( ); - void PutScaleBias ( - int val ); - int GetMaxCount ( ); - void PutMaxCount ( - int val ); - int GetOverlap ( ); - void PutOverlap ( - int val ); - VARIANT_BOOL GetIgnorePolarity ( ); - void PutIgnorePolarity ( - VARIANT_BOOL val ); - VARIANT_BOOL GetUseCache ( ); - void PutUseCache ( - VARIANT_BOOL val ); - VARIANT_BOOL GetStrictScore ( ); - void PutStrictScore ( - VARIANT_BOOL val ); - VARIANT_BOOL GetExcludeBoundary ( ); - void PutExcludeBoundary ( - VARIANT_BOOL val ); - int GetGrayValueWeight ( ); - void PutGrayValueWeight ( - int val ); - HRESULT SetPatCenter ( - enum LPVPatCenterMode centerMode, - double patX, - double patY, - double patAngle ); - HRESULT GetPatCenter ( - double * patX, - double * patY, - double * patAngle ); - enum LPVPatCenterMode GetPatCenterMode ( ); - HRESULT GetPatImage ( - struct ILImage * img ); - HRESULT GetPatMask ( - struct ILImage * mask ); - double GetDetailLevel ( ); - void PutDetailLevel ( - double val ); - VARIANT_BOOL GetIsotropicScale ( ); - void PutIsotropicScale ( - VARIANT_BOOL val ); - ILPointsPtr GetPatFeature ( ); - int GetAccuracyLevel ( ); - void PutAccuracyLevel ( - int val ); - VARIANT_BOOL GetIgnoreMissing ( ); - void PutIgnoreMissing ( - VARIANT_BOOL val ); - int GetMissingTolerance ( ); - void PutMissingTolerance ( - int val ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Learn ( - /*[in]*/ struct ILImage * img, - /*[in]*/ struct ILRegion * region, - /*[out,retval]*/ enum LPVErrorCode * error ) = 0; - virtual HRESULT __stdcall raw_LearnWithShape ( - /*[in]*/ struct ILImage * img, - /*[in]*/ struct ILRegion * region, - /*[in]*/ struct ILRegion * shapeRegion, - /*[out,retval]*/ enum LPVErrorCode * error ) = 0; - virtual HRESULT __stdcall raw_LearnWithShapeImage ( - /*[in]*/ struct ILImage * img, - /*[in]*/ struct ILRegion * region, - /*[in]*/ struct ILImage * shapeImg, - /*[out,retval]*/ enum LPVErrorCode * error ) = 0; - virtual HRESULT __stdcall raw_IsLearnt ( - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall raw_Match ( - /*[in]*/ struct ILImage * img, - /*[in]*/ struct ILRegion * region, - /*[out]*/ struct ILMatchResults * * results, - /*[out,retval]*/ enum LPVErrorCode * error ) = 0; - virtual HRESULT __stdcall get_AcceptScore ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall put_AcceptScore ( - /*[in]*/ int val ) = 0; - virtual HRESULT __stdcall get_AngleTolerance ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall put_AngleTolerance ( - /*[in]*/ int val ) = 0; - virtual HRESULT __stdcall get_AngleBias ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall put_AngleBias ( - /*[in]*/ int val ) = 0; - virtual HRESULT __stdcall get_ScaleTolerance ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall put_ScaleTolerance ( - /*[in]*/ int val ) = 0; - virtual HRESULT __stdcall get_ScaleBias ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall put_ScaleBias ( - /*[in]*/ int val ) = 0; - virtual HRESULT __stdcall get_MaxCount ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall put_MaxCount ( - /*[in]*/ int val ) = 0; - virtual HRESULT __stdcall get_Overlap ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall put_Overlap ( - /*[in]*/ int val ) = 0; - virtual HRESULT __stdcall get_IgnorePolarity ( - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall put_IgnorePolarity ( - /*[in]*/ VARIANT_BOOL val ) = 0; - virtual HRESULT __stdcall get_UseCache ( - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall put_UseCache ( - /*[in]*/ VARIANT_BOOL val ) = 0; - virtual HRESULT __stdcall get_StrictScore ( - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall put_StrictScore ( - /*[in]*/ VARIANT_BOOL val ) = 0; - virtual HRESULT __stdcall get_ExcludeBoundary ( - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall put_ExcludeBoundary ( - /*[in]*/ VARIANT_BOOL val ) = 0; - virtual HRESULT __stdcall get_GrayValueWeight ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall put_GrayValueWeight ( - /*[in]*/ int val ) = 0; - virtual HRESULT __stdcall raw_SetPatCenter ( - /*[in]*/ enum LPVPatCenterMode centerMode, - /*[in]*/ double patX, - /*[in]*/ double patY, - /*[in]*/ double patAngle ) = 0; - virtual HRESULT __stdcall raw_GetPatCenter ( - /*[out]*/ double * patX, - /*[out]*/ double * patY, - /*[out]*/ double * patAngle ) = 0; - virtual HRESULT __stdcall raw_GetPatCenterMode ( - /*[out,retval]*/ enum LPVPatCenterMode * centerMode ) = 0; - virtual HRESULT __stdcall raw_GetPatImage ( - /*[out]*/ struct ILImage * img ) = 0; - virtual HRESULT __stdcall raw_GetPatMask ( - /*[out]*/ struct ILImage * mask ) = 0; - virtual HRESULT __stdcall get_DetailLevel ( - /*[out,retval]*/ double * val ) = 0; - virtual HRESULT __stdcall put_DetailLevel ( - /*[in]*/ double val ) = 0; - virtual HRESULT __stdcall get_IsotropicScale ( - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall put_IsotropicScale ( - /*[in]*/ VARIANT_BOOL val ) = 0; - virtual HRESULT __stdcall raw_GetPatFeature ( - /*[out,retval]*/ struct ILPoints * * featurePoints ) = 0; - virtual HRESULT __stdcall get_AccuracyLevel ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall put_AccuracyLevel ( - /*[in]*/ int val ) = 0; - virtual HRESULT __stdcall get_IgnoreMissing ( - /*[out,retval]*/ VARIANT_BOOL * val ) = 0; - virtual HRESULT __stdcall put_IgnoreMissing ( - /*[in]*/ VARIANT_BOOL val ) = 0; - virtual HRESULT __stdcall get_MissingTolerance ( - /*[out,retval]*/ int * val ) = 0; - virtual HRESULT __stdcall put_MissingTolerance ( - /*[in]*/ int val ) = 0; -}; - -// -// Wrapper method implementations -// - -#include "d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvPat.tli" - -#pragma pack(pop) diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/lpvPat.tli b/tpvs17/SmokeBoxIdentification/x64/Release/lpvPat.tli deleted file mode 100644 index 1a7f87c..0000000 --- a/tpvs17/SmokeBoxIdentification/x64/Release/lpvPat.tli +++ /dev/null @@ -1,411 +0,0 @@ -// Created by Microsoft (R) C/C++ Compiler Version 14.16.27051.0 (6e2a7e5e). -// -// d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvPat.tli -// -// Wrapper implementations for Win32 type library 799860e5-cec7-4d65-9c62-a93320c0f60a -// compiler-generated file created 12/28/23 at 14:09:51 - DO NOT EDIT! - -#pragma once - -// -// interface ILMatchResult wrapper method implementations -// - -inline double ILMatchResult::GetScore ( ) { - double _result = 0; - HRESULT _hr = get_Score(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILPointPtr ILMatchResult::GetCenter ( ) { - struct ILPoint * _result = 0; - HRESULT _hr = get_Center(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointPtr(_result, false); -} - -inline double ILMatchResult::GetAngle ( ) { - double _result = 0; - HRESULT _hr = get_Angle(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILMatchResult::GetScale ( ) { - double _result = 0; - HRESULT _hr = get_Scale(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT ILMatchResult::Draw ( void * hdc, enum LPVPatDrawFlags drawFlags, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_Draw(hdc, drawFlags, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline ILRectPtr ILMatchResult::GetRect ( ) { - struct ILRect * _result = 0; - HRESULT _hr = raw_GetRect(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILRectPtr(_result, false); -} - -inline HRESULT ILMatchResult::Set ( struct ILMatch * matchObject, double patX, double patY, double patAngle, double patScale, double patScore ) { - HRESULT _hr = raw_Set(matchObject, patX, patY, patAngle, patScale, patScore); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline double ILMatchResult::GetScaleX ( ) { - double _result = 0; - HRESULT _hr = get_ScaleX(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILMatchResult::GetScaleY ( ) { - double _result = 0; - HRESULT _hr = get_ScaleY(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILMatchResult::GetShapeScore ( ) { - double _result = 0; - HRESULT _hr = get_ShapeScore(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline double ILMatchResult::GetGrayScore ( ) { - double _result = 0; - HRESULT _hr = get_GrayScore(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILPointsPtr ILMatchResult::GetFeature ( ) { - struct ILPoints * _result = 0; - HRESULT _hr = raw_GetFeature(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointsPtr(_result, false); -} - -// -// interface ILMatchResults wrapper method implementations -// - -inline HRESULT ILMatchResults::Reset ( ) { - HRESULT _hr = raw_Reset(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline int ILMatchResults::Count ( ) { - int _result = 0; - HRESULT _hr = raw_Count(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ILMatchResultPtr ILMatchResults::Item ( int index ) { - struct ILMatchResult * _result = 0; - HRESULT _hr = raw_Item(index, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILMatchResultPtr(_result, false); -} - -inline HRESULT ILMatchResults::Draw ( void * hdc, int index, enum LPVPatDrawFlags drawFlags, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_Draw(hdc, index, drawFlags, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILMatchResults::DrawAll ( void * hdc, enum LPVPatDrawFlags drawFlags, double zoomX, double zoomY, double panX, double panY ) { - HRESULT _hr = raw_DrawAll(hdc, drawFlags, zoomX, zoomY, panX, panY); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface ILMatch wrapper method implementations -// - -inline enum LPVErrorCode ILMatch::Learn ( struct ILImage * img, struct ILRegion * region ) { - enum LPVErrorCode _result; - HRESULT _hr = raw_Learn(img, region, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline enum LPVErrorCode ILMatch::LearnWithShape ( struct ILImage * img, struct ILRegion * region, struct ILRegion * shapeRegion ) { - enum LPVErrorCode _result; - HRESULT _hr = raw_LearnWithShape(img, region, shapeRegion, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline enum LPVErrorCode ILMatch::LearnWithShapeImage ( struct ILImage * img, struct ILRegion * region, struct ILImage * shapeImg ) { - enum LPVErrorCode _result; - HRESULT _hr = raw_LearnWithShapeImage(img, region, shapeImg, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline VARIANT_BOOL ILMatch::IsLearnt ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = raw_IsLearnt(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline enum LPVErrorCode ILMatch::Match ( struct ILImage * img, struct ILRegion * region, struct ILMatchResults * * results ) { - enum LPVErrorCode _result; - HRESULT _hr = raw_Match(img, region, results, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline int ILMatch::GetAcceptScore ( ) { - int _result = 0; - HRESULT _hr = get_AcceptScore(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILMatch::PutAcceptScore ( int val ) { - HRESULT _hr = put_AcceptScore(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline int ILMatch::GetAngleTolerance ( ) { - int _result = 0; - HRESULT _hr = get_AngleTolerance(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILMatch::PutAngleTolerance ( int val ) { - HRESULT _hr = put_AngleTolerance(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline int ILMatch::GetAngleBias ( ) { - int _result = 0; - HRESULT _hr = get_AngleBias(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILMatch::PutAngleBias ( int val ) { - HRESULT _hr = put_AngleBias(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline int ILMatch::GetScaleTolerance ( ) { - int _result = 0; - HRESULT _hr = get_ScaleTolerance(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILMatch::PutScaleTolerance ( int val ) { - HRESULT _hr = put_ScaleTolerance(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline int ILMatch::GetScaleBias ( ) { - int _result = 0; - HRESULT _hr = get_ScaleBias(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILMatch::PutScaleBias ( int val ) { - HRESULT _hr = put_ScaleBias(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline int ILMatch::GetMaxCount ( ) { - int _result = 0; - HRESULT _hr = get_MaxCount(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILMatch::PutMaxCount ( int val ) { - HRESULT _hr = put_MaxCount(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline int ILMatch::GetOverlap ( ) { - int _result = 0; - HRESULT _hr = get_Overlap(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILMatch::PutOverlap ( int val ) { - HRESULT _hr = put_Overlap(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL ILMatch::GetIgnorePolarity ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_IgnorePolarity(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILMatch::PutIgnorePolarity ( VARIANT_BOOL val ) { - HRESULT _hr = put_IgnorePolarity(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL ILMatch::GetUseCache ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_UseCache(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILMatch::PutUseCache ( VARIANT_BOOL val ) { - HRESULT _hr = put_UseCache(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL ILMatch::GetStrictScore ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_StrictScore(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILMatch::PutStrictScore ( VARIANT_BOOL val ) { - HRESULT _hr = put_StrictScore(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL ILMatch::GetExcludeBoundary ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_ExcludeBoundary(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILMatch::PutExcludeBoundary ( VARIANT_BOOL val ) { - HRESULT _hr = put_ExcludeBoundary(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline int ILMatch::GetGrayValueWeight ( ) { - int _result = 0; - HRESULT _hr = get_GrayValueWeight(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILMatch::PutGrayValueWeight ( int val ) { - HRESULT _hr = put_GrayValueWeight(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline HRESULT ILMatch::SetPatCenter ( enum LPVPatCenterMode centerMode, double patX, double patY, double patAngle ) { - HRESULT _hr = raw_SetPatCenter(centerMode, patX, patY, patAngle); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILMatch::GetPatCenter ( double * patX, double * patY, double * patAngle ) { - HRESULT _hr = raw_GetPatCenter(patX, patY, patAngle); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline enum LPVPatCenterMode ILMatch::GetPatCenterMode ( ) { - enum LPVPatCenterMode _result; - HRESULT _hr = raw_GetPatCenterMode(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT ILMatch::GetPatImage ( struct ILImage * img ) { - HRESULT _hr = raw_GetPatImage(img); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ILMatch::GetPatMask ( struct ILImage * mask ) { - HRESULT _hr = raw_GetPatMask(mask); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline double ILMatch::GetDetailLevel ( ) { - double _result = 0; - HRESULT _hr = get_DetailLevel(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILMatch::PutDetailLevel ( double val ) { - HRESULT _hr = put_DetailLevel(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL ILMatch::GetIsotropicScale ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_IsotropicScale(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILMatch::PutIsotropicScale ( VARIANT_BOOL val ) { - HRESULT _hr = put_IsotropicScale(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline ILPointsPtr ILMatch::GetPatFeature ( ) { - struct ILPoints * _result = 0; - HRESULT _hr = raw_GetPatFeature(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ILPointsPtr(_result, false); -} - -inline int ILMatch::GetAccuracyLevel ( ) { - int _result = 0; - HRESULT _hr = get_AccuracyLevel(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILMatch::PutAccuracyLevel ( int val ) { - HRESULT _hr = put_AccuracyLevel(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL ILMatch::GetIgnoreMissing ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_IgnoreMissing(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILMatch::PutIgnoreMissing ( VARIANT_BOOL val ) { - HRESULT _hr = put_IgnoreMissing(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline int ILMatch::GetMissingTolerance ( ) { - int _result = 0; - HRESULT _hr = get_MissingTolerance(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ILMatch::PutMissingTolerance ( int val ) { - HRESULT _hr = put_MissingTolerance(val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/main.obj b/tpvs17/SmokeBoxIdentification/x64/Release/main.obj deleted file mode 100644 index 2b7adab..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/main.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/moc_ADModule.obj b/tpvs17/SmokeBoxIdentification/x64/Release/moc_ADModule.obj deleted file mode 100644 index fdfefd8..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/moc_ADModule.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/moc_Camera.obj b/tpvs17/SmokeBoxIdentification/x64/Release/moc_Camera.obj deleted file mode 100644 index 323a426..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/moc_Camera.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/moc_CameraControl.obj b/tpvs17/SmokeBoxIdentification/x64/Release/moc_CameraControl.obj deleted file mode 100644 index e253263..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/moc_CameraControl.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/moc_CategoryMatcher.obj b/tpvs17/SmokeBoxIdentification/x64/Release/moc_CategoryMatcher.obj deleted file mode 100644 index 6f8b511..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/moc_CategoryMatcher.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/moc_CodeScanStation.obj b/tpvs17/SmokeBoxIdentification/x64/Release/moc_CodeScanStation.obj deleted file mode 100644 index 56187c7..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/moc_CodeScanStation.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/moc_HikCamera.obj b/tpvs17/SmokeBoxIdentification/x64/Release/moc_HikCamera.obj deleted file mode 100644 index 995226e..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/moc_HikCamera.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/moc_NetControl.obj b/tpvs17/SmokeBoxIdentification/x64/Release/moc_NetControl.obj deleted file mode 100644 index 2640406..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/moc_NetControl.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/moc_QNumTemplateBuild.obj b/tpvs17/SmokeBoxIdentification/x64/Release/moc_QNumTemplateBuild.obj deleted file mode 100644 index a5ab110..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/moc_QNumTemplateBuild.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/moc_SmokeBoxIdentification.obj b/tpvs17/SmokeBoxIdentification/x64/Release/moc_SmokeBoxIdentification.obj deleted file mode 100644 index c02b195..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/moc_SmokeBoxIdentification.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/moc_lpSerialStation.obj b/tpvs17/SmokeBoxIdentification/x64/Release/moc_lpSerialStation.obj deleted file mode 100644 index ebb1b9d..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/moc_lpSerialStation.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/qrc_SmokeBoxIdentification.obj b/tpvs17/SmokeBoxIdentification/x64/Release/qrc_SmokeBoxIdentification.obj deleted file mode 100644 index a0a02eb..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/qrc_SmokeBoxIdentification.obj and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/qt_work.log b/tpvs17/SmokeBoxIdentification/x64/Release/qt_work.log deleted file mode 100644 index a068683..0000000 Binary files a/tpvs17/SmokeBoxIdentification/x64/Release/qt_work.log and /dev/null differ diff --git a/tpvs17/SmokeBoxIdentification/x64/Release/smokeBox.Build.CppClean.log b/tpvs17/SmokeBoxIdentification/x64/Release/smokeBox.Build.CppClean.log deleted file mode 100644 index 919016a..0000000 --- a/tpvs17/SmokeBoxIdentification/x64/Release/smokeBox.Build.CppClean.log +++ /dev/null @@ -1,55 +0,0 @@ -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\qnumtemplatebuild.obj -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\netcontrol.obj -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpserialstation.obj -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\hikcamera.obj -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\log.obj -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\codescanstation.obj -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\categorymatcher.obj -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\cameracontrol.obj -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\admodule.obj -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\release\moc_admodule.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\release\moc_camera.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\release\moc_cameracontrol.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\release\moc_categorymatcher.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\release\moc_codescanstation.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\release\moc_qnumtemplatebuild.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\release\moc_smokeboxidentification.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\release\moc_netcontrol.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\release\moc_lpserialstation.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\release\moc_hikcamera.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\qrc_smokeboxidentification.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\ui_qnumtemplatebuild.h -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\ui_smokeboxidentification.h -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\qrc_smokeboxidentification.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\release\moc_admodule.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\release\moc_camera.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\release\moc_cameracontrol.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\release\moc_categorymatcher.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\release\moc_codescanstation.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\release\moc_qnumtemplatebuild.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\release\moc_smokeboxidentification.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\release\moc_netcontrol.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\release\moc_lpserialstation.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\release\moc_hikcamera.cpp -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\ui_qnumtemplatebuild.h -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\ui_smokeboxidentification.h -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvcore.tli -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvgeom.tli -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvgeomx.tli -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvimgproc.tli -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvpat.tli -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvcore.tlh -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvgeom.tlh -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvgeomx.tlh -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvimgproc.tlh -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvpat.tlh -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\smokebox.b12702ad.tlog\cl.command.1.tlog -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\smokebox.b12702ad.tlog\cl.read.1.tlog -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\smokebox.b12702ad.tlog\cl.write.1.tlog -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\smokebox.b12702ad.tlog\moc.read.1u.tlog -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\smokebox.b12702ad.tlog\moc.write.1u.tlog -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\smokebox.b12702ad.tlog\rcc.read.1u.tlog -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\smokebox.b12702ad.tlog\rcc.write.1u.tlog -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\smokebox.b12702ad.tlog\smokeboxidentification.write.1u.tlog -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\smokebox.b12702ad.tlog\uic.read.1u.tlog -e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\smokebox.b12702ad.tlog\uic.write.1u.tlog