////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //생성 : //추가 : //목적 : 라이브 시 해당 델리게이트 호출 //설명 : 동기 호출 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public void UpdateDisplayLive(int iCameraIndex, Cognex.VisionPro.CogImage8Grey objLiveImage) { CFormDisplay obj = m_objFormDisplay[iCameraIndex] as CFormDisplay; do { if (null == obj) { break; } // 라이브는 바로 날림 obj.UpdateDisplay(objLiveImage); } while(false); }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //생성 : //추가 : //목적 : //설명 : ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// private void timer_Tick(object sender, EventArgs e) { var pDocument = CDocument.GetDocument; var pFormCommon = CFormCommon.GetFormCommon; // 카메라 세팅 // 카메라 1 if (CDefine.enumCamera.CAMERA_1 == m_eCameraIndex) { pFormCommon.SetButtonBackColor(BtnCamera1, pFormCommon.COLOR_ACTIVATE); } else { pFormCommon.SetButtonBackColor(BtnCamera1, pFormCommon.COLOR_UNACTIVATE); } // 라이브 if (CDefine.enumLiveMode.LIVE_MODE_ON == pDocument.GetLiveMode(( int )m_eCameraIndex)) { pFormCommon.SetButtonBackColor(BtnLive, pFormCommon.COLOR_ACTIVATE); m_objFormDisplay.UpdateDisplay(pDocument.GetLiveImage(( int )m_eCameraIndex)); } else { pFormCommon.SetButtonBackColor(BtnLive, pFormCommon.COLOR_UNACTIVATE); } // 반전 X if (true == m_objRecipeParameter.objCameraConfig.bReverseX) { pFormCommon.SetButtonBackColor(BtnReverseX, pFormCommon.COLOR_ACTIVATE); } else { pFormCommon.SetButtonBackColor(BtnReverseX, pFormCommon.COLOR_UNACTIVATE); } // 반전 Y if (true == m_objRecipeParameter.objCameraConfig.bReverseY) { pFormCommon.SetButtonBackColor(BtnReverseY, pFormCommon.COLOR_ACTIVATE); } else { pFormCommon.SetButtonBackColor(BtnReverseY, pFormCommon.COLOR_UNACTIVATE); } // 90도 회전 if (true == m_objRecipeParameter.objCameraConfig.bRotation90) { pFormCommon.SetButtonBackColor(BtnRotation90, pFormCommon.COLOR_ACTIVATE); } else { pFormCommon.SetButtonBackColor(BtnRotation90, pFormCommon.COLOR_UNACTIVATE); } // 270도 회전 if (true == m_objRecipeParameter.objCameraConfig.bRotation270) { pFormCommon.SetButtonBackColor(BtnRotation270, pFormCommon.COLOR_ACTIVATE); } else { pFormCommon.SetButtonBackColor(BtnRotation270, pFormCommon.COLOR_UNACTIVATE); } // 게인 pFormCommon.SetButtonText(this.BtnGain, string.Format("{0}", ( int )m_objRecipeParameter.objCameraConfig.dGain)); // 노출 시간 pFormCommon.SetButtonText(this.BtnExposureTime, string.Format("{0}", ( int )m_objRecipeParameter.objCameraConfig.dExposureTime)); // 조명 1 // BtnLight1.Text = 미구현 // 조명 2 // BtnLight2.Text = 미구현 }