|
// ReviewSystemView.h : CReviewSystemView 클래스의 인터페이스
|
//
|
|
|
#pragma once
|
|
#include "DlgReviewCamera.h"
|
#include "DlgAlignCamera.h"
|
#include "DlgDefectMap.h"
|
#include "DlgDefectFilter.h"
|
#include "DlgGraph.h"
|
#include "DlgDefectList.h"
|
#include "DlgDefectInfo.h" //taek 20.12.04
|
#include "DlgLog.h"
|
#include "DlgLongRun.h"
|
#include "DlgCommand.h"
|
#include "DlgTab.h"
|
#include "DlgTapCtrl.h"
|
#include "DlgUserCmd.h"
|
|
#include "DlgAFMInfo.h"
|
#include "DlgAFMInfo_Non_VisionAlign.h"
|
#include "DlgGlassAndConnectionInfo.h"
|
#include "DlgModuleInfo.h"
|
#include "DlgControl.h"
|
#include "DlgLogo.h"
|
#include "DlgResultGraph.h"
|
#include "DlgDefocusList.h"
|
|
#include "DlgSelfDiagnosis.h"
|
#include "DlgReviewPopUp.h"
|
#include "DlgReviewOffSetTool.h"
|
#include "DlgReviewHistoryTool.h"
|
#include "DlgHardwareSettingMode.h"
|
#include "DlgMotorOffSetTool.h" //< KEJ 20230621 - #4528 ADD >
|
|
class CSys_SystemManager;
|
class CSys_GlassTypeManager;
|
class CSys_AlignManager;
|
class CSys_SignalManager;
|
class CSys_MotorManager;
|
class CSys_NetworkManager;
|
|
class CMotorAxisAddr;
|
class CMotorGantryAddr;
|
class CMotorInfo;
|
class CNetworkInfo;
|
class CSignalInfo;
|
class CSystemInfo;
|
class CGantryInfo;
|
class CHeaderInfo;
|
class CCameraControlInfo_Plus;
|
class CLightControlInfo;
|
class CRevolverInfo;
|
class CAFMInfo;
|
class CDlgResultGraph;
|
class CDlgDefocusList;
|
|
class CReviewSystemView : public CFormView
|
{
|
protected: // serialization에서만 만들어집니다.
|
CReviewSystemView();
|
DECLARE_DYNCREATE(CReviewSystemView)
|
|
public:
|
enum{ IDD = IDD_REVIEWSYSTEM_FORM };
|
|
// 특성입니다.
|
public:
|
CReviewSystemDoc* GetDocument() const;
|
|
// 작업입니다.
|
public:
|
void CreateDialogs(int nLineType, int nMachineType, BOOL bUseVisionAlign=TRUE);
|
void DeleteDialogs();
|
void CreateLongRunDialog();
|
void SetAcitveDialog(int nIndex);
|
|
|
void SetDefaultGlassType(const CGlassResult* pGlassResult);
|
void SetAlignResult(int nResultCode, double dDX, double dDy, double dTheta);
|
|
void UpdateSelectDefectInfoMap(CDefectResult* pDefectResult);
|
void UpdateSelectDefectInfo(int nDefectIdx);
|
void UpdateDefectList(CGlassResult* pGlassResult);
|
void UpdateSelectDefectList(int nDefectIdx);
|
void UpdateSelectDefectMap(CDefectResult* pDefectResult);
|
BOOL UpdateSelectDefectList2(int nDefectIdx);
|
BOOL UpdateSelectDefectList3(int nDefectIdx);
|
BOOL AllDefect();
|
CString UpdateSelectImageName();
|
void UpdateSelectDefectMap2(CDefectResult* pDefectResult);
|
void UpdateLongRunCount(CString strLongRunCount);
|
void UpdateMeasureGraph(CGlassResult* pGlassResult);
|
void UpdateAlignResult(const CGlassResult* pGlassResult);
|
void ShowReviewPopUP();
|
void HideHistoryTool();
|
void ShowBHistoryTool();
|
void HistoryToolUpdate();
|
void SelectedCameraIndex(int nMouleindex);
|
|
void ShowOffSetTool();
|
void ShowHistoryTool();
|
/*< LYW 20211112 - #3708 ADD Start >*/
|
void ShowHWSettingMode();
|
/*< LYW 20211112 - #3708 ADD End >*/
|
void ShowMotorOffSetTool(); //< KEJ 20230621 - #4528 ADD >
|
DlgReviewOffSetTool* GetReviewOffSetToolHandle() { return m_DlgOffSetTool; }
|
|
CDlgReviewHistoryTool* GetReviewHistoryToolHandle() { return m_DlgHistoryTool; }
|
CDlgMotorOffSetTool* GetMotorOffSetToolHandle() { return m_DlgMotorOffSetTool; } //< KEJ 20230621 - #4528 ADD >
|
|
BOOL SaveDefectMap(const CString& strPath);
|
|
CWnd* GetGraphDlgHandle() { return m_pDlgGraph; }
|
CWnd* GetDefectFilterDlgHandle() { return m_pDlgDefectFilter; }
|
|
CDlgDefectMap* GetDefectMapDlgHandle() { return m_pDlgDefectMap; }
|
void DisplayMessage(const CString& strMessage);
|
|
// 재정의입니다.
|
public:
|
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
|
protected:
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 지원입니다.
|
virtual void OnInitialUpdate(); // 생성 후 처음 호출되었습니다.
|
|
// 구현입니다.
|
public:
|
virtual ~CReviewSystemView();
|
#ifdef _DEBUG
|
virtual void AssertValid() const;
|
virtual void Dump(CDumpContext& dc) const;
|
#endif
|
|
protected:
|
VectorDlgReviewCamera m_vecDlgReviewCamera;
|
VectorDlgReviewCamera2 m_vecDlgReviewPopUp;
|
|
CDlgReviewCamera* m_pDlgReviewCamera;
|
CDlgAlignCamera* m_pDlgAlignCamera;
|
CDlgDefectMap* m_pDlgDefectMap;
|
CDlgGraph* m_pDlgGraph;
|
CDlgDefectFilter* m_pDlgDefectFilter;
|
CDlgTab* m_pDlgTab;
|
DlgTapCtrl* m_pDlgTapCtrl;
|
CDlgDefectList* m_pDlgDefectList;
|
CDlgLog* m_pDlgLog;
|
CDlgLongRun* m_pDlgLongRun;
|
CDlgResultGraph* m_pDlgResultGraph_Dx;
|
CDlgResultGraph* m_pDlgResultGraph_Dy;
|
|
CDlgDefectInfo* m_pDlgDefectInfo; //taek 20.12.04
|
|
CDlgLogo* m_pDlgLogo;
|
|
CDlgAFMInfo* m_pDlgAFMInfo;
|
CDlgGlassAndConnectionInfo* m_pDlgGlassAndNetworkInfo;
|
CDlgModuleInfo * m_pDlgModuleInfo;
|
CDlgControl* m_pDlgControl;
|
|
CDlgUserCmd* m_pDlgUserCmd; // not use align
|
CDlgCommand* m_pDlgCommand; // use align
|
|
CDlgDefocusList* m_pDlgDefocus;
|
DlgReviewPopUp* m_DlgReviewPopUp;
|
BOOL isReviewPopUp;
|
DlgReviewOffSetTool* m_DlgOffSetTool;
|
CDlgReviewHistoryTool* m_DlgHistoryTool;
|
CDlgMotorOffSetTool* m_DlgMotorOffSetTool; //< KEJ 20230621 - #4528 ADD >
|
/*< LYW 20211112 - #3708 ADD Start >*/
|
DlgHardwareSettingMode* m_DlgHardWareSettingMode;
|
/*< LYW 20211112 - #3708 ADD End >*/
|
|
// 생성된 메시지 맵 함수
|
protected:
|
afx_msg void OnFilePrintPreview();
|
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
|
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
|
DECLARE_MESSAGE_MAP()
|
public:
|
afx_msg void OnDestroy();
|
afx_msg LRESULT OnLongRunCountUpdate(WPARAM wParam, LPARAM lParam);
|
virtual BOOL DestroyWindow();
|
|
void UpdateSelectDefectHistoryMap(CDefectResult * pDefectResult);
|
|
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
|
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
|
};
|
|
#ifndef _DEBUG // ReviewSystemView.cpp의 디버그 버전
|
inline CReviewSystemDoc* CReviewSystemView::GetDocument() const
|
{ return reinterpret_cast<CReviewSystemDoc*>(m_pDocument); }
|
#endif
|