GrpcPrint/PrintS/Config/bean/ScanTestCfg.h

71 lines
1.7 KiB
C
Raw Normal View History

2024-06-27 10:56:50 +08:00
#pragma once
2024-03-19 17:45:12 +08:00
#include <string>
#include <vector>
2024-06-27 16:08:07 +08:00
#include "../DataManage/RWData.h"
2024-06-27 10:56:50 +08:00
#include "../protobuf/stream.pb.h"
2024-03-19 17:45:12 +08:00
using namespace std;
class ScanTestCfg
{
public:
ScanTestCfg();
~ScanTestCfg();
void GetUpdateSql(int cno,vector<string>& ups);
2024-06-27 10:56:50 +08:00
void SetScanTestCfg(stream::ScanTestCfg* cp);
2024-06-27 16:08:07 +08:00
void Update(const ReadData& rd);
2024-03-19 17:45:12 +08:00
public:
int m_debug_shape;
int m_shape_size;
int m_shape_size_min;
int m_shape_size_max;
int m_laser_power;
int m_laser_power_min;
int m_laser_power_max;
double m_defocus;
double m_defocus_min;
double m_defocus_max;
bool m_is_cycle;
double m_cross_x;
double m_cross_y;
double m_z_distance;
2024-06-27 10:56:50 +08:00
bool m_IsAutoHeatingScanner; //开启暂停开始时预热振镜
2024-03-19 17:45:12 +08:00
unsigned int m_AutoHeatingScannerMinutes;
unsigned int m_AutoHeatingScannerSize;
double m_AutoHeatingScannerSpeed;
double m_mark_test_start_x;
double m_mark_test_start_y;
double m_mark_test_end_x;
double m_mark_test_end_y;
public:
static string CONFIG_NAME;
static string FIELD_DEBUG_SHAPE;
static string FIELD_SHAPE_SIZE;
static string FIELD_SHAPE_SIZE_MIN;
static string FIELD_SHAPE_SIZE_MAX;
static string FIELD_LASER_POWER;
static string FIELD_LASER_POWER_MIN;
static string FIELD_LASER_POWER_MAX;
static string FIELD_DEFOCUS;
static string FIELD_DEFOCUS_MIN;
static string FIELD_DEFOCUS_MAX;
static string FIELD_IS_CYCLE;
static string FIELD_CROSS_CENTER_X;
static string FIELD_CROSS_CENTER_Y;
static string FIELD_IS_AUTO_HEATING_SCANNER;
static string FIELD_AUTO_HEATING_SCANNER_MINUTES;
static string FIELD_AUTO_HEATING_SCANNER_SIZE;
static string FIELD_AUTO_HEATING_SCANNER_SPEED;
static string FIELD_MARK_TEST_START_X;
static string FIELD_MARK_TEST_START_Y;
static string FIELD_MARK_TEST_END_X;
static string FIELD_MARK_TEST_END_Y;
};