291 lines
6.7 KiB
C++
291 lines
6.7 KiB
C++
#pragma once
|
|
|
|
#include <functional>
|
|
#include <vector>
|
|
#include <time.h>
|
|
#include "../config/bean/IOCfg.h"
|
|
#include "../log/Jobbean.h"
|
|
|
|
struct SystemAssist {
|
|
uint64_t exitTickCount;
|
|
uint64_t exitSumTime;
|
|
int lockShowTextWidth;
|
|
SystemAssist() {
|
|
exitTickCount = 0;
|
|
exitSumTime = 0;
|
|
lockShowTextWidth = 0;
|
|
}
|
|
};
|
|
|
|
struct PowderAssistBean
|
|
{
|
|
double powderRpos;
|
|
double moldRpos;
|
|
double armRPos;
|
|
|
|
bool isSupplyPositiveRepeat;
|
|
bool isSupplyNegativeRepeat;
|
|
bool isMoldUpRepeat;
|
|
bool isMoldDownRepeat;
|
|
bool isArmFrontRepeat;
|
|
bool isArmBackRepeat;
|
|
bool isLoadLeftRepeat;
|
|
bool isLoadRightRepeat;
|
|
//bool isCleanUpRepeat;
|
|
//bool isCleanDownRepeat;
|
|
|
|
bool isLeftExpand;
|
|
PowderAssistBean() {
|
|
armRPos = 0;
|
|
moldRpos = 0;
|
|
powderRpos = 0;
|
|
isArmFrontRepeat = false;
|
|
isArmBackRepeat = false;
|
|
isMoldUpRepeat = false;
|
|
isMoldDownRepeat = false;
|
|
isSupplyPositiveRepeat = false;
|
|
isSupplyNegativeRepeat = false;
|
|
isLeftExpand = false;
|
|
}
|
|
};
|
|
|
|
struct StateColumnBean
|
|
{
|
|
float columnFix;
|
|
float columnWidth;
|
|
StateColumnBean() {
|
|
|
|
}
|
|
StateColumnBean(float fix, float width) {
|
|
columnFix = fix;
|
|
columnWidth = width;
|
|
}
|
|
};
|
|
|
|
struct ComSetAssistBean
|
|
{
|
|
float chilerTargeValue;
|
|
float tempCtrlTargeValue;
|
|
float upsShutdownTime;
|
|
float purifierBlowSpeed;
|
|
|
|
bool purifierDedust;
|
|
bool purifierBoxClean;
|
|
bool purifierBlowBack;
|
|
bool purifierWash;
|
|
bool purifierMidClean;
|
|
bool purifierHighClean;
|
|
bool purifierHopperClean;
|
|
|
|
float oxygenTitleWidth;
|
|
float chillerTitleWidth;
|
|
float upsTitleWidth;
|
|
float axisTitleWidth;
|
|
float tempctrlTitleWidth;
|
|
float staTitleWidth;
|
|
|
|
explicit ComSetAssistBean() {
|
|
chilerTargeValue = 0;
|
|
tempCtrlTargeValue = 0;
|
|
upsShutdownTime = 0;
|
|
purifierBlowSpeed = 0;
|
|
purifierDedust = false;
|
|
purifierBoxClean = false;
|
|
purifierBlowBack = false;
|
|
purifierWash = false;
|
|
purifierMidClean = false;
|
|
purifierHighClean = false;
|
|
purifierHopperClean = false;
|
|
chillerTitleWidth = 100.0f;
|
|
oxygenTitleWidth = 100.0f;
|
|
upsTitleWidth = 100.0f;
|
|
axisTitleWidth = 100.0f;
|
|
tempctrlTitleWidth = 100.0f;
|
|
staTitleWidth = 100.0f;
|
|
|
|
}
|
|
};
|
|
|
|
struct ScanDebugBean {
|
|
bool isScanParamSelected;
|
|
bool isCorrectParamSelected;
|
|
bool isScanTestSelected;
|
|
bool isPowerSelected;
|
|
bool isSkyWritingSelected;
|
|
int addPowerPercent;
|
|
float addPowerValue;
|
|
unsigned int addTimePowerStart;
|
|
unsigned int addTimePowerEnd;
|
|
float addTimePowerValue;
|
|
|
|
explicit ScanDebugBean() {
|
|
isScanParamSelected = true;
|
|
isCorrectParamSelected = false;
|
|
isScanTestSelected = false;
|
|
isPowerSelected = false;
|
|
isSkyWritingSelected = false;
|
|
addPowerPercent = 0;
|
|
addPowerValue = 0;
|
|
addTimePowerStart = 0;
|
|
addTimePowerEnd = 0;
|
|
addTimePowerValue = 1.0f;
|
|
}
|
|
};
|
|
|
|
struct PurifierShowBean {
|
|
bool isPurifierStateSelected;
|
|
bool isPurifierSettingSelected;
|
|
|
|
float boxPressureUpLimit; //箱体压力上限设定
|
|
float boxPressureDownLimit; //箱体压力下限设定
|
|
float midPressureDifAlarmValue; //中效过滤器压差报警设
|
|
float highPressureDifAlarmValue; //高效过滤器压差报警设
|
|
float printCleanOxygenSetValue; //打印室氧清洗氧含量设
|
|
float windSetValue; //风速设定
|
|
float maxWindSetValue; //最大风速
|
|
float printOxygenDownSetValue; //打印氧下限设定
|
|
float printOxygenUpSetValue; //打印氧上限设定
|
|
float filterCleanOxygenSetValue; //过滤器清洗氧含量设定
|
|
float midTempHighSetValue; //中效高温报警设定
|
|
float midTempUltraSetValue; //中效超高温报警设定
|
|
float highTempHighSetValue; //高效高温报警设定
|
|
//float highTempUltraSetValue; //高效超高温报警设定
|
|
float pressureRangeUpLimit; //压力量程上限设定
|
|
float pressureRangeDownLimit; //压力量程下限设定
|
|
float oxygenAlarmValue; //打印氧超上限设定
|
|
unsigned short hopperCleanRemind; //清理料斗提醒设定
|
|
unsigned short boxWashDelayTime;
|
|
unsigned short dedustingWashDelayTime;
|
|
unsigned short blowBackBlowTime;
|
|
unsigned short blowBackSetTimes;
|
|
unsigned short ProtectionPressureSetTime;
|
|
|
|
float coverWindSpeedOffset;
|
|
bool isCoverWind;
|
|
bool coverWindSlowFinish;
|
|
bool coverWindResumeFinish;
|
|
bool shieldMonitorPrintPressure;
|
|
explicit PurifierShowBean() {
|
|
isPurifierStateSelected = true;
|
|
isPurifierSettingSelected = false;
|
|
shieldMonitorPrintPressure = false;
|
|
coverWindResumeFinish = true;
|
|
boxPressureUpLimit = 0;
|
|
boxPressureDownLimit = 0;
|
|
midPressureDifAlarmValue = 0;
|
|
highPressureDifAlarmValue = 0;
|
|
printCleanOxygenSetValue = 0;
|
|
windSetValue = 0;
|
|
maxWindSetValue = 0.0f;
|
|
printOxygenDownSetValue = 0;
|
|
printOxygenUpSetValue = 0;
|
|
filterCleanOxygenSetValue = 0;
|
|
midTempHighSetValue = 0;
|
|
midTempUltraSetValue = 0;
|
|
highTempHighSetValue = 0;
|
|
//highTempUltraSetValue = 0;
|
|
hopperCleanRemind = 0;
|
|
boxWashDelayTime = 0;
|
|
dedustingWashDelayTime = 0;
|
|
pressureRangeUpLimit = 0;
|
|
pressureRangeDownLimit = 0;
|
|
oxygenAlarmValue = 0;
|
|
coverWindSpeedOffset = 0.0f;
|
|
isCoverWind = false;
|
|
coverWindSlowFinish = false;
|
|
blowBackBlowTime = 0;
|
|
blowBackSetTimes = 0;
|
|
ProtectionPressureSetTime = 0;
|
|
}
|
|
};
|
|
|
|
struct JobAssist {
|
|
char preLayerName[100];
|
|
unsigned int preLayerIndex;
|
|
bool isFirst;
|
|
JobBean continueJob;
|
|
explicit JobAssist() {
|
|
preLayerIndex = 0;
|
|
}
|
|
};
|
|
|
|
struct MenuAssist {
|
|
bool isAddTaskClick;
|
|
explicit MenuAssist() {
|
|
isAddTaskClick = false;
|
|
}
|
|
};
|
|
|
|
struct IoAssist {
|
|
IOCfg* homeOcfg;
|
|
explicit IoAssist() {
|
|
homeOcfg = NULL;
|
|
}
|
|
};
|
|
|
|
struct ConfigAssist {
|
|
bool isPrintConfigSelected;
|
|
bool isAlarmConfigSelected;
|
|
explicit ConfigAssist() {
|
|
isAlarmConfigSelected = true;
|
|
isPrintConfigSelected = false;
|
|
}
|
|
};
|
|
|
|
|
|
|
|
struct LogAssist {
|
|
tm selectBeginTime;
|
|
tm selectEndTime;
|
|
int layer_selected_param;
|
|
int layer_selected_style;
|
|
int layer_selected_base;
|
|
static const int PARAM_LENGTH = 14;
|
|
string layer_selected_id;
|
|
vector<double> paramValue[PARAM_LENGTH];
|
|
vector<double> paramIndex;
|
|
string yUnit;
|
|
double minValue[PARAM_LENGTH];
|
|
double maxValue[PARAM_LENGTH];
|
|
string yTitle;
|
|
bool isExportData;
|
|
bool isExportAxisData;
|
|
bool isExportImage;
|
|
bool isExportScanData;
|
|
int64_t selected_servo_row;
|
|
int64_t selected_sp_id;
|
|
explicit LogAssist() {
|
|
time_t t = time(nullptr);
|
|
selectBeginTime = *localtime(&t);
|
|
selectEndTime = *localtime(&t);
|
|
layer_selected_param = 0;
|
|
layer_selected_style = 0;
|
|
layer_selected_base = 0;
|
|
isExportData = true;
|
|
isExportImage = false;
|
|
isExportAxisData = true;
|
|
isExportScanData = false;
|
|
yTitle = "PPM";
|
|
time_t temp;
|
|
time(&temp);
|
|
localtime_s(&selectBeginTime, &temp);
|
|
localtime_s(&selectEndTime, &temp);
|
|
selected_servo_row = -1;
|
|
selected_sp_id = -1;
|
|
}
|
|
};
|
|
|
|
struct MotionDrawAssist
|
|
{
|
|
float loadRPos;
|
|
float moldRpos;
|
|
float armRPos;
|
|
bool isPrintPressure;
|
|
bool isPrintMoldSupprt;
|
|
bool isPrintJackup;
|
|
bool isInPrintPos;
|
|
|
|
bool isCleanPressure;
|
|
bool isCleanConnect;
|
|
bool isCleanClose;
|
|
}; |