| | |
| | | // ViewLedRecipeSetting.cpp : 备泅 颇老涝聪促. |
| | | // ViewLedRecipeSetting.cpp : 备泅 颇老涝聪促. |
| | | // |
| | | |
| | | #include "stdafx.h" |
| | |
| | | #include "ViewLampControl.h" |
| | | #include "DlgLogin.h" |
| | | #include "Global_Define.h" |
| | | // CViewLedRecipeSetting 措拳 惑磊涝聪促. |
| | | // CViewLedRecipeSetting 措拳 惑磊涝聪促. |
| | | |
| | | IMPLEMENT_DYNAMIC(CViewMain_Recipe, CDialogEx) |
| | | |
| | |
| | | END_MESSAGE_MAP() |
| | | |
| | | |
| | | // CViewLedRecipeSetting 皋矫瘤 贸府扁涝聪促. |
| | | // CViewLedRecipeSetting 皋矫瘤 贸府扁涝聪促. |
| | | BEGIN_EVENTSINK_MAP(CViewMain_Recipe, CDialogEx) |
| | | ON_EVENT(CViewMain_Recipe, IDC_BTN_IMG_LOAD, DISPID_CLICK, CViewMain_Recipe::ClickImgLoadButton, VTS_NONE) |
| | | ON_EVENT(CViewMain_Recipe, IDC_BTN_IMG_SAVE, DISPID_CLICK, CViewMain_Recipe::ClickImgSaveButton, VTS_NONE) |
| | |
| | | #if HALCON_VISION_KEY |
| | | void CViewMain_Recipe::onMsgVisionEvent(int code, int eDir) { |
| | | /* code */ |
| | | if (1 == code) { //获取区域数据 |
| | | if (1 == code) { //获取区域数据 |
| | | m_pThis->SetFrameRegion(); |
| | | } |
| | | else if (2 == code) { //获取效果 |
| | | else if (2 == code) { //获取效果 |
| | | m_pThis->DispAllResult(); |
| | | } |
| | | } |
| | |
| | | |
| | | tickCount = GetTickCount(); |
| | | |
| | | // 急琶等 Recipe 荐沥. |
| | | // 急琶等 Recipe 荐沥. |
| | | if (m_pDlgRecipe->WriteRecipeFile() == FALSE) |
| | | { |
| | | AfxMessageBox(_T("Save Fail"), MB_OK | MB_ICONERROR); |
| | |
| | | |
| | | void CViewMain_Recipe::DeleteVectorList() |
| | | { |
| | | // Vector 昏力 |
| | | // Vector 昏力 |
| | | LinkList* pList = NULL; |
| | | for (VectorLinkListIt it = m_VectorLinkList.begin(); it != m_VectorLinkList.end(); it++) |
| | | { |
| | |
| | | { |
| | | if(strRecipe.IsEmpty() == TRUE) |
| | | { |
| | | //AfxMessageBox("Recipe Name捞 绝嚼聪促."); |
| | | //AfxMessageBox("Recipe Name捞 绝嚼聪促."); |
| | | return FALSE; |
| | | } |
| | | |
| | |
| | | { |
| | | CPaintDC dc(this); |
| | | |
| | | DrawMarkImage(); // 恐 捞芭 秦拎具父 贸澜俊 付农 捞固瘤啊 弊妨龙鳖.. |
| | | DrawMarkImage(); // 恐 捞芭 秦拎具父 贸澜俊 付农 捞固瘤啊 弊妨龙鳖.. |
| | | } |
| | | |
| | | void CViewMain_Recipe::ClickButtonOpenExceptionSettingView() |
| | |
| | | |
| | | void CViewMain_Recipe::ClickButtonVisionSetting() |
| | | { |
| | | // TODO: 在此处添加消息处理程序代码 |
| | | // TODO: 在此处添加消息处理程序代码 |
| | | #if HALCON_VISION_KEY |
| | | IVisionRecipe* pInstance = BlVision_GetVisionRecipe(); |
| | | if (!pInstance->getVisionUse()) { |