|
|
|
|
@ -775,78 +775,25 @@ int BaseFuntonConfigJson::GetFunction(Json::Value value)
|
|
|
|
|
auto value_f = value;
|
|
|
|
|
// std::cout << value_f << std::endl;
|
|
|
|
|
// getchar();
|
|
|
|
|
_config.markLine.bOpen = value_f["isOpen"].asBool();
|
|
|
|
|
if (_config.markLine.bOpen)
|
|
|
|
|
_config.ALign_Config.bOpen = value_f["isOpen"].asBool();
|
|
|
|
|
if (_config.ALign_Config.bOpen)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
auto crop_roi = value_f["form"]["ALign_Config"]["Product_ROI"];
|
|
|
|
|
// 2、读取区域点
|
|
|
|
|
{
|
|
|
|
|
auto value_region = value_f["form"]["ALign_Config"]["Product_ROI"];
|
|
|
|
|
if (value_region.isArray())
|
|
|
|
|
{
|
|
|
|
|
for (int idx = 0; idx < value_region.size(); idx++)
|
|
|
|
|
{
|
|
|
|
|
cv::Point p;
|
|
|
|
|
p.x = value_region[idx][0].asInt();
|
|
|
|
|
p.y = value_region[idx][1].asInt();
|
|
|
|
|
|
|
|
|
|
_config.markLine.region.emplace_back(p);
|
|
|
|
|
}
|
|
|
|
|
if (_config.markLine.region.size() > 0)
|
|
|
|
|
{
|
|
|
|
|
_config.markLine.productROI = boundingRect(_config.markLine.region);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// printf(" pointArry1 size %d \n", function.f_ShieldRegion.pointArry1.size());
|
|
|
|
|
}
|
|
|
|
|
if (value_f["form"]["ALign_Config"]["bDraw"])
|
|
|
|
|
if (value_f["form"]["ALign_Config"]["angle_diff"])
|
|
|
|
|
{
|
|
|
|
|
_config.markLine.bDraw = value_f["form"]["ALign_Config"]["bDraw"].asBool();
|
|
|
|
|
_config.ALign_Config.angle_diff = value_f["form"]["ALign_Config"]["angle_diff"].asFloat();
|
|
|
|
|
}
|
|
|
|
|
if (value_f["form"]["ALign_Config"]["badapt_region"])
|
|
|
|
|
if (value_f["form"]["ALign_Config"]["x_offset"])
|
|
|
|
|
{
|
|
|
|
|
_config.markLine.badapt_region = value_f["form"]["ALign_Config"]["badapt_region"].asBool();
|
|
|
|
|
_config.ALign_Config.x_offset = value_f["form"]["ALign_Config"]["x_offset"].asFloat();
|
|
|
|
|
}
|
|
|
|
|
if (value_f["form"]["ALign_Config"]["y_offset"])
|
|
|
|
|
{
|
|
|
|
|
auto value_circl = value_f["form"]["ALign_Config"]["mark_1_Local"]["path"];
|
|
|
|
|
if (value_circl.isArray())
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
if (value_circl[0][0])
|
|
|
|
|
{
|
|
|
|
|
_config.markLine.mark_local_1.x = value_circl[0][0].asInt();
|
|
|
|
|
}
|
|
|
|
|
if (value_circl[0][1])
|
|
|
|
|
{
|
|
|
|
|
_config.markLine.mark_local_1.y = value_circl[0][1].asInt();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
auto value_circl = value_f["form"]["ALign_Config"]["mark_2_Local"]["path"];
|
|
|
|
|
if (value_circl.isArray())
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
if (value_circl[0][0])
|
|
|
|
|
{
|
|
|
|
|
_config.markLine.mark_local_2.x = value_circl[0][0].asInt();
|
|
|
|
|
}
|
|
|
|
|
if (value_circl[0][1])
|
|
|
|
|
{
|
|
|
|
|
_config.markLine.mark_local_2.y = value_circl[0][1].asInt();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
_config.ALign_Config.y_offset = value_f["form"]["ALign_Config"]["y_offset"].asFloat();
|
|
|
|
|
}
|
|
|
|
|
// _config.markLine.print("dfe");
|
|
|
|
|
// getchar();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
_config.markLine.Init();
|
|
|
|
|
_config.ALign_Config.Init();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if ("Pin_QX_Detect" == strCode)
|
|
|
|
|
@ -854,108 +801,28 @@ int BaseFuntonConfigJson::GetFunction(Json::Value value)
|
|
|
|
|
auto value_f = value;
|
|
|
|
|
// std::cout << value_f << std::endl;
|
|
|
|
|
// getchar();
|
|
|
|
|
_config.edgeDet.bOpen = value_f["isOpen"].asBool();
|
|
|
|
|
if (_config.edgeDet.bOpen)
|
|
|
|
|
_config.pinDet.bOpen = value_f["isOpen"].asBool();
|
|
|
|
|
if (_config.pinDet.bOpen)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["Search_Config"]["Search_threshold"])
|
|
|
|
|
{
|
|
|
|
|
_config.edgeDet.Search_threshold = value_f["form"]["Search_Config"]["Search_threshold"].asInt();
|
|
|
|
|
}
|
|
|
|
|
if (value_f["form"]["Detect_Config"]["Det_threshold"])
|
|
|
|
|
{
|
|
|
|
|
_config.edgeDet.Det_threshold = value_f["form"]["Detect_Config"]["Det_threshold"].asInt();
|
|
|
|
|
}
|
|
|
|
|
if (value_f["form"]["Detect_Config"]["Det_Range"])
|
|
|
|
|
{
|
|
|
|
|
_config.edgeDet.Det_Range = value_f["form"]["Detect_Config"]["Det_Range"].asInt();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["Detect_Config"]["QX_Widht_min"])
|
|
|
|
|
{
|
|
|
|
|
_config.edgeDet.QX_Widht_min = value_f["form"]["Detect_Config"]["QX_Widht_min"].asInt();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["Detect_Config"]["QX_Widht_max"])
|
|
|
|
|
{
|
|
|
|
|
_config.edgeDet.QX_Widht_max = value_f["form"]["Detect_Config"]["QX_Widht_max"].asInt();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["Detect_Config"]["QX_Height_min"])
|
|
|
|
|
{
|
|
|
|
|
_config.edgeDet.QX_Height_min = value_f["form"]["Detect_Config"]["QX_Height_min"].asInt();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["Detect_Config"]["QX_Height_max"])
|
|
|
|
|
{
|
|
|
|
|
_config.edgeDet.QX_Height_max = value_f["form"]["Detect_Config"]["QX_Height_max"].asInt();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
///============================================
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["Jiao_Config"]["LU_Jiao"])
|
|
|
|
|
if (value_f["form"]["Det_Config"]["pin_x_offset"])
|
|
|
|
|
{
|
|
|
|
|
_config.edgeDet.queJiao_LU_Open = value_f["form"]["Jiao_Config"]["LU_Jiao"].asBool();
|
|
|
|
|
_config.pinDet.pin_x_offset = value_f["form"]["Det_Config"]["pin_x_offset"].asFloat();
|
|
|
|
|
}
|
|
|
|
|
if (value_f["form"]["Jiao_Config"]["RU_Jiao"])
|
|
|
|
|
if (value_f["form"]["Det_Config"]["pin_y_offset"])
|
|
|
|
|
{
|
|
|
|
|
_config.edgeDet.queJiao_RU_Open = value_f["form"]["Jiao_Config"]["RU_Jiao"].asBool();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["Jiao_Config"]["LD_Jiao"])
|
|
|
|
|
{
|
|
|
|
|
_config.edgeDet.queJiao_LD_Open = value_f["form"]["Jiao_Config"]["LD_Jiao"].asBool();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["Jiao_Config"]["RD_Jiao"])
|
|
|
|
|
{
|
|
|
|
|
_config.edgeDet.queJiao_RD_Open = value_f["form"]["Jiao_Config"]["RD_Jiao"].asBool();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["Jiao_Config"]["Jiao_Width"])
|
|
|
|
|
{
|
|
|
|
|
_config.edgeDet.queJiao_width = value_f["form"]["Jiao_Config"]["Jiao_Width"].asInt();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["Jiao_Config"]["Jiao_Height"])
|
|
|
|
|
{
|
|
|
|
|
_config.edgeDet.queJiao_height = value_f["form"]["Jiao_Config"]["Jiao_Height"].asInt();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["Draw_Config"]["Open"])
|
|
|
|
|
{
|
|
|
|
|
_config.edgeDet.bDrawRoi = value_f["form"]["Draw_Config"]["Open"].asBool();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 2、读取区域点
|
|
|
|
|
{
|
|
|
|
|
auto value_region = value_f["form"]["Draw_Config"]["Edge_ROI"];
|
|
|
|
|
if (value_region.isArray())
|
|
|
|
|
{
|
|
|
|
|
for (int idx = 0; idx < value_region.size(); idx++)
|
|
|
|
|
{
|
|
|
|
|
cv::Point p;
|
|
|
|
|
p.x = value_region[idx][0].asInt();
|
|
|
|
|
p.y = value_region[idx][1].asInt();
|
|
|
|
|
|
|
|
|
|
_config.edgeDet.region.emplace_back(p);
|
|
|
|
|
}
|
|
|
|
|
if (_config.edgeDet.region.size() > 0)
|
|
|
|
|
{
|
|
|
|
|
_config.edgeDet.draw_ROI = boundingRect(_config.edgeDet.region);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
_config.pinDet.pin_y_offset = value_f["form"]["Det_Config"]["pin_y_offset"].asFloat();
|
|
|
|
|
}
|
|
|
|
|
if (value_f["form"]["otherConfig"]["bDrawResult"])
|
|
|
|
|
{
|
|
|
|
|
_config.edgeDet.bDrawResult = value_f["form"]["otherConfig"]["bDrawResult"].asBool();
|
|
|
|
|
_config.pinDet.bDrawResult = value_f["form"]["otherConfig"]["bDrawResult"].asBool();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
_config.edgeDet.Init();
|
|
|
|
|
_config.pinDet.Init();
|
|
|
|
|
}
|
|
|
|
|
// _config.edgeDet.print("edgeDet");
|
|
|
|
|
// _config.pinDet.print("pinDet");
|
|
|
|
|
// getchar();
|
|
|
|
|
}
|
|
|
|
|
if ("Det_Image_Save" == strCode)
|
|
|
|
|
@ -984,7 +851,7 @@ int BaseFuntonConfigJson::GetFunction(Json::Value value)
|
|
|
|
|
{
|
|
|
|
|
_config.saveImg.Init();
|
|
|
|
|
}
|
|
|
|
|
// _config.edgeDet.print("edgeDet");
|
|
|
|
|
// _config.pinDet.print("pinDet");
|
|
|
|
|
// getchar();
|
|
|
|
|
}
|
|
|
|
|
if ("Big_NG" == strCode)
|
|
|
|
|
@ -995,131 +862,91 @@ int BaseFuntonConfigJson::GetFunction(Json::Value value)
|
|
|
|
|
_config.bigNG.bOpen = value_f["isOpen"].asBool();
|
|
|
|
|
if (_config.bigNG.bOpen)
|
|
|
|
|
{
|
|
|
|
|
if (value_f["form"]["aotudian"]["open"])
|
|
|
|
|
if (value_f["form"]["PIN_PoSun"]["open"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_aotudian].bOpen = value_f["form"]["aotudian"]["open"].asBool();
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_PIN_PoSun].bOpen = value_f["form"]["PIN_PoSun"]["open"].asBool();
|
|
|
|
|
}
|
|
|
|
|
if (value_f["form"]["aotudian"]["Area"])
|
|
|
|
|
if (value_f["form"]["PIN_PoSun"]["Area"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_aotudian].fArea = value_f["form"]["aotudian"]["Area"].asFloat();
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_PIN_PoSun].fArea = value_f["form"]["PIN_PoSun"]["Area"].asFloat();
|
|
|
|
|
}
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_aotudian].strname = "aotudian";
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_PIN_PoSun].strname = "PIN_PoSun";
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["other"]["open"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_other].bOpen = value_f["form"]["other"]["open"].asBool();
|
|
|
|
|
}
|
|
|
|
|
if (value_f["form"]["other"]["Area"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_other].fArea = value_f["form"]["other"]["Area"].asFloat();
|
|
|
|
|
}
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_other].strname = "other";
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["line"]["open"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_line].bOpen = value_f["form"]["line"]["open"].asBool();
|
|
|
|
|
}
|
|
|
|
|
if (value_f["form"]["line"]["Area"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_line].fArea = value_f["form"]["line"]["Area"].asFloat();
|
|
|
|
|
}
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_line].strname = "line";
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["zangwu"]["open"])
|
|
|
|
|
if (value_f["form"]["PIN_QueShi"]["open"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_zangwu].bOpen = value_f["form"]["zangwu"]["open"].asBool();
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_PIN_QueShi].bOpen = value_f["form"]["PIN_QueShi"]["open"].asBool();
|
|
|
|
|
}
|
|
|
|
|
if (value_f["form"]["zangwu"]["Area"])
|
|
|
|
|
if (value_f["form"]["PIN_QueShi"]["Area"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_zangwu].fArea = value_f["form"]["zangwu"]["Area"].asFloat();
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_PIN_QueShi].fArea = value_f["form"]["PIN_QueShi"]["Area"].asFloat();
|
|
|
|
|
}
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_zangwu].strname = "zangwu";
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_PIN_QueShi].strname = "PIN_QueShi";
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["edge"]["open"])
|
|
|
|
|
if (value_f["form"]["BTB_DuanLie"]["open"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_edge].bOpen = value_f["form"]["edge"]["open"].asBool();
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_BTB_DuanLie].bOpen = value_f["form"]["BTB_DuanLie"]["open"].asBool();
|
|
|
|
|
}
|
|
|
|
|
if (value_f["form"]["edge"]["Area"])
|
|
|
|
|
if (value_f["form"]["BTB_DuanLie"]["Area"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_edge].fArea = value_f["form"]["edge"]["Area"].asFloat();
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_BTB_DuanLie].fArea = value_f["form"]["BTB_DuanLie"]["Area"].asFloat();
|
|
|
|
|
}
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_edge].strname = "edge";
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_BTB_DuanLie].strname = "BTB_DuanLie";
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["ymhs"]["open"])
|
|
|
|
|
if (value_f["form"]["LianXi"]["open"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_ymhs].bOpen = value_f["form"]["ymhs"]["open"].asBool();
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_LianXi].bOpen = value_f["form"]["LianXi"]["open"].asBool();
|
|
|
|
|
}
|
|
|
|
|
if (value_f["form"]["ymhs"]["Area"])
|
|
|
|
|
if (value_f["form"]["LianXi"]["Area"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_ymhs].fArea = value_f["form"]["ymhs"]["Area"].asFloat();
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_LianXi].fArea = value_f["form"]["LianXi"]["Area"].asFloat();
|
|
|
|
|
}
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_ymhs].strname = "ymhs";
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_LianXi].strname = "LianXi";
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["dianzhuang"]["open"])
|
|
|
|
|
if (value_f["form"]["QueXi"]["open"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_dianzhuang].bOpen = value_f["form"]["dianzhuang"]["open"].asBool();
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_QueXi].bOpen = value_f["form"]["QueXi"]["open"].asBool();
|
|
|
|
|
}
|
|
|
|
|
if (value_f["form"]["dianzhuang"]["Area"])
|
|
|
|
|
if (value_f["form"]["QueXi"]["Area"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_dianzhuang].fArea = value_f["form"]["dianzhuang"]["Area"].asFloat();
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_QueXi].fArea = value_f["form"]["QueXi"]["Area"].asFloat();
|
|
|
|
|
}
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_dianzhuang].strname = "dianzhuang";
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_QueXi].strname = "QueXi";
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["posun"]["open"])
|
|
|
|
|
if (value_f["form"]["YiWu"]["open"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_posun].bOpen = value_f["form"]["posun"]["open"].asBool();
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_YiWu].bOpen = value_f["form"]["YiWu"]["open"].asBool();
|
|
|
|
|
}
|
|
|
|
|
if (value_f["form"]["posun"]["Area"])
|
|
|
|
|
if (value_f["form"]["YiWu"]["Area"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_posun].fArea = value_f["form"]["posun"]["Area"].asFloat();
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_YiWu].fArea = value_f["form"]["YiWu"]["Area"].asFloat();
|
|
|
|
|
}
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_posun].strname = "posun";
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_YiWu].strname = "YiWu";
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["xianwei"]["open"])
|
|
|
|
|
if (value_f["form"]["C_BianXing"]["open"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_xianwei].bOpen = value_f["form"]["xianwei"]["open"].asBool();
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_C_BianXing].bOpen = value_f["form"]["C_BianXing"]["open"].asBool();
|
|
|
|
|
}
|
|
|
|
|
if (value_f["form"]["xianwei"]["Area"])
|
|
|
|
|
if (value_f["form"]["C_BianXing"]["Area"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_xianwei].fArea = value_f["form"]["xianwei"]["Area"].asFloat();
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_C_BianXing].fArea = value_f["form"]["C_BianXing"]["Area"].asFloat();
|
|
|
|
|
}
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_xianwei].strname = "xianwei";
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_C_BianXing].strname = "C_BianXing";
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["shuizi"]["open"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_shuizi].bOpen = value_f["form"]["shuizi"]["open"].asBool();
|
|
|
|
|
}
|
|
|
|
|
if (value_f["form"]["shuizi"]["Area"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_shuizi].fArea = value_f["form"]["shuizi"]["Area"].asFloat();
|
|
|
|
|
}
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_shuizi].strname = "shuizi";
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["danban"]["open"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_danban].bOpen = value_f["form"]["danban"]["open"].asBool();
|
|
|
|
|
}
|
|
|
|
|
if (value_f["form"]["danban"]["Area"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_danban].fArea = value_f["form"]["danban"]["Area"].asFloat();
|
|
|
|
|
}
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_danban].strname = "danban";
|
|
|
|
|
|
|
|
|
|
if (value_f["form"]["fuchen"]["open"])
|
|
|
|
|
if (value_f["form"]["other"]["open"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_fuchen].bOpen = value_f["form"]["fuchen"]["open"].asBool();
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_other].bOpen = value_f["form"]["other"]["open"].asBool();
|
|
|
|
|
}
|
|
|
|
|
if (value_f["form"]["fuchen"]["Area"])
|
|
|
|
|
if (value_f["form"]["other"]["Area"])
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_fuchen].fArea = value_f["form"]["fuchen"]["Area"].asFloat();
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_other].fArea = value_f["form"]["other"]["Area"].asFloat();
|
|
|
|
|
}
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_cell_fuchen].strname = "fuchen";
|
|
|
|
|
_config.bigNG.qx[CONFIG_QX_NAME_other].strname = "other";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
_config.bigNG.Init();
|
|
|
|
|
}
|
|
|
|
|
// _config.edgeDet.print("edgeDet");
|
|
|
|
|
// _config.pinDet.print("pinDet");
|
|
|
|
|
// getchar();
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
|