SDC C-Project CF Review 프로그램
LYW
2021-10-14 e8ba1e78e72f3f7ec2841f55fd90253b4dc414df
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
#pragma once
 
#include "CHImageControls/CHRectTracker.h"
#include "CameraImageView.h"
// CCameraViewAlign
 
class CCameraViewAlign : public CCameraImageView
{
    DECLARE_DYNAMIC(CCameraViewAlign)
 
public:
    CCameraViewAlign(CWnd *pParentWnd);
    void    SetTrackerRect(const CRect& rtRect);
    BOOL    GetTrackerRect(CRect& rtRect);
    void    ClearTrackerRect();
    void    LoadAlignImage(CString strAlignFileName);
 
    virtual ~CCameraViewAlign();
 
protected:
    BOOL            m_bDrawROIRect;
    CRect            m_rtROIRect;
 
    // tracker
    BOOL            m_bDrawTracker;
    CPoint            m_ptTrackerStart;
    CCHRectTracker    m_rectTracker;
 
    void            DrawROIRect(CDC *pDC);
 
protected:
    DECLARE_MESSAGE_MAP()
public:
    afx_msg void OnPaint();
    afx_msg void OnClearROIRect();
    afx_msg void OnSaveROIRect();
    
    afx_msg void OnROIRect();
    afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
    afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
    afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
    afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
};