GrpcPrint/PrintS/Config/bean/InfraredTempCfg.h

123 lines
3.0 KiB
C++

#pragma once
#include <string>
#include <vector>
using namespace std;
class InfraredTempCfg
{
public:
enum SurfaceTempCtrlType
{
WAIT_TEMP = 0,
CTRL_POWER,
COVERED_WAIT
};
enum AvgCalcType {
AVG_5 = 0,
AVG_10,
AVG_15,
AVG_20
};
InfraredTempCfg();
~InfraredTempCfg();
void GetUpdateSql(vector<string>& ups);
public:
bool m_IsEnable;
int m_Emissivity; //发射率
int m_AirTemp; //空气温度
int m_ReflectTemp; //反射温度
int m_Humidity; //湿度
int m_Distance; //距离
bool m_OSDSwitch; //叠加开关
bool m_GlobalTempAdd; //全局温度叠加
bool m_GlobalTempParamAdd; //全局温度参数叠加
bool m_PseudoColorBarsAdd; //伪彩色带叠加
bool m_HighLowTempCursorAdd; //高低温度游标叠加
int m_ColorPalette; //色板模式
int m_GainType; //增益方式
int m_TempUnit; //温度单位
int m_OverTurn; //翻转方式
int m_PlatformAX;
int m_PlatformAY;
int m_PlatformBX;
int m_PlatformBY;
int m_PlatformCX;
int m_PlatformCY;
int m_PlatformDX;
int m_PlatformDY;
float m_ChillDowmTemp; // 冷却温度
int m_TempCtrlType;
//bool m_WaitChillDownEnable; //开启等待冷却温度
float m_DeltaTemp;
float m_DeltaPower;
//float m_TempPowerSlope;
//float m_TempPowerIntercept;
unsigned int m_LayerWaitMil;
bool m_IsAvgCalcValue; //使用均值
int m_AvgCalcValueType; //均值类型
bool m_UseManualPoints;
float m_EmissivityAssist; //发射率
float m_AirTempAssist; //空气温度
float m_ReflectTempAssist; //反射温度
float m_HumidityAssist; //湿度
float m_DistanceAssist; //距离
bool m_IsForceConnect;
string m_ForceConnectIP;
char m_szIpAssist[16];
public:
static string CONFIG_NAME;
static string FIELD_IS_ENABLE;
static string FIELD_EMISSIVITY;
static string FIELD_AIR_TEMP;
static string FIELD_REFLECT_TEMP;
static string FIELD_HUMIDITY;
static string FIELD_DISTANCE;
static string FIELD_OSD_SWITCH;
static string FIELD_GLOBAL_TEMP_ADD;
static string FIELD_GLOBAL_TEMP_PARAM_ADD;
static string FIELD_PSEUDO_COLOR_BAR_ADD;
static string FIELD_HIGH_LOW_TEMP_CURSOR_ADD;
static string FIELD_COLOR_PALETTE;
static string FIELD_GAIN_TYPE;
static string FIELD_TEMP_UNIT;
/*static string FIELD_PLATFORM_START_X;
static string FIELD_PLATFORM_START_Y;
static string FIELD_PLATFORM_END_X;
static string FIELD_PLATFORM_END_Y;*/
static string FIELD_CHILL_DOWN_TEMP;
static string FIELD_SURFACE_TEMP_CTRL_TYPE;
static string FIELD_PLATFORM_A_X;
static string FIELD_PLATFORM_A_Y;
static string FIELD_PLATFORM_B_X;
static string FIELD_PLATFORM_B_Y;
static string FIELD_PLATFORM_C_X;
static string FIELD_PLATFORM_C_Y;
static string FIELD_PLATFORM_D_X;
static string FIELD_PLATFORM_D_Y;
static string FIELD_DELTA_TEMP;
static string FIELD_DELTA_POWER;
static string FIELD_LAYER_WAIT_MIL;
static string FIELD_IS_AVG_CALC_VALUE;
static string FIELD_AVG_CALC_VALUE;
static string FIELD_IS_FORCE_CONNECT;
static string FIELD_USE_MANUAL_POINTS;
static string FIELD_FORCE_CONNECT_IP;
static string FIELD_OVER_TURN;
};