#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;
|
}
|