68 lines
1.7 KiB
C++
68 lines
1.7 KiB
C++
#pragma once
|
|
#include <string>
|
|
#include <vector>
|
|
#include "../protobuf/stream.pb.h"
|
|
|
|
using namespace std;
|
|
class ScanTestCfg
|
|
{
|
|
public:
|
|
ScanTestCfg();
|
|
~ScanTestCfg();
|
|
void GetUpdateSql(int cno,vector<string>& ups);
|
|
|
|
void SetScanTestCfg(stream::ScanTestCfg* cp);
|
|
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;
|
|
|
|
bool m_IsAutoHeatingScanner; //开启暂停开始时预热振镜
|
|
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;
|
|
};
|
|
|