SDC C-Project CF Review 프로그램
LYW
2021-10-14 e8ba1e78e72f3f7ec2841f55fd90253b4dc414df
ReviewSystem/ReviewSystem/ReviewInterface.cpp
@@ -124,6 +124,9 @@
   m_bIsOffSetOn = 0;
   m_bIsSimulation = 0;
   m_bFirstReviewLeft = 0;
   m_bFirstReviewRight = 0;
   // cs init
   InitializeCriticalSection(&m_csReviewResult);
   InitializeCriticalSection(&m_csReviewSignal);
@@ -1269,7 +1272,7 @@
      // process status observer
      AddObserverUpdateProcessStatus(static_cast<IUpdateProcessStatus*>(m_pAlignCameraControl));
      m_pAlignCameraControl->Camera_Control(CameraControlLive);
      /*m_pAlignCameraControl->Camera_Control(CameraControlLive);*/     // 210805 Align Camera Sequence 변경
   }
   else
   {
@@ -3317,6 +3320,12 @@
   return m_pDoc->System_GetSystemInfo();
}
const CSignalControlInfo* CReviewInterface::IRP2P_GetReviewSignalinfo()
{
   if (m_pDoc == NULL) return NULL;
   return m_pDoc->System_GetSignalInfo();
}
CGlassResult* CReviewInterface::IRP2P_GetCurrentGlassResult()
{
   if (m_pDoc==NULL) return NULL;
@@ -3377,6 +3386,26 @@
CRecipeManager* CReviewInterface::IRP2P_GetEdgeRecipeManager()
{
   return m_pEdgeRecipeManager;
}
BOOL CReviewInterface::IRP2P_GetFirstReviewLeft()
{
   return m_bFirstReviewLeft;
}
BOOL CReviewInterface::IRP2P_GetFirstReviewRight()
{
   return m_bFirstReviewRight;
}
void CReviewInterface::IRP2P_SetFirstReviewLeft(BOOL b_Check)
{
   m_bFirstReviewLeft = b_Check;
}
void CReviewInterface::IRP2P_SetFirstReviewRight(BOOL b_Check)
{
   m_bFirstReviewRight = b_Check;
}
@@ -3798,12 +3827,15 @@
   if (m_SequenceProcessor == NULL) return;
   m_SequenceProcessor->SetWsiType(9);
   if (!m_SequenceProcessor->WSIAllReadySignal(1))
   if (nModuleIdx == 0)
   {
      g_pLog->DisplayMessage(_T("[WSI] Send Ready Signal to All WIS Fail"));
      if (!m_SequenceProcessor->WSIAllReadySignal(1))
      {
         g_pLog->DisplayMessage(_T("[WSI] Send Ready Signal to All WIS Fail"));
         return;
      }
   }
   else
   {
      SetCurrentWsiMode(WsiMeasureType_VLSI);
      CWsiControl* pWsiControl = ISP2P_GetWSIControl(nModuleIdx);
@@ -3817,7 +3849,6 @@
      pWsiControl->SetWsiStart(1, vectorPosX, vectorPosY, 0);
   }
}
void CReviewInterface::IDP2P_WsiMotorMotionEnd(int nModuleIdx, double dPosX, double dPosY)
@@ -5741,6 +5772,10 @@
      pGlassResult->m_AlignRecipe.dMatchingRate      = pRsRcpAlignInfo->m_dMatchingRate;
      pGlassResult->m_AlignRecipe.strFirstImageFile   = pRsRcpAlignInfo->m_strFirstImageFile;
      pGlassResult->m_AlignRecipe.strSecondImageFile   = pRsRcpAlignInfo->m_strSecondImageFile;
      /*< LYW 20211012 - #3671 ADD Start >*/
      pGlassResult->m_AlignRecipe.strFirstAssistantImageFile = pRsRcpAlignInfo->m_strFirstAssistantImageFile;
      pGlassResult->m_AlignRecipe.strSecondAssistantImageFile = pRsRcpAlignInfo->m_strSecondAssistantImageFile;
      /*< LYW 20211012 - #3671 ADD End >*/
      pGlassResult->m_AlignRecipe.strTotalPitchImageFile = pRsRcpAlignInfo->m_strTotalPitchImageFile;
      // edge find param
@@ -6502,6 +6537,7 @@
      
      m_pDlgDiagnosis->ShowWindow(SW_SHOW);
      return;
      /*
      if (m_pSignalControl)
      {
@@ -6519,6 +6555,14 @@
   {
      g_pLog->DisplayMessage(_T("Machine Mode is not Manual or Review Mode!"));
      return;
   }
   else
   {
      //#3584 210923 LYW CF AOI Review 시뮬레이션 기능 정상화 ADD START
      m_pSequenceProcessor->SetSimulationMode(TRUE);
      g_pLog->DisplayMessage(_T("Set User Command = %d"),nCommand);
      //#3584 210923 LYW CF AOI Review 시뮬레이션 기능 정상화 ADD END
   }
   m_pSequenceProcessor->RecvSignalToSignalControl(PCControlRecvSignalIndex_Seq, nCommand);
@@ -8379,6 +8423,26 @@
   return m_pDlgHistoryTool;
}
BOOL CReviewInterface::ISP2P_GetFirstReviewLeft()
{
   return m_bFirstReviewLeft;
}
BOOL CReviewInterface::ISP2P_GetFirstReviewRight()
{
   return m_bFirstReviewRight;
}
void CReviewInterface::ISP2P_SetFirstReviewLeft(BOOL b_Check)
{
   m_bFirstReviewLeft = b_Check;
}
void CReviewInterface::ISP2P_SetFirstReviewRight(BOOL b_Check)
{
   m_bFirstReviewRight = b_Check;
}
void CReviewInterface::ILCC2P_DisplayMessage( int nIndex, const TCHAR* lpstrFormat, ... )
{
@@ -8879,6 +8943,11 @@
   SetCurrentWsiMode(nMode);
}
void CReviewInterface::ISP2P_InitAlignCamera()
{
   InitAlignCamera();
}
int CReviewInterface::IWC2P_GetWsiType()
{
   return GetCurrentWsiMode();