#pragma once // CDlgReviewCamera 대화 상자입니다. #include "CHCommonControls/GridCtrl.h" #include "ModuleStatus.h" #include "CameraImageView.h" #include "CameraViewReview.h" #include "CameraControlReview.h" #include "SharedImageData.h" #include "afxwin.h" interface IDialogReviewCamera2Parent { virtual void DRC2P_MoveMotorMouseDoubleClick(int nDiffPixelX, int nDiffPixelY) = 0; }; class CDlgReviewCamera : public CDialog { DECLARE_DYNAMIC(CDlgReviewCamera) public: CDlgReviewCamera(CWnd* pParent, int nIndex); // 표준 생성자입니다. virtual ~CDlgReviewCamera(); void Reset(); int GetModuleIndex() { return m_nModuleIndex; } void SetDRC2P(IDialogReviewCamera2Parent* pDRC2P) { m_pDRC2P = pDRC2P; } // void SetCIV2P(ICameraImageView2Parent* pCIV2P) { if (m_pCameraView) m_pCameraView->SetCIV2P(pCIV2P); } void SetCIV2P(ICameraImageView2Parent* pCIV2P) { m_pCIV2P = pCIV2P; } // 대화 상자 데이터입니다. enum { IDD = IDD_DLG_REVIEW_CAMERA }; protected: IDialogReviewCamera2Parent* m_pDRC2P; int m_nModuleIndex; CCameraViewReview* m_pCameraView; CSharedImageData m_SharedImageData; void UpdateCameraView(int nFrameIndex); // observer camera status virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 지원입니다. DECLARE_MESSAGE_MAP() public: virtual BOOL OnInitDialog(); virtual BOOL DestroyWindow(); void SetModuleIndex(int nModuleIndex) { m_nModuleIndex = nModuleIndex; } afx_msg void OnBnClickedOk(); afx_msg void OnBnClickedCancel(); afx_msg void OnNMReleasedcaptureSliderLightLevel(NMHDR *pNMHDR, LRESULT *pResult); afx_msg void OnBnClickedButtonPrevImage(); afx_msg void OnBnClickedButtonNextImage(); afx_msg void OnBnClickedButtonPrevBuffer(); afx_msg void OnBnClickedButtonNextBuffer(); afx_msg void OnTimer(UINT_PTR nIDEvent); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); afx_msg void OnRButtonDown(UINT nFlags, CPoint point); afx_msg void OnRButtonDblClk(UINT nFlags, CPoint point); protected: ICameraImageView2Parent* m_pCIV2P; }; typedef std::vector VectorDlgReviewCamera; typedef std::vector::iterator VectorDlgReviewCameraIt;