SDC C-Project CF Review 프로그램
LYW
2021-07-01 4acd943c6f0beecd3ee573f77d8d6c7524fd5045
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#pragma once
 
#include "CHImageControls/CHRectTracker.h"
#include "CHCameraViewer/CameraView.h"
// CCameraView_Align
 
class AFX_EXT_CLASS CCameraView_Align : public CCameraView
{
    DECLARE_DYNAMIC(CCameraView_Align)
 
public:
    CCameraView_Align(int nViewIndex=0, CWnd* pParentWnd=NULL);
    virtual ~CCameraView_Align();
 
    void    SetDrawRoiRect(BOOL bDraw);
    void    SetTrackerRect(const CRect& rtRect);
    BOOL    GetTrackerRect(CRect& rtRect);
    void    ClearTrackerRect();
 
    void    SetRoiRect(const CRect& rtRect);
    BOOL    GetRoiRect(CRect& rtRect);
 
protected:
    DECLARE_MESSAGE_MAP()
    afx_msg void OnPaint();
    afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
    afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
    afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
    afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
    afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
    afx_msg void OnRButtonDblClk(UINT nFlags, CPoint point);
    afx_msg void OnMouseMove(UINT nFlags, CPoint point);
 
    afx_msg void OnROIRect();
    afx_msg void OnClearROIRect();
    afx_msg void OnSaveROIRect();
    afx_msg void OnChangeView();
    
protected:
    void    DrawROIRect(CDC *pDC);
    virtual void PopUpCommandMenu(const CPoint& point);
 
 
protected:    
    BOOL            m_bDrawRoiRect;
    CRect            m_rtRoiRect;
 
    // tracker
    BOOL            m_bDrawTracker;
    CPoint            m_ptTrackerStart;
    CCHRectTracker    m_rectTracker;
 
public:
    afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
    virtual BOOL PreTranslateMessage(MSG* pMsg);
};