libDXF 0.0.1
A library with DXF related functions written in C.
|
00001 00035 #ifndef LIBDXF_SRC_XLINE_H 00036 #define LIBDXF_SRC_XLINE_H 00037 00038 00039 #include "global.h" 00040 00041 00042 #ifdef __cplusplus 00043 extern "C" { 00044 #endif 00045 00046 00056 typedef struct 00057 dxf_xline 00058 { 00059 /* Members common for all DXF drawable entities. */ 00060 int id_code; 00065 char *linetype; 00069 char *layer; 00073 double elevation; 00079 double thickness; 00083 double linetype_scale; 00086 int16_t visibility; 00089 int color; 00096 int paperspace; 00101 char *dictionary_owner_soft; 00104 char *dictionary_owner_hard; 00107 /* Specific members for a DXF line. */ 00108 double x0; 00111 double y0; 00114 double z0; 00117 double x1; 00120 double y1; 00123 double z1; 00126 struct DxfXLine *next; 00129 } DxfXLine; 00130 00131 00132 DxfXLine *dxf_xline_new (); 00133 DxfXLine *dxf_xline_init (DxfXLine *xline); 00134 DxfXLine *dxf_xline_read (DxfFile *fp, DxfXLine *xline); 00135 int dxf_xline_write (DxfFile *fp, DxfXLine *xline); 00136 int dxf_xline_free (DxfXLine *xline); 00137 void dxf_xline_free_chain (DxfXLine *xlines); 00138 00139 00140 #ifdef __cplusplus 00141 } 00142 #endif 00143 00144 00145 #endif /* LIBDXF_SRC_XLINE_H */ 00146 00147 00148 /* EOF */