#ifndef MARK_AREA_H
#define MARK_AREA_H
struct _Mark_Area
{
    //第0条线用于 校正相机的焦距
    //第1至29条用于校正

    int iCellIndex;
    CMPointd ptLeftTop;
    int iSize;
    int iReservedIndex;	//用于其他作用的index
    int iLineIndex;
    int iStartIndex;	//哪条起可以用
    double dWidth;
    double dHeight;
    double dStep;
    double dFocusOffset;
    bool bEnable;
    bool bFocused;
    bool bFoucsedCuted;

    _Mark_Area()
    {
        iCellIndex = 0;
        bEnable = true;
        ptLeftTop = CMPointd(665, 36);
        dWidth = 0;
        dHeight = 0;
        iSize = 0;
        bFocused = false; //已经校正过了
        bFoucsedCuted = false; //已经划过线了
        dFocusOffset = 0;
        iLineIndex = 0;
        iStartIndex = 0;
        dStep = 0.2;
        iReservedIndex = 0;
    }

    std::string toString()
    {
        std::stringstream out;
        out << iCellIndex << "," << ptLeftTop.tX << "," << ptLeftTop.tY << "," << iSize << "," << iReservedIndex << "," << iLineIndex << ","
            << iStartIndex << "," << dWidth << "," << dHeight << "," << dStep << "," << dFocusOffset << "," << bEnable << "," << bFocused << "," << bFoucsedCuted << "\n";
        return out.str();
    }
    std::string tittle()
    {
        std::stringstream out;
        out << "CellIndex,X,Y,Size,ReservedIndex,LineIndex,StartIndex,Width,Height,Step,FocusOffset,Enable,Focused,FocusedCuted" << "\n";
        return out.str();
    }
};
#endif