| | |
| | | |
| | | void CRIP_THICKNESS_PARM::Reset() |
| | | { |
| | | m_bUseInspect = FALSE; |
| | | m_bUseInspect = m_bRipUseInspect= FALSE; |
| | | m_nLeftThres = m_nRightThres = m_nGlassThres = 0; |
| | | m_nRipDir = 0; |
| | | m_nRectLeft = m_nRectRight = 0; |
| | | m_nTopOffset = m_nBottomOffset = 0; |
| | | m_nRipInspect_Range_um = m_nRipInspect_SideLine_Offset_um=0; |
| | | m_nRipMin_Threshold = 0; |
| | | m_nRipMax_Threshold= 0; |
| | | |
| | | m_nGlassSizeMin_um = 0; m_nGlassSizeMax_um = 0; |
| | | m_nLeftRipSizeMin_um = 0; m_nLeftRipSizeMax_um = 0; |
| | | m_nRightRipSizeMin_um = 0; m_nRightRipSizeMax_um = 0; |
| | | m_nRipJudge_Size_Min_X_um = 0; m_nRipJudge_Size_Min_Y_um = 0; |
| | | m_nRipJudge_Size_Min_OR_AND = 0; |
| | | |
| | | } |
| | | |
| | | BOOL CRIP_THICKNESS_PARM::ReadRecipe(CConfig* pFile, int nSideIdx) |
| | |
| | | pFile->GetItemValue(nSideIdx, k, m_nRectRight, 0); |
| | | k = _T("RipThk_m_nBottomOffset"); |
| | | pFile->GetItemValue(nSideIdx, k, m_nBottomOffset, 0); |
| | | k = _T("RipThk_m_bRipUseInspect"); |
| | | pFile->GetItemValue(nSideIdx, k, m_bRipUseInspect, 0); |
| | | k = _T("RipThk_m_nRipInspect_Range_um"); |
| | | pFile->GetItemValue(nSideIdx, k, m_nRipInspect_Range_um, 0); |
| | | k = _T("RipThk_m_nRipInspect_SideLine_Offset_um"); |
| | | pFile->GetItemValue(nSideIdx, k, m_nRipInspect_SideLine_Offset_um, 0); |
| | | k = _T("RipThk_m_nRipMin_Threshold"); |
| | | pFile->GetItemValue(nSideIdx, k, m_nRipMin_Threshold, 20); |
| | | k = _T("RipThk_m_nRipMax_Threshold"); |
| | | pFile->GetItemValue(nSideIdx, k, m_nRipMax_Threshold, 255); |
| | | k = _T("RipThk_m_nGlassSizeMin_um"); |
| | | pFile->GetItemValue(nSideIdx, k, m_nGlassSizeMin_um, 0); |
| | | k = _T("RipThk_m_nGlassSizeMax_um"); |
| | |
| | | pFile->GetItemValue(nSideIdx, k, m_nRightRipSizeMin_um, 0); |
| | | k = _T("RipThk_m_nRightRipSizeMax_um"); |
| | | pFile->GetItemValue(nSideIdx, k, m_nRightRipSizeMax_um, 0); |
| | | k = _T("RipThk_m_nRipJudge_Size_Min_X_um"); |
| | | pFile->GetItemValue(nSideIdx, k, m_nRipJudge_Size_Min_X_um, 0); |
| | | k = _T("RipThk_m_nRipJudge_Size_Min_Y_um"); |
| | | pFile->GetItemValue(nSideIdx, k, m_nRipJudge_Size_Min_Y_um, 0); |
| | | k = _T("RipThk_m_nRipJudge_Size_Min_OR_AND"); |
| | | pFile->GetItemValue(nSideIdx, k, m_nRipJudge_Size_Min_OR_AND, 0); |
| | | |
| | | |
| | | return TRUE; |
| | | } |
| | |
| | | pFile->SetItemValue(nSideIdx, k, m_nRectRight); |
| | | k = _T("RipThk_m_nBottomOffset"); |
| | | pFile->SetItemValue(nSideIdx, k, m_nBottomOffset); |
| | | k = _T("RipThk_m_bRipUseInspect"); |
| | | pFile->SetItemValue(nSideIdx, k, m_bRipUseInspect); |
| | | k = _T("RipThk_m_nRipInspect_Range_um"); |
| | | pFile->SetItemValue(nSideIdx, k, m_nRipInspect_Range_um); |
| | | k = _T("RipThk_m_nRipInspect_SideLine_Offset_um"); |
| | | pFile->SetItemValue(nSideIdx, k, m_nRipInspect_SideLine_Offset_um); |
| | | k = _T("RipThk_m_nRipMin_Threshold"); |
| | | pFile->SetItemValue(nSideIdx, k, m_nRipMin_Threshold); |
| | | k = _T("RipThk_m_m_nRipMax_Threshold"); |
| | | pFile->SetItemValue(nSideIdx, k, m_nRipMax_Threshold); |
| | | k = _T("RipThk_m_nGlassSizeMin_um"); |
| | | pFile->SetItemValue(nSideIdx, k, m_nGlassSizeMin_um); |
| | | k = _T("RipThk_m_nGlassSizeMax_um"); |
| | |
| | | pFile->SetItemValue(nSideIdx, k, m_nRightRipSizeMin_um); |
| | | k = _T("RipThk_m_nRightRipSizeMax_um"); |
| | | pFile->SetItemValue(nSideIdx, k, m_nRightRipSizeMax_um); |
| | | k = _T("RipThk_m_nRipJudge_Size_Min_X_um"); |
| | | pFile->SetItemValue(nSideIdx, k, m_nRipJudge_Size_Min_X_um); |
| | | k = _T("RipThk_m_nRipJudge_Size_Min_Y_um"); |
| | | pFile->SetItemValue(nSideIdx, k, m_nRipJudge_Size_Min_Y_um); |
| | | k = _T("RipThk_m_nRipJudge_Size_Min_OR_AND"); |
| | | pFile->SetItemValue(nSideIdx, k, m_nRipJudge_Size_Min_OR_AND); |
| | | |
| | | return TRUE; |
| | | } |