libDXF 0.0.1
A library with DXF related functions written in C.
|
00001 00042 #ifndef LIBDXF_SRC_DIMSTYLE_H 00043 #define LIBDXF_SRC_DIMSTYLE_H 00044 00045 00046 #include "global.h" 00047 00048 00049 #ifdef __cplusplus 00050 extern "C" { 00051 #endif 00052 00053 00057 typedef struct 00058 dxf_dimstyle_struct 00059 { 00060 char *dimstyle_name; 00063 char *dimpost; 00066 char *dimapost; 00069 char *dimblk; 00072 char *dimblk1; 00075 char *dimblk2; 00078 double dimscale; 00081 double dimasz; 00084 double dimexo; 00087 double dimdli; 00090 double dimexe; 00093 double dimrnd; 00096 double dimdle; 00099 double dimtp; 00102 double dimtm; 00105 int flag; 00121 int dimtol; 00124 int dimlim; 00127 int dimtih; 00130 int dimtoh; 00133 int dimse1; 00136 int dimse2; 00139 int dimtad; 00142 int dimzin; 00145 int id_code; 00150 double dimtxt; 00153 double dimcen; 00156 double dimtsz; 00159 double dimaltf; 00162 double dimlfac; 00165 double dimtvp; 00168 double dimtfac; 00171 double dimgap; 00174 int dimalt; 00177 int dimaltd; 00180 int dimtofl; 00184 int dimsah; 00187 int dimtix; 00190 int dimsoxd; 00194 int dimclrd; 00197 int dimclre; 00200 int dimclrt; 00203 int dimunit; 00213 int dimdec; 00217 int dimtdec; 00221 int dimaltu; 00231 int dimalttd; 00235 int dimaunit; 00245 int dimjust; 00260 int dimsd1; 00267 int dimsd2; 00274 int dimtolj; 00282 int dimtzin; 00289 int dimaltz; 00297 int dimalttz; 00304 int dimfit; 00309 int dimupt; 00318 char *dimtxsty; 00321 struct DxfDimStyle *next; 00324 } DxfDimStyle; 00325 00326 00327 DxfDimStyle *dxf_dimstyle_new (); 00328 DxfDimStyle *dxf_dimstyle_init (DxfDimStyle *dimstyle); 00329 int dxf_dimstyle_write (DxfFile *fp, DxfDimStyle *dimstyle); 00330 DxfDimStyle *dxf_dimstyle_read (DxfFile *fp, DxfDimStyle *dimstyle); 00331 int dxf_dimstyle_free (DxfDimStyle *dimstyle); 00332 void dxf_dimstyle_free_chain (DxfDimStyle *dimstyles); 00333 char *dxf_dimstyle_get_dimstyle_name (DxfDimStyle *dimstyle); 00334 DxfDimStyle *dxf_dimstyle_set_dimstyle_name (DxfDimStyle *dimstyle, char *dimstyle_name); 00335 char *dxf_dimstyle_get_dimpost (DxfDimStyle *dimstyle); 00336 DxfDimStyle *dxf_dimstyle_set_dimpost (DxfDimStyle *dimstyle, char *dimpost); 00337 char *dxf_dimstyle_get_dimapost (DxfDimStyle *dimstyle); 00338 DxfDimStyle *dxf_dimstyle_set_dimapost (DxfDimStyle *dimstyle, char *dimapost); 00339 char *dxf_dimstyle_get_dimblk (DxfDimStyle *dimstyle); 00340 DxfDimStyle *dxf_dimstyle_set_dimblk (DxfDimStyle *dimstyle, char *dimblk); 00341 char *dxf_dimstyle_get_dimblk1 (DxfDimStyle *dimstyle); 00342 DxfDimStyle *dxf_dimstyle_set_dimblk1 (DxfDimStyle *dimstyle, char *dimblk1); 00343 char *dxf_dimstyle_get_dimblk2 (DxfDimStyle *dimstyle); 00344 DxfDimStyle *dxf_dimstyle_set_dimblk2 (DxfDimStyle *dimstyle, char *dimblk2); 00345 double dxf_dimstyle_get_dimscale (DxfDimStyle *dimstyle); 00346 DxfDimStyle *dxf_dimstyle_set_dimscale (DxfDimStyle *dimstyle, double dimscale); 00347 double dxf_dimstyle_get_dimasz (DxfDimStyle *dimstyle); 00348 DxfDimStyle *dxf_dimstyle_set_dimasz (DxfDimStyle *dimstyle, double dimasz); 00349 double dxf_dimstyle_get_dimexo (DxfDimStyle *dimstyle); 00350 DxfDimStyle *dxf_dimstyle_set_dimexo (DxfDimStyle *dimstyle, double dimexo); 00351 double dxf_dimstyle_get_dimdli (DxfDimStyle *dimstyle); 00352 DxfDimStyle *dxf_dimstyle_set_dimdli (DxfDimStyle *dimstyle, double dimdli); 00353 double dxf_dimstyle_get_dimexe (DxfDimStyle *dimstyle); 00354 DxfDimStyle *dxf_dimstyle_set_dimexe (DxfDimStyle *dimstyle, double dimexe); 00355 double dxf_dimstyle_get_dimrnd (DxfDimStyle *dimstyle); 00356 DxfDimStyle *dxf_dimstyle_set_dimrnd (DxfDimStyle *dimstyle, double dimrnd); 00357 double dxf_dimstyle_get_dimdle (DxfDimStyle *dimstyle); 00358 DxfDimStyle *dxf_dimstyle_set_dimdle (DxfDimStyle *dimstyle, double dimdle); 00359 double dxf_dimstyle_get_dimtp (DxfDimStyle *dimstyle); 00360 DxfDimStyle *dxf_dimstyle_set_dimtp (DxfDimStyle *dimstyle, double dimtp); 00361 double dxf_dimstyle_get_dimtm (DxfDimStyle *dimstyle); 00362 DxfDimStyle *dxf_dimstyle_set_dimtm (DxfDimStyle *dimstyle, double dimtm); 00363 int dxf_dimstyle_get_flag (DxfDimStyle *dimstyle); 00364 DxfDimStyle *dxf_dimstyle_set_flag (DxfDimStyle *dimstyle, int flag); 00365 int dxf_dimstyle_get_dimtol (DxfDimStyle *dimstyle); 00366 DxfDimStyle *dxf_dimstyle_set_dimtol (DxfDimStyle *dimstyle, int dimtol); 00367 int dxf_dimstyle_get_dimlim (DxfDimStyle *dimstyle); 00368 DxfDimStyle *dxf_dimstyle_set_dimlim (DxfDimStyle *dimstyle, int dimlim); 00369 int dxf_dimstyle_get_dimtih (DxfDimStyle *dimstyle); 00370 DxfDimStyle *dxf_dimstyle_set_dimtih (DxfDimStyle *dimstyle, int dimtih); 00371 int dxf_dimstyle_get_dimtoh (DxfDimStyle *dimstyle); 00372 DxfDimStyle * dxf_dimstyle_set_dimtoh (DxfDimStyle *dimstyle, int dimtoh); 00373 int dxf_dimstyle_get_dimse1 (DxfDimStyle *dimstyle); 00374 DxfDimStyle *dxf_dimstyle_set_dimse1 (DxfDimStyle *dimstyle, int dimse1); 00375 int dxf_dimstyle_get_dimse2 (DxfDimStyle *dimstyle); 00376 DxfDimStyle *dxf_dimstyle_set_dimse2 (DxfDimStyle *dimstyle, int dimse2); 00377 int dxf_dimstyle_get_dimtad (DxfDimStyle *dimstyle); 00378 DxfDimStyle *dxf_dimstyle_set_dimtad (DxfDimStyle *dimstyle, int dimtad); 00379 int dxf_dimstyle_get_dimzin (DxfDimStyle *dimstyle); 00380 DxfDimStyle *dxf_dimstyle_set_dimzin (DxfDimStyle *dimstyle, int dimzin); 00381 int dxf_dimstyle_get_id_code (DxfDimStyle *dimstyle); 00382 DxfDimStyle *dxf_dimstyle_set_id_code (DxfDimStyle *dimstyle, int id_code); 00383 double dxf_dimstyle_get_dimtxt (DxfDimStyle *dimstyle); 00384 DxfDimStyle *dxf_dimstyle_set_dimtxt (DxfDimStyle *dimstyle, double dimtxt); 00385 double dxf_dimstyle_get_dimcen (DxfDimStyle *dimstyle); 00386 DxfDimStyle *dxf_dimstyle_set_dimcen (DxfDimStyle *dimstyle, double dimcen); 00387 double dxf_dimstyle_get_dimtsz (DxfDimStyle *dimstyle); 00388 DxfDimStyle *dxf_dimstyle_set_dimtsz (DxfDimStyle *dimstyle, double dimtsz); 00389 double dxf_dimstyle_get_dimaltf (DxfDimStyle *dimstyle); 00390 DxfDimStyle *dxf_dimstyle_set_dimaltf (DxfDimStyle *dimstyle, double dimaltf); 00391 double dxf_dimstyle_get_dimlfac (DxfDimStyle *dimstyle); 00392 DxfDimStyle *dxf_dimstyle_set_dimlfac (DxfDimStyle *dimstyle, double dimlfac); 00393 double dxf_dimstyle_get_dimtvp (DxfDimStyle *dimstyle); 00394 DxfDimStyle *dxf_dimstyle_set_dimtvp (DxfDimStyle *dimstyle, double dimtvp); 00395 double dxf_dimstyle_get_dimtfac (DxfDimStyle *dimstyle); 00396 DxfDimStyle *dxf_dimstyle_set_dimtfac (DxfDimStyle *dimstyle, double dimtfac); 00397 double dxf_dimstyle_get_dimgap (DxfDimStyle *dimstyle); 00398 DxfDimStyle *dxf_dimstyle_set_dimgap (DxfDimStyle *dimstyle, double dimgap); 00399 int dxf_dimstyle_get_dimalt (DxfDimStyle *dimstyle); 00400 DxfDimStyle *dxf_dimstyle_set_dimalt (DxfDimStyle *dimstyle, int dimalt); 00401 int dxf_dimstyle_get_dimaltd (DxfDimStyle *dimstyle); 00402 DxfDimStyle *dxf_dimstyle_set_dimaltd (DxfDimStyle *dimstyle, int dimaltd); 00403 int dxf_dimstyle_get_dimtofl (DxfDimStyle *dimstyle); 00404 DxfDimStyle *dxf_dimstyle_set_dimtofl (DxfDimStyle *dimstyle, int dimtofl); 00405 int dxf_dimstyle_get_dimsah (DxfDimStyle *dimstyle); 00406 DxfDimStyle *dxf_dimstyle_set_dimsah (DxfDimStyle *dimstyle, int dimsah); 00407 int dxf_dimstyle_get_dimtix (DxfDimStyle *dimstyle); 00408 DxfDimStyle *dxf_dimstyle_set_dimtix (DxfDimStyle *dimstyle, int dimtix); 00409 int dxf_dimstyle_get_dimsoxd (DxfDimStyle *dimstyle); 00410 DxfDimStyle *dxf_dimstyle_set_dimsoxd (DxfDimStyle *dimstyle, int dimsoxd); 00411 int dxf_dimstyle_get_dimclrd (DxfDimStyle *dimstyle); 00412 DxfDimStyle *dxf_dimstyle_set_dimclrd (DxfDimStyle *dimstyle, int dimclrd); 00413 int dxf_dimstyle_get_dimclre (DxfDimStyle *dimstyle); 00414 DxfDimStyle *dxf_dimstyle_set_dimclre (DxfDimStyle *dimstyle, int dimclre); 00415 int dxf_dimstyle_get_dimclrt (DxfDimStyle *dimstyle); 00416 DxfDimStyle *dxf_dimstyle_set_dimclrt (DxfDimStyle *dimstyle, int dimclrt); 00417 int dxf_dimstyle_get_dimunit (DxfDimStyle *dimstyle); 00418 DxfDimStyle *dxf_dimstyle_set_dimunit (DxfDimStyle *dimstyle, int dimunit); 00419 int dxf_dimstyle_get_dimdec (DxfDimStyle *dimstyle); 00420 DxfDimStyle *dxf_dimstyle_set_dimdec (DxfDimStyle *dimstyle, int dimdec); 00421 int dxf_dimstyle_get_dimtdec (DxfDimStyle *dimstyle); 00422 DxfDimStyle *dxf_dimstyle_set_dimtdec (DxfDimStyle *dimstyle, int dimtdec); 00423 int dxf_dimstyle_get_dimaltu (DxfDimStyle *dimstyle); 00424 DxfDimStyle *dxf_dimstyle_set_dimaltu (DxfDimStyle *dimstyle, int dimaltu); 00425 int dxf_dimstyle_get_dimalttd (DxfDimStyle *dimstyle); 00426 DxfDimStyle *dxf_dimstyle_set_dimalttd (DxfDimStyle *dimstyle, int dimalttd); 00427 int dxf_dimstyle_get_dimaunit (DxfDimStyle *dimstyle); 00428 DxfDimStyle *dxf_dimstyle_set_dimaunit (DxfDimStyle *dimstyle, int dimaunit); 00429 int dxf_dimstyle_get_dimjust (DxfDimStyle *dimstyle); 00430 DxfDimStyle *dxf_dimstyle_set_dimjust (DxfDimStyle *dimstyle, int dimjust); 00431 int dxf_dimstyle_get_dimsd1 (DxfDimStyle *dimstyle); 00432 DxfDimStyle *dxf_dimstyle_set_dimsd1 (DxfDimStyle *dimstyle, int dimsd1); 00433 int dxf_dimstyle_get_dimsd2 (DxfDimStyle *dimstyle); 00434 DxfDimStyle *dxf_dimstyle_set_dimsd2 (DxfDimStyle *dimstyle, int dimsd2); 00435 int dxf_dimstyle_get_dimtolj (DxfDimStyle *dimstyle); 00436 DxfDimStyle *dxf_dimstyle_set_dimtolj (DxfDimStyle *dimstyle, int dimtolj); 00437 int dxf_dimstyle_get_dimtzin (DxfDimStyle *dimstyle); 00438 DxfDimStyle *dxf_dimstyle_set_dimtzin (DxfDimStyle *dimstyle, int dimtzin); 00439 int dxf_dimstyle_get_dimaltz (DxfDimStyle *dimstyle); 00440 DxfDimStyle *dxf_dimstyle_set_dimaltz (DxfDimStyle *dimstyle, int dimaltz); 00441 int dxf_dimstyle_get_dimalttz (DxfDimStyle *dimstyle); 00442 DxfDimStyle *dxf_dimstyle_set_dimalttz (DxfDimStyle *dimstyle, int dimalttz); 00443 int dxf_dimstyle_get_dimfit (DxfDimStyle *dimstyle); 00444 DxfDimStyle *dxf_dimstyle_set_dimfit (DxfDimStyle *dimstyle, int dimfit); 00445 int dxf_dimstyle_get_dimupt (DxfDimStyle *dimstyle); 00446 DxfDimStyle *dxf_dimstyle_set_dimupt (DxfDimStyle *dimstyle, int dimupt); 00447 char *dxf_dimstyle_get_dimtxsty (DxfDimStyle *dimstyle); 00448 DxfDimStyle *dxf_dimstyle_set_dimtxsty (DxfDimStyle *dimstyle, char *dimtxsty); 00449 DxfDimStyle *dxf_dimstyle_get_next (DxfDimStyle *dimstyle); 00450 DxfDimStyle *dxf_dimstyle_set_next (DxfDimStyle *dimstyle, DxfDimStyle *next); 00451 DxfDimStyle *dxf_dimstyle_get_last (DxfDimStyle *dimstyle); 00452 00453 00454 #ifdef __cplusplus 00455 } 00456 #endif 00457 00458 00459 #endif /* LIBDXF_SRC_DIMSTYLE_H */ 00460 00461 00462 /* EOF */