You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
newValue/tpvs17/lpMain/lpGlobalConfig.h

52 lines
1.2 KiB
C++

#ifndef _LPGLOBALCONFIG_H_
#define _LPGLOBALCONFIG_H_
#include <QObject>
#include "lp_singleton_base.h"
#include <QMap>
#include <QPoint>
class lpGlobalConfig : public QObject, public lp_singleton_base<lpGlobalConfig>
{
Q_OBJECT
public:
lpGlobalConfig(QObject *parent = nullptr);
~lpGlobalConfig();
public:
void readConfig();
void writeConfig();
QString m_StationCamKey_1;//工位相机绑定
QString m_StationCamKey_2;//工位相机绑定
QString m_StationSolution_1;//工位solution绑定
QString m_StationSolution_2;//工位solution绑定
QString m_StationRunModel_1;
QString m_StationRunModel_2;
//坐标标定 工位A
QPoint point1_1;//标定点 1
QPoint point2_1;//标定点 2
double fLength_1{ 1000.0 };//物理两标定点长度
double m_StationScale_1{ 1.0 };//比例尺 长度/像素
double m_StationXOffset_1{ 0.0 };//物理标点横向偏移
double m_StationYOffset_1{ 0.0 };//物理标点纵向偏移
//坐标标定 工位B
QPoint point1_2;//标定点 1
QPoint point2_2;//标定点 2
double fLength_2{ 1000.0 };//物理两标定点长度
double m_StationScale_2{ 1.0 };
double m_StationXOffset_2{ 0.0 };
double m_StationYOffset_2{ 0.0 };
int pointCircle{ 20 };//标定点 直径
bool m_bOnlineMode{ false };//在线模式
QString m_rootPath;
};
#endif