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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#include "stdafx.h"
#include "BlSideData.h"
 
CBlSideData::CBlSideData()
{
    m_dPixelSizeX = 0.0f;
    m_dPixelSizeY = 0.0f;
    m_bBotMark_Find = FALSE;
    m_bTopMark_Find = FALSE;
    m_mTopMark.x = 0;
    m_mTopMark.y = 0;
    m_mBotMark.x = 0;
    m_mBotMark.y = 0;
 
    m_bTopPoint_Find = FALSE;
    m_mTopPoint.x = 0;
    m_mTopPoint.y = 0;
    m_bBotPoint_Find = FALSE;
    m_mBotPoint.x = 0;
    m_mBotPoint.y = 0;
 
    m_mapSideLineInf.clear();
    m_vDispVisionResult.clear();
}
 
CBlSideData::~CBlSideData()
{
    m_mapSideLineInf.clear();
    m_vDispVisionResult.clear();
}
 
void CBlSideData::Reset(void) {
    /* code */
    m_bInspection_Complete = FALSE;
    m_bBotMark_Find = FALSE;
    m_bTopMark_Find = FALSE;
    m_mTopMark.x = 0;
    m_mTopMark.y = 0;
    m_mBotMark.x = 0;
    m_mBotMark.y = 0;
}
 
Point2I CBlSideData::getPose(int nType) {
    /* code */
    Point2I result;
    result.x = 0;
    result.y = 0;
 
    if (0 == nType) {
        if (m_bTopMark_Find) {
            result = m_mTopMark;
        }
    }
    else if (1 == nType) {
        if (m_bBotMark_Find) {
            result = m_mBotMark;
        }
    }
    else if (2 == nType) {
        if (m_bTopPoint_Find) {
            result = m_mTopPoint;
        }
    }
    else if (3 == nType) {
        if (m_bBotPoint_Find) {
            result = m_mBotPoint;
        }
    }
 
    return result;
}