#ifndef EI_VISION_TYPE #define EI_VISION_TYPE enum VISION_RECIPE_TYPE { LOC_VISION_TYPE = 0, LOC_VISION_PROCESS, GRIND_VISION_TYPE, GRIND_VISION_PROCESS, CUT_VISION_TYPE, CUT_VISION_PROCESS, KDIST_VISION_TYPE, KDIST_VISION_PROCESS, RCUT_VISION_TYPE, RCUT_VISION_PROCESS, THRES_VISION_TYPE, THRES_VISION_PROCESS, HOLE_VISION_TYPE, HOLE_VISION_PROCESS }; enum VISION_TYPE { VISION_LOC = 0, //DISTËã·¨ VISION_CUT, //CUT¾àÀë VISION_GRIND, VISION_KDIST, VISION_RCUT, //RCUTËã·¨ VISION_THRES, VISION_HOLE, VISION_NONE }; #define NG_INF_NUM 1000 enum DefectNgLoc { DefectLoc_OK = 0, //OK DefectLoc_Chip, //Chip DefectLoc_Broken, //ÆÆËð DefectLoc_Grind, //ÑÐÄ¥ DefectLoc_Dist_Cut, //Çи¶È DefectLoc_Corner_Dist, //½Ç¾«¶È DefectLoc_HOLE, //Hole DefectLoc_Unknown //Ö¸´íÎó }; static UINT _gGridFixCellColor = RGB(144, 200, 246); static UINT _gGridFixFontColor = RGB(0, 0, 0); static UINT _gGridCellColor = RGB(255, 255, 255); static UINT _gGridCellColor_NonSelect = RGB(150, 150, 150); static UINT _gGridCellReadyColor = RGB(255, 255, 0); static UINT _gGridCellOnColor = RGB(255, 69, 0); static UINT _gGridCellOffColor = RGB(128, 191, 255); static UINT _gPropertyGridFixCellColor = RGB(150, 150, 150); static UINT _gPropertyGridFixFontColor = RGB(0, 0, 0); static UINT _gSequenceOffColor = RGB(0, 0, 0); static UINT _gSequenceOnColor = RGB(0, 180, 0); typedef struct _NgDotInfo { int eDir; //¼ì²âÃæ int id; //¼ì²âID CString strName; //Ãû³Æ int xPosPxl; //XλÖà int yPosPxl; //YλÖà double result; //½á¹û double xResult; //X½á¹û double yResult; //Y½á¹û double minValue; //ÏÂÏÞ double maxValue; //ÏÞÖÆ bool isRes; //¼ì²â½á¹û int x1; //ȱÏݵÄ×îС¾ØÐÎ int y1; //ȱÏݵÄ×îС¾ØÐÎ int x2; //ȱÏݵÄ×îС¾ØÐÎ int y2; //ȱÏݵÄ×îС¾ØÐÎ int ngType; //ȱÏÝÀàÐÍ int eVision; //ÊÓ¾õËã·¨ }NgDotInfo; typedef struct _MeasureInfo { int idxRefer; int typePoint; int modePoint; int pointThres; int modeNear; int nearThres; }MeasureInfo; typedef struct _ScanSetting { int lengthSize; int shortSize; int nStdIndex; int nIndex0; int nIndex1; int nIndex2; int nIndex3; int nLengthScan; int nShortScan; }ScanSetting; typedef struct _VisionDisplayInfo { bool isVisionDisplay; bool isGrindDisplay; bool isDistDisplay; bool isCutDisplay; bool isRcutDisplay; bool isThresDisplay; bool isHoleDisplay; }VisionDisplayInfo; typedef struct _VisionUseInfo { bool isVisionUse; //ÊÓ¾õ bool isLocUse; //¶¨Î» bool isDistUse; //¾àÀë bool isCutUse; //ÇиîÏß bool isGrindUse; //ÑÐÄ¥Á¿ bool isRcutUse; //RCUT bool isThresUse; //Thres bool isHoleUse; //Hole }VisionUseInfo; typedef struct _DistIncInfo { int incGrind; int incTop; int incBot; int incKey; int incCut; }DistIncInfo; typedef struct _DispResultObject { HalconCpp::HObject hDispRegion; HalconCpp::HObject hDispObject; }DispResultObject; typedef struct _KeyDebugInfo { bool isDebugTool; bool isInspectKey; bool isLocKey; bool isGrindKey; bool isCutLineKey; bool isDistKey; bool isRcutKey; }KeyDebugInfo; #endif