#include "StdAfx.h" #include "CHReviewRecipe/RsRcpReviewInfo.h" CRsRcpReviewInfo::CRsRcpReviewInfo(void) { Reset(); } CRsRcpReviewInfo::~CRsRcpReviewInfo(void) { Reset(); } void CRsRcpReviewInfo::Reset() { m_bAutoLight = FALSE; // ÀÚµ¿Á¶¸í »ç¿ë À¯¹« m_bAutoLightWsi = FALSE; // ÀÚµ¿Á¶¸í »ç¿ë À¯¹« m_nGlassTypeIdx = -1; // ±Û¶ó½º À妽º m_nGlassOrigion = 4; m_nFilterCount = 0; m_nFilterCountWsi = 0; m_vecRcpPlanInfo.clear(); m_vecRcpPriorityInfo.clear(); m_vecRcpWSIPriorityInfo.clear(); m_vecRcpLightInfo.clear(); m_vecRcpAFMRecipeInfo.clear(); m_vecRcpLightInfoWsi.clear(); m_vecRcpAFMRecipeInfoWsi.clear(); m_vecRcpUserDefectInfo.clear(); m_vecRcpLightInfoUser.clear(); m_vecRcpAFMRecipeInfoUser.clear(); m_vecRcpReviewFilterInfo.clear(); m_vecRcpWSIFilterInfo.clear(); m_bTopReview = FALSE; m_strRecipeName = _T("default"); m_nRsFilterMaxSize = 1000; m_nRsFilterMInSize = 0; //210215 m_nJudgeFilterAoiPixel = 0; } void CRsRcpReviewInfo::SetInfo(const CRsRcpReviewInfo& rhs) { m_bAutoLight = rhs.m_bAutoLight; m_bAutoLightWsi = rhs.m_bAutoLightWsi; m_nGlassTypeIdx = rhs.m_nGlassTypeIdx; m_nGlassOrigion = rhs.m_nGlassOrigion; m_vecRcpPlanInfo = rhs.m_vecRcpPlanInfo; m_vecRcpPriorityInfo = rhs.m_vecRcpPriorityInfo; m_vecRcpWSIPriorityInfo = rhs.m_vecRcpWSIPriorityInfo; m_vecRcpLightInfo = rhs.m_vecRcpLightInfo; m_vecRcpAFMRecipeInfo = rhs.m_vecRcpAFMRecipeInfo; m_vecRcpLightInfoWsi = rhs.m_vecRcpLightInfoWsi; m_vecRcpAFMRecipeInfoWsi = rhs.m_vecRcpAFMRecipeInfoWsi; m_vecRcpUserDefectInfo = rhs.m_vecRcpUserDefectInfo; m_vecRcpLightInfoUser = rhs.m_vecRcpLightInfoUser; m_vecRcpAFMRecipeInfoUser = rhs.m_vecRcpAFMRecipeInfoUser; m_vecRcpReviewFilterInfo = rhs.m_vecRcpReviewFilterInfo; m_vecRcpWSIFilterInfo = rhs.m_vecRcpWSIFilterInfo; m_RcpReviewSortInfo = rhs.m_RcpReviewSortInfo; m_RcpWSISortInfo = rhs.m_RcpWSISortInfo; m_RcpSchedulingInfo = rhs.m_RcpSchedulingInfo; m_nFilterCount = rhs.m_nFilterCount; m_nFilterCountWsi = rhs.m_nFilterCountWsi; m_strRecipeName = rhs.m_strRecipeName; m_bTopReview = rhs.m_bTopReview; } void CRsRcpReviewInfo::GetInfo(CRsRcpReviewInfo& rhs) { rhs.m_bAutoLight = m_bAutoLight; rhs.m_bAutoLightWsi = m_bAutoLightWsi; rhs.m_nGlassTypeIdx = m_nGlassTypeIdx; rhs.m_nGlassOrigion = m_nGlassOrigion; rhs.m_vecRcpPlanInfo = m_vecRcpPlanInfo; rhs.m_vecRcpPriorityInfo = m_vecRcpPriorityInfo; rhs.m_vecRcpWSIPriorityInfo = m_vecRcpWSIPriorityInfo; rhs.m_vecRcpLightInfo = m_vecRcpLightInfo; rhs.m_vecRcpAFMRecipeInfo = m_vecRcpAFMRecipeInfo; rhs.m_vecRcpLightInfoWsi = m_vecRcpLightInfoWsi; rhs.m_vecRcpAFMRecipeInfoWsi = m_vecRcpAFMRecipeInfoWsi; rhs.m_vecRcpUserDefectInfo = m_vecRcpUserDefectInfo; rhs.m_vecRcpLightInfoUser = m_vecRcpLightInfoUser; rhs.m_vecRcpAFMRecipeInfoUser = m_vecRcpAFMRecipeInfoUser; rhs.m_vecRcpReviewFilterInfo = m_vecRcpReviewFilterInfo; rhs.m_vecRcpWSIFilterInfo = m_vecRcpWSIFilterInfo; rhs.m_RcpReviewSortInfo = m_RcpReviewSortInfo; rhs.m_RcpWSISortInfo = m_RcpWSISortInfo; rhs.m_RcpSchedulingInfo = m_RcpSchedulingInfo; rhs.m_nFilterCount = m_nFilterCount; rhs.m_nFilterCountWsi = m_nFilterCountWsi; rhs.m_strRecipeName = m_strRecipeName; rhs.m_bTopReview = m_bTopReview; } BOOL CRsRcpReviewInfo::GetAutoLight() const { return m_bAutoLight; } BOOL CRsRcpReviewInfo::GetWsiAutoLight() const { return m_bAutoLightWsi; } int CRsRcpReviewInfo::GetGlassTypeIdx() const { return m_nGlassTypeIdx; } int CRsRcpReviewInfo::GetRcpPlanInfoCount() const { return (int)m_vecRcpPlanInfo.size(); } int CRsRcpReviewInfo::GetRcpPriorityInfoCount() const { return (int)m_vecRcpPriorityInfo.size(); } int CRsRcpReviewInfo::GetRcpWsiPriorityInfoCount() const { return (int)m_vecRcpWSIPriorityInfo.size(); } int CRsRcpReviewInfo::GetRcpLightInfoCount() const { return (int)m_vecRcpLightInfo.size(); } int CRsRcpReviewInfo::GetRcpAFMRecipeInfoCount() const { return (int)m_vecRcpAFMRecipeInfo.size(); } int CRsRcpReviewInfo::GetRcpWsiLightInfoCount() const { return (int)m_vecRcpLightInfoWsi.size(); } int CRsRcpReviewInfo::GetRcpWsiAFMRecipeInfoCount() const { return (int)m_vecRcpAFMRecipeInfoWsi.size(); } int CRsRcpReviewInfo::GetRcpUserLightInfoCount() const { return (int)m_vecRcpLightInfoUser.size(); } int CRsRcpReviewInfo::GetRcpUserAFMRecipeInfoCount() const { return (int)m_vecRcpAFMRecipeInfoUser.size(); } int CRsRcpReviewInfo::GetRcpReflowParameterCount() const { return (int)m_vecRcpReflowParameter.size(); } int CRsRcpReviewInfo::GetRcpUserDefectInfoCount() const { return (int)m_vecRcpUserDefectInfo.size(); } int CRsRcpReviewInfo::GetRcpReviewFilterInfoCount() const { return (int)m_vecRcpReviewFilterInfo.size(); } int CRsRcpReviewInfo::GetRcpJudgeCellDefectCount() const { return int(m_vecRcpJudgeCellDefect.size()); } int CRsRcpReviewInfo::GetRcpJudgeGlassDefectCount() const { return int(m_vecRcpJudgeGlassDefect.size()); } int CRsRcpReviewInfo::GetRcpJudgeGlassCellCount() const { return int(m_vecRcpJudgeGlassCell.size()); } int CRsRcpReviewInfo::GetRcpZoneFilterInfoCount_PR() { return (int)m_vecRcpZoneFilteringInfo_PR.size(); } int CRsRcpReviewInfo::GetRcpZoneFilterInfoCount_CODE() { return (int)m_vecRcpZoneFilteringInfo_CODE.size(); } int CRsRcpReviewInfo::GetRcpWSIFilterInfoCount() const { return (int)m_vecRcpWSIFilterInfo.size(); } int CRsRcpReviewInfo::GetRcpZoneFilterInfoCount() { return (int)m_vecRcpZoneFilteringInfo_TR.size(); } CRcpPlanInfo* CRsRcpReviewInfo::GetRcpPlanInfo(int nIndex) { if (nIndex<0 || nIndex>=(int)m_vecRcpPlanInfo.size()) return NULL; return &(m_vecRcpPlanInfo[nIndex]); } CRcpPriorityInfo* CRsRcpReviewInfo::GetRcpPriorityInfo(int nIndex) { if (nIndex<0 || nIndex>=(int)m_vecRcpPriorityInfo.size()) return NULL; return &(m_vecRcpPriorityInfo[nIndex]); } CRcpPriorityInfo* CRsRcpReviewInfo::GetRcpWsiPriorityInfo(int nIndex) { if (nIndex<0 || nIndex>=(int)m_vecRcpWSIPriorityInfo.size()) return NULL; return &(m_vecRcpWSIPriorityInfo[nIndex]); } CRcpLightInfo* CRsRcpReviewInfo::GetRcpLightInfo(int nIndex) { if (nIndex<0 || nIndex>=(int)m_vecRcpLightInfo.size()) return NULL; return &(m_vecRcpLightInfo[nIndex]); } CRcpAFMRecipeInfo* CRsRcpReviewInfo::GetRcpAFMRecipeInfo(int nIndex) { if (nIndex<0 || nIndex>=(int)m_vecRcpAFMRecipeInfo.size()) return NULL; return &(m_vecRcpAFMRecipeInfo[nIndex]); } CRcpLightInfo* CRsRcpReviewInfo::GetRcpWsiLightInfo(int nIndex) { if (nIndex<0 || nIndex>=(int)m_vecRcpLightInfoWsi.size()) return NULL; return &(m_vecRcpLightInfoWsi[nIndex]); } CRcpAFMRecipeInfo* CRsRcpReviewInfo::GetRcpWsiAFMRecipeInfo(int nIndex) { if (nIndex<0 || nIndex>=(int)m_vecRcpAFMRecipeInfoWsi.size()) return NULL; return &(m_vecRcpAFMRecipeInfoWsi[nIndex]); } CRcpLightInfo* CRsRcpReviewInfo::GetRcpUserLightInfo(int nIndex) { if (nIndex<0 || nIndex>=(int)m_vecRcpLightInfoUser.size()) return NULL; return &(m_vecRcpLightInfoUser[nIndex]); } const CRcpLightInfo* CRsRcpReviewInfo::GetRcpUserLightInfo(int nIndex) const { if (nIndex<0 || nIndex>=(int)m_vecRcpLightInfoUser.size()) return NULL; return &(m_vecRcpLightInfoUser[nIndex]); } CRcpAFMRecipeInfo* CRsRcpReviewInfo::GetRcpUserAFMRecipeInfo(int nIndex) { if (nIndex<0 || nIndex>=(int)m_vecRcpAFMRecipeInfoUser.size()) return NULL; return &(m_vecRcpAFMRecipeInfoUser[nIndex]); } CRcpReflowParameter* CRsRcpReviewInfo::GetRcpReflowParameter(int nIndex) { if (nIndex<0 || nIndex>=(int)m_vecRcpReflowParameter.size()) return NULL; return &(m_vecRcpReflowParameter[nIndex]); } CRcpUserDefectInfo* CRsRcpReviewInfo::GetRcpUserDefectInfo(int nIndex) { if (nIndex<0 || nIndex>=(int)m_vecRcpUserDefectInfo.size()) return NULL; return &(m_vecRcpUserDefectInfo[nIndex]); } CRcpFilteringInfo* CRsRcpReviewInfo::GetRcpReviewFilterInfo(int nIndex) { if (nIndex<0 || nIndex>=(int)m_vecRcpReviewFilterInfo.size()) return NULL; return &(m_vecRcpReviewFilterInfo[nIndex]); } CRcpFilteringInfo* CRsRcpReviewInfo::GetRcpWSIFilterInfo(int nIndex) { if (nIndex<0 || nIndex>=(int)m_vecRcpWSIFilterInfo.size()) return NULL; return &(m_vecRcpWSIFilterInfo[nIndex]); } CRcpZoneFilteringInfo* CRsRcpReviewInfo::GetRcpZoneFilteringInfo(int nIndex) { if (nIndex < 0 || nIndex >= (int)m_vecRcpZoneFilteringInfo_TR.size()) return NULL; return &(m_vecRcpZoneFilteringInfo_TR[nIndex]); } CRcpZoneFilteringInfo* CRsRcpReviewInfo::GetRcpZoneFilteringInfo_PR(int nIndex) { if (nIndex < 0 || nIndex >= (int)m_vecRcpZoneFilteringInfo_PR.size()) return NULL; return &(m_vecRcpZoneFilteringInfo_PR[nIndex]); } CRcpZoneFilteringInfo* CRsRcpReviewInfo::GetRcpZoneFilteringInfo_CODE(int nIndex) { if (nIndex < 0 || nIndex >= (int)m_vecRcpZoneFilteringInfo_CODE.size()) return NULL; return &(m_vecRcpZoneFilteringInfo_CODE[nIndex]); } CRcpZoneInfo* CRsRcpReviewInfo::GetRcpZoneInfo(int nIndex) { if (nIndex < 0 || nIndex >= (int)m_vecRcpZoneInfo.size()) return NULL; return &(m_vecRcpZoneInfo[nIndex]); } CRcpJudgeInfo* CRsRcpReviewInfo::GetRcpJudgeCellDefectInfo(int nIndex) { if (nIndex < 0 || nIndex >= (int)m_vecRcpJudgeCellDefect.size()) return NULL; return &(m_vecRcpJudgeCellDefect[nIndex]); } CRcpJudgeInfo* CRsRcpReviewInfo::GetRcpJudgeGlassDefectInfo(int nIndex) { if (nIndex < 0 || nIndex >= (int)m_vecRcpJudgeGlassDefect.size()) return NULL; return &(m_vecRcpJudgeGlassDefect[nIndex]); } CRcpJudgeInfo* CRsRcpReviewInfo::GetRcpJudgeGlassCellInfo(int nIndex) { if (nIndex < 0 || nIndex >= (int)m_vecRcpJudgeGlassCell.size()) return NULL; return &(m_vecRcpJudgeGlassCell[nIndex]); } int CRsRcpReviewInfo::GetRcpZoneInfoCount() { return int(m_vecRcpZoneInfo.size()); } CRcpSchedulingInfo* CRsRcpReviewInfo::GetRcpSchedulingInfo() { return &m_RcpSchedulingInfo; } CRcpSortingInfo* CRsRcpReviewInfo::GetRcpReviewSortInfo() { return &m_RcpReviewSortInfo; } CRcpSortingInfo* CRsRcpReviewInfo::GetRcpWSISortInfo() { return &m_RcpWSISortInfo; } const CRcpFilteringInfo* CRsRcpReviewInfo::GetRcpReviewFilterInfo(int nIndex) const { if (nIndex<0 || nIndex>=(int)m_vecRcpReviewFilterInfo.size()) return NULL; return &(m_vecRcpReviewFilterInfo[nIndex]); } const CRcpFilteringInfo* CRsRcpReviewInfo::GetRcpWSIFilterInfo(int nIndex) const { if (nIndex<0 || nIndex>=(int)m_vecRcpWSIFilterInfo.size()) return NULL; return &(m_vecRcpWSIFilterInfo[nIndex]); } const CRcpSchedulingInfo* CRsRcpReviewInfo::GetRcpSchedulingInfo() const { return &m_RcpSchedulingInfo; } const CRcpSortingInfo* CRsRcpReviewInfo::GetRcpReviewSortInfo() const { return &m_RcpReviewSortInfo; } const CRcpSortingInfo* CRsRcpReviewInfo::GetRcpWSISortInfo() const { return &m_RcpWSISortInfo; } const CRcpPlanInfo* CRsRcpReviewInfo::GetRcpPlanInfo(int nIndex) const { if (nIndex<0 || nIndex>=(int)m_vecRcpPlanInfo.size()) return NULL; return &(m_vecRcpPlanInfo[nIndex]); } const CRcpPriorityInfo* CRsRcpReviewInfo::GetRcpPriorityInfo(int nIndex) const { if (nIndex<0 || nIndex>=(int)m_vecRcpPriorityInfo.size()) return NULL; return &(m_vecRcpPriorityInfo[nIndex]);; } const CRcpPriorityInfo* CRsRcpReviewInfo::GetRcpWsiPriorityInfo(int nIndex) const { if (nIndex<0 || nIndex>=(int)m_vecRcpWSIPriorityInfo.size()) return NULL; return &(m_vecRcpWSIPriorityInfo[nIndex]);; } const CRcpLightInfo* CRsRcpReviewInfo::GetRcpLightInfo(int nIndex) const { if (nIndex<0 || nIndex>=(int)m_vecRcpLightInfo.size()) return NULL; return &(m_vecRcpLightInfo[nIndex]); } const CRcpAFMRecipeInfo* CRsRcpReviewInfo::GetRcpAFMRecipeInfo(int nIndex) const { if (nIndex<0 || nIndex>=(int)m_vecRcpAFMRecipeInfo.size()) return NULL; return &(m_vecRcpAFMRecipeInfo[nIndex]); } const CRcpLightInfo* CRsRcpReviewInfo::GetRcpWsiLightInfo(int nIndex) const { if (nIndex<0 || nIndex>=(int)m_vecRcpLightInfoWsi.size()) return NULL; return &(m_vecRcpLightInfoWsi[nIndex]); } const CRcpAFMRecipeInfo* CRsRcpReviewInfo::GetRcpWsiAFMRecipeInfo(int nIndex) const { if (nIndex<0 || nIndex>=(int)m_vecRcpAFMRecipeInfoWsi.size()) return NULL; return &(m_vecRcpAFMRecipeInfoWsi[nIndex]); } const CRcpReflowParameter* CRsRcpReviewInfo::GetRcpReflowParameter(int nIndex) const { if (nIndex<0 || nIndex>=(int)m_vecRcpReflowParameter.size()) return NULL; return &(m_vecRcpReflowParameter[nIndex]); } const CRcpUserDefectInfo* CRsRcpReviewInfo::GetRcpUserDefectInfo(int nIndex) const { if (nIndex<0 || nIndex>=(int)m_vecRcpUserDefectInfo.size()) return NULL; return &(m_vecRcpUserDefectInfo[nIndex]); } const CRcpJudgeInfo* CRsRcpReviewInfo::GetRcpJudgeCellDefectInfo(int nIndex) const { if (nIndex < 0 || nIndex >= (int)m_vecRcpJudgeCellDefect.size()) return NULL; return &(m_vecRcpJudgeCellDefect[nIndex]); } const CRcpJudgeInfo* CRsRcpReviewInfo::GetRcpJudgeGlassDefectInfo(int nIndex) const { if (nIndex < 0 || nIndex >= (int)m_vecRcpJudgeGlassDefect.size()) return NULL; return &(m_vecRcpJudgeGlassDefect[nIndex]); } const CRcpJudgeInfo* CRsRcpReviewInfo::GetRcpJudgeGlassCellInfo(int nIndex) const { if (nIndex < 0 || nIndex >= (int)m_vecRcpJudgeGlassCell.size()) return NULL; return &(m_vecRcpJudgeGlassCell[nIndex]); } void CRsRcpReviewInfo::SetRcpPlanInfoCount(int nCount) { m_vecRcpPlanInfo.resize(nCount); } void CRsRcpReviewInfo::SetRcpPriorityInfoCount(int nCount) { m_vecRcpPriorityInfo.resize(nCount); } void CRsRcpReviewInfo::SetRcpWsiPriorityInfoCount(int nCount) { m_vecRcpWSIPriorityInfo.resize(nCount); } void CRsRcpReviewInfo::SetRcpLightInfoCount(int nCount) { m_vecRcpLightInfo.resize(nCount); } void CRsRcpReviewInfo::SetRcpAFMRecipeInfoCount(int nCount) { m_vecRcpAFMRecipeInfo.resize(nCount); } void CRsRcpReviewInfo::SetRcpWsiLightInfoCount(int nCount) { m_vecRcpLightInfoWsi.resize(nCount); } void CRsRcpReviewInfo::SetRcpWsiAFMRecipeInfoCount(int nCount) { m_vecRcpAFMRecipeInfoWsi.resize(nCount); } void CRsRcpReviewInfo::SetRcpUserLightInfoCount(int nCount) { m_vecRcpLightInfoUser.resize(nCount); } void CRsRcpReviewInfo::SetRcpUserAFMRecipeInfoCount(int nCount) { m_vecRcpAFMRecipeInfoUser.resize(nCount); } void CRsRcpReviewInfo::SetRcpZoneFilterInfoCount(int nCount) { m_vecRcpZoneFilteringInfo_TR.resize(nCount); } void CRsRcpReviewInfo::SetRcpZoneFilterInfoCount_PR(int nCount) { m_vecRcpZoneFilteringInfo_PR.resize(nCount); } void CRsRcpReviewInfo::SetRcpZoneFilterInfoCount_CODE(int nCount) { m_vecRcpZoneFilteringInfo_CODE.resize(nCount); } void CRsRcpReviewInfo::SetRcpReflowParameterCount(int nCount) { m_vecRcpReflowParameter.resize(nCount); } void CRsRcpReviewInfo::SetRcpUserDefectInfoCount(int nCount) { m_vecRcpUserDefectInfo.resize(nCount); } void CRsRcpReviewInfo::SetRcpReviewFilterInfoCount(int nCount) { //m_vecRcpReviewFilterInfo.resize(nCount); m_vecRcpReviewFilterInfo.clear(); for (int i=0; i