|
|
|
@ -923,6 +923,7 @@ struct Function_Support_Det
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// 支架参数(Support_Detect)
|
|
|
|
// 支架参数(Support_Detect)
|
|
|
|
bool bDetSupport; // 支架偏位检测开关(Support_Detect.isOpen)
|
|
|
|
bool bDetSupport; // 支架偏位检测开关(Support_Detect.isOpen)
|
|
|
|
|
|
|
|
bool bDrawSupport; // 支架绘制开关(Support_Detect.form.support_param.bDrawSupport):是否绘制支架中心十字/距离线
|
|
|
|
float x_standard; // 水平方向标准距离(left/right 用)
|
|
|
|
float x_standard; // 水平方向标准距离(left/right 用)
|
|
|
|
float y_standard; // 垂直方向标准距离(up/down 用)
|
|
|
|
float y_standard; // 垂直方向标准距离(up/down 用)
|
|
|
|
std::vector<std::string> edge_select; // 参与计算的方向:up/down/left/right
|
|
|
|
std::vector<std::string> edge_select; // 参与计算的方向:up/down/left/right
|
|
|
|
@ -950,6 +951,7 @@ struct Function_Support_Det
|
|
|
|
void Init()
|
|
|
|
void Init()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
bDetSupport = false;
|
|
|
|
bDetSupport = false;
|
|
|
|
|
|
|
|
bDrawSupport = false;
|
|
|
|
x_standard = 0;
|
|
|
|
x_standard = 0;
|
|
|
|
y_standard = 0;
|
|
|
|
y_standard = 0;
|
|
|
|
edge_select.clear();
|
|
|
|
edge_select.clear();
|
|
|
|
@ -969,6 +971,7 @@ struct Function_Support_Det
|
|
|
|
void copy(Function_Support_Det tem)
|
|
|
|
void copy(Function_Support_Det tem)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this->bDetSupport = tem.bDetSupport;
|
|
|
|
this->bDetSupport = tem.bDetSupport;
|
|
|
|
|
|
|
|
this->bDrawSupport = tem.bDrawSupport;
|
|
|
|
this->x_standard = tem.x_standard;
|
|
|
|
this->x_standard = tem.x_standard;
|
|
|
|
this->y_standard = tem.y_standard;
|
|
|
|
this->y_standard = tem.y_standard;
|
|
|
|
this->edge_select.assign(tem.edge_select.begin(), tem.edge_select.end());
|
|
|
|
this->edge_select.assign(tem.edge_select.begin(), tem.edge_select.end());
|
|
|
|
@ -987,14 +990,14 @@ struct Function_Support_Det
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void print(std::string str)
|
|
|
|
void print(std::string str)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
printf("%s>>bDetSupport %d bDetHandle %d bDetTag %d x_standard %f y_standard %f x_offset %f y_offset %f r_offset %f edge num %ld handleRegion num %ld handle_diff %f BQ[area %f energy %f len %f hj %f]\n",
|
|
|
|
printf("%s>>bDetSupport %d bDrawSupport %d bDetHandle %d bDetTag %d x_standard %f y_standard %f x_offset %f y_offset %f r_offset %f edge num %ld handleRegion num %ld handle_diff %f BQ[area %f energy %f len %f hj %f]\n",
|
|
|
|
str.c_str(), bDetSupport, bDetHandle, bDetTag, x_standard, y_standard, x_offset, y_offset, r_offset, edge_select.size(), handleRegions.size(), handle_diff, BQ_area, BQ_energy, BQ_len, BQ_hj);
|
|
|
|
str.c_str(), bDetSupport, bDrawSupport, bDetHandle, bDetTag, x_standard, y_standard, x_offset, y_offset, r_offset, edge_select.size(), handleRegions.size(), handle_diff, BQ_area, BQ_energy, BQ_len, BQ_hj);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
std::string GetInfo(std::string str)
|
|
|
|
std::string GetInfo(std::string str)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
char buffer[512];
|
|
|
|
char buffer[512];
|
|
|
|
sprintf(buffer, "%s>>bDetSupport %d bDetHandle %d bDetTag %d x_standard %f y_standard %f x_offset %f y_offset %f r_offset %f edge num %ld handleRegion num %ld handle_diff %f BQ[area %f energy %f len %f hj %f]\n",
|
|
|
|
sprintf(buffer, "%s>>bDetSupport %d bDrawSupport %d bDetHandle %d bDetTag %d x_standard %f y_standard %f x_offset %f y_offset %f r_offset %f edge num %ld handleRegion num %ld handle_diff %f BQ[area %f energy %f len %f hj %f]\n",
|
|
|
|
str.c_str(), bDetSupport, bDetHandle, bDetTag, x_standard, y_standard, x_offset, y_offset, r_offset, edge_select.size(), handleRegions.size(), handle_diff, BQ_area, BQ_energy, BQ_len, BQ_hj);
|
|
|
|
str.c_str(), bDetSupport, bDrawSupport, bDetHandle, bDetTag, x_standard, y_standard, x_offset, y_offset, r_offset, edge_select.size(), handleRegions.size(), handle_diff, BQ_area, BQ_energy, BQ_len, BQ_hj);
|
|
|
|
std::string str123 = buffer;
|
|
|
|
std::string str123 = buffer;
|
|
|
|
return str123;
|
|
|
|
return str123;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|