#ifndef LOC_PROCESS_H
|
#define LOC_PROCESS_H
|
|
#include "NccDotProcess.h"
|
|
class CLocProcess
|
{
|
public:
|
CLocProcess();
|
CLocProcess(DimensionDir eDir);
|
~CLocProcess();
|
|
public:
|
//1. ³õʼ»¯
|
void Init(void);
|
|
//2. »ñÈ¡Êý¾Ý
|
CNccDotProcess* getDot(int index);
|
|
//3. ÉèÖÃÊý¾Ý
|
void setPose(Point2I pose, int nType);
|
Point2I getPose(int nType);
|
|
//4. Ö´ÐÐ
|
int execute(DimensionDir eDir);
|
|
//5. дÈëÎļþ
|
Json::Value WriteToJson(std::string &strDir);
|
int DecodeJson(std::string &strDir, Json::Value &jsValue);
|
|
public:
|
DimensionDir m_eDir;
|
|
private:
|
Point2I m_topMark;
|
Point2I m_botMark;
|
|
private:
|
CNccDotProcess *m_dot[2];
|
|
private:
|
//1. ÊÍ·Å
|
void Release(void);
|
|
//2. »ñÈ¡Æ«ÒÆ
|
Point2I getOffset(Point2I pose);
|
|
//3. ÉèÖýá¹û
|
void SetResult(CNccDotProcess *dot);
|
|
};
|
|
#endif
|