| | |
| | | int nIdx_Side = GetSideIdx(nViewIndex); |
| | | |
| | | LPBYTE plpBuf = NULL; |
| | | if(m_IV2M != NULL) |
| | | if (m_IV2M != NULL) { |
| | | plpBuf = m_IV2M->IV2M_GetGrabBufferByDimension((DimensionDir)nIdx_Side,nPos); |
| | | } |
| | | |
| | | return plpBuf; |
| | | } |
| | |
| | | PROG_MSG MsgJob = *((PROG_MSG*)wParam); |
| | | |
| | | int nIndex = GetViewIndex(MsgJob.nSide); |
| | | if(MsgJob.nState == 2) |
| | | { |
| | | if(MsgJob.nState == 2) { |
| | | InitScrollInfo(MsgJob.nSide,1); |
| | | |
| | | m_ctrlScrollV[nIndex].EnableWindow(TRUE); |
| | |
| | | m_frameImg[nIndex].SetGlassData(m_pGlassData); |
| | | m_frameImg[nIndex].Invalidate(); |
| | | } |
| | | else |
| | | { |
| | | /* |
| | | if(fabs(m_dZoom - 1.) > 0.01) |
| | | { |
| | | m_dZoom = 0.2; |
| | | m_sliderZoom.SetPos(0); |
| | | |
| | | CString strTmp; |
| | | strTmp.Format(_T("X %.2f"),m_dZoom); |
| | | GetDlgItem(IDC_ST_ZOOM)->SetWindowText(strTmp); |
| | | |
| | | UpdateZoom(); |
| | | } |
| | | */ |
| | | |
| | | //g_pLog->DisplayMessage(_T("Frame Display %d"),nIndex); |
| | | else { |
| | | CPoint ptOrg = m_frameImg[nIndex].GetDisplayPos(); |
| | | ptOrg.y = MsgJob.nDispLine; |
| | | |
| | |
| | | |
| | | void CViewMain_ScanImage::ResetView() |
| | | { |
| | | for(int i = 0; i < MAX_PANEL_SIDE * UPDN_TYPE; i++) |
| | | { |
| | | for(int i = 0; i < MAX_PANEL_SIDE * UPDN_TYPE; i++) { |
| | | m_ctrlScrollV[i].EnableWindow(FALSE); |
| | | } |
| | | } |
| | |
| | | if(ptStart.y+nLength < nMaxSize) { |
| | | strPath.Format(_T("%s\\DebugFullImage\\%s\\%s\\%s\\%s\\%s__%s_%d"),PATH_INSPECTION_DATA,strDate,strRcpName,strGlassID,strTime,strGlassID,PANEL_SIDE[iSide],nFrame); |
| | | m_IV2M->IV2M_SaveFullImage(strPath,iSide,ptStart,nLength); |
| | | } |
| | | } |
| | | |
| | | g_pLog->DisplayMessage(_T("%s %d Save Completed : %s"),PANEL_SIDE[iSide],nFrame,strPath); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | CCameraSettings* CViewMain_ScanImage::GetCameraSettingsByViewIndex(int nViewIndex) |
| | | { |
| | | CCameraSettings* pCamera = NULL; |
| | | if (nullptr != m_pHardware) { |
| | | if (nullptr == m_pHardware) { |
| | | return pCamera; |
| | | } |
| | | |