#ifndef CUT_DOT_PROCESS_H
|
#define CUT_DOT_PROCESS_H
|
|
#include "IncludeVision.h"
|
|
class CCutDotProcess
|
{
|
public:
|
CCutDotProcess();
|
CCutDotProcess(DimensionDir eDir, int id);
|
~CCutDotProcess();
|
|
public:
|
//1. Ö´ÐÐ
|
int Execute(DimensionDir eDir, Point2I offset);
|
|
//2. »ñÈ¡ID
|
int getID(void);
|
void setPoint(Point2I pose, int nType);
|
|
//3. ±£´æÎļþ
|
Json::Value WriteToJson(void);
|
void DecodeJson(Json::Value &jsValue);
|
|
public:
|
int m_nUse;
|
CString m_strName;
|
int m_nPosY;
|
int m_nPosX;
|
int m_poseType;
|
int m_nEdgeThres;
|
|
int m_nInc;
|
int m_nMin;
|
int m_nMax;
|
|
Point2D m_ptMeasureResult;
|
Point2D m_ptNearResult;
|
Point2I m_locPointResult;
|
double m_distResult;
|
|
std::vector<NgDotInfo> m_nNgInfo;
|
|
private:
|
DimensionDir m_eDir;
|
int m_id;
|
|
double m_xMmvsp;
|
double m_yMmvsp;
|
Point2I m_Points[2];
|
|
private:
|
//1. »ñÈ¡·Ö±æÂÊ
|
void getMmvsp(DimensionDir eDir);
|
|
//1. ÅжϽá¹û
|
void judgeResult(void);
|
|
//2. ²éÕұ߽ç
|
bool FindLeftLine(DimensionDir eDir, Point2I offset);
|
};
|
|
#endif
|