
#pragma once





//#undef WINAPI
//总是报WINAPI无法通过
//#include <rvb\rvtypes.h"


#ifdef CAD2D_EXPORTS
#define CAD2D_API __declspec(dllexport)
#else
#define CAD2D_API __declspec(dllimport)
#endif




 
typedef struct __cad_coor_{
    double x, y;
}CAD_COOR;
  

typedef struct __cad_entity_{
	int type;
}CAD_ENTITY;


typedef struct __cad_point_{
	int type;
    double x, y;
}CAD_POINT;
  
typedef struct __cad_arc_{
	int type;
    double cx, cy;
    double radius;
    double startAngle;//起始角度，单位:度
	double endAngle;  //结束角度，单位:度
	bool   bCcw;       //逆弧
}CAD_ARC;
  
typedef struct __cad_line_{
	int type;
    CAD_COOR p0, p1;
}CAD_LINE;

typedef struct __cad_circle_{
   int type;
   double cx, cy;
   double radius;
}CAD_CIRCLE;

typedef struct __cad_polyline_{
   int type;
   int  count;
   CAD_COOR* pArr;
}CAD_POLYLINE;

//// 此类是从 cad2d.dll 导出的
//class CAD2D_API Ccad2d {
//public:
//	Ccad2d(void);
//	// TODO: 在此添加您的方法。
//};
//
//extern CAD2D_API int ncad2d;
//
//CAD2D_API int fncad2d(void);
