libDXF 0.0.1
A library with DXF related functions written in C.
|
00001 00035 #ifndef LIBDXF_SRC_TOLERANCE_H 00036 #define LIBDXF_SRC_TOLERANCE_H 00037 00038 00039 #include "global.h" 00040 00041 00042 #ifdef __cplusplus 00043 extern "C" { 00044 #endif 00045 00046 00056 typedef struct 00057 dxf_tolerance 00058 { 00059 /* Members common for all DXF drawable entities. */ 00060 int id_code; 00065 char *linetype; 00069 char *layer; 00073 double elevation; 00078 double thickness; 00082 double linetype_scale; 00085 int16_t visibility; 00092 int color; 00099 int paperspace; 00104 char *dictionary_owner_soft; 00107 char *dictionary_owner_hard; 00110 /* Specific members for a DXF tolerance. */ 00111 char *dimstyle_name; 00114 double x0; 00117 double y0; 00120 double z0; 00123 double x1; 00126 double y1; 00129 double z1; 00132 double extr_x0; 00136 double extr_y0; 00140 double extr_z0; 00144 struct DxfTolerance *next; 00147 } DxfTolerance; 00148 00149 00150 DxfTolerance *dxf_tolerance_new (); 00151 DxfTolerance *dxf_tolerance_init (DxfTolerance *tolerance); 00152 DxfTolerance *dxf_tolerance_read (DxfFile *fp, DxfTolerance *tolerance); 00153 int dxf_tolerance_write (DxfFile *fp, DxfTolerance *tolerance); 00154 int dxf_tolerance_free (DxfTolerance *tolerance); 00155 void dxf_tolerance_free_chain (DxfTolerance *tolerances); 00156 00157 00158 #ifdef __cplusplus 00159 } 00160 #endif 00161 00162 00163 #endif /* LIBDXF_SRC_TOLERANCE_H */ 00164 00165 00166 /* EOF */