#ifndef   __CNCCLS_H_INCLUDED_
#define   __CNCCLS_H_INCLUDED_

 
#include <rvb/rvtypes.h>
#include <cali/areacal.h>


 
#ifdef CNCCLS_EXPORTS
#define CNCCLS_API __declspec(dllexport)
#else
#define CNCCLS_API __declspec(dllimport)
#endif
 
#define CO_ID_CUT_CNCOBJ    (RV_UC_CALI_CURVE_USER)
#define CO_ID_DRILL         (CO_ID_CUT_CNCOBJ + 1)
#define CO_ID_CUT_LINE      (CO_ID_CUT_CNCOBJ + 2)
#define CO_ID_CUT_ARC       (CO_ID_CUT_CNCOBJ + 3)
#define CO_ID_CUT_CIRCLE    (CO_ID_CUT_CNCOBJ + 4)
#define CO_ID_CUT_SHAPE_L   (CO_ID_CUT_CNCOBJ + 5)
#define CO_ID_CUT_SHAPE_U   (CO_ID_CUT_CNCOBJ + 6)
#define CO_ID_CUT_POLYLINE  (CO_ID_CUT_CNCOBJ + 7)

#define CO_ID_CHECK_POINT   (CO_ID_CUT_CNCOBJ + 20) 
 
#define CO_ID_MARK_LOCATER        (CO_ID_CUT_CNCOBJ + 40)  
#define CO_ID_SHAPE_LOCATER       (CO_ID_CUT_CNCOBJ + 41) 
#define CO_ID_BLOB_LOCATER        (CO_ID_CUT_CNCOBJ + 42)  
#define CO_ID_TEMPLATE_LOCATER    (CO_ID_CUT_CNCOBJ + 43)  





//#define  PI   3.1415926535897932384626433832795
#define  MIN_LINE_WIDTH    1
#define  MAX_LINE_WIDTH    5

#define TRAY_SIGHT_FOCUS_COLOR    GRGB(0,255,0)
#define TRAY_SIGHT_NORMAL_COLOR   GRGB(0,0,255)
#define TRAY_SIGHT_UC_NORMAL_WIDTH     2
#define TRAY_SIGHT_UC_FOCUS_WIDTH      3

#define TRAY_SIGHT_EXCLUDE_COLOR   GRGB(255,255,0)


RvRect_f64 GetArcRect(RvPoint_f64 center, RvPoint_f64 startPos, RvPoint_f64 endPos, double radius);







#endif
