libDXF 0.0.1
A library with DXF related functions written in C.
|
00001 00036 #ifndef LIBDXF_SRC_LAYER_H 00037 #define LIBDXF_SRC_LAYER_H 00038 00039 00040 #include "global.h" 00041 00042 00043 #ifdef __cplusplus 00044 extern "C" { 00045 #endif 00046 00047 00054 typedef struct 00055 dxf_layer_struct 00056 { 00057 int id_code; 00062 char *layer_name; 00065 char *linetype; 00069 int color; 00073 int flag; 00086 int plotting_flag; 00090 char *dictionary_owner_soft; 00094 char *material; 00097 char *dictionary_owner_hard; 00100 int16_t lineweight; 00103 char *plot_style_name; 00106 struct DxfLayer *next; 00109 } DxfLayer; 00110 00111 00112 DxfLayer *dxf_layer_new (); 00113 DxfLayer *dxf_layer_init (DxfLayer *layer); 00114 DxfLayer *dxf_layer_read (DxfFile *fp, DxfLayer *layer); 00115 int dxf_layer_write (DxfFile *fp, DxfLayer *layer); 00116 int dxf_layer_free (DxfLayer *layer); 00117 void dxf_layer_free_chain (DxfLayer *layers); 00118 int dxf_layer_get_id_code (DxfLayer *layer); 00119 DxfLayer *dxf_layer_set_id_code (DxfLayer *layer, int id_code); 00120 char *dxf_layer_get_layer_name (DxfLayer *layer); 00121 DxfLayer *dxf_layer_set_layer_name (DxfLayer *layer, char *layer_name); 00122 char *dxf_layer_get_linetype (DxfLayer *layer); 00123 DxfLayer *dxf_layer_set_linetype (DxfLayer *layer, char *linetype); 00124 int dxf_layer_get_color (DxfLayer *layer); 00125 DxfLayer *dxf_layer_set_color (DxfLayer *layer, int color); 00126 int dxf_layer_is_off (DxfLayer *layer); 00127 int dxf_layer_get_flag (DxfLayer *layer); 00128 DxfLayer *dxf_layer_set_flag (DxfLayer *layer, int flag); 00129 int dxf_layer_is_frozen (DxfLayer *layer); 00130 int dxf_layer_is_locked (DxfLayer *layer); 00131 int dxf_layer_is_xreferenced (DxfLayer *layer); 00132 int dxf_layer_is_xresolved (DxfLayer *layer); 00133 int dxf_layer_is_referenced (DxfLayer *layer); 00134 int dxf_layer_get_plotting_flag (DxfLayer *layer); 00135 DxfLayer *dxf_layer_set_plotting_flag (DxfLayer *layer, int plotting_flag); 00136 char *dxf_layer_get_dictionary_owner_soft (DxfLayer *layer); 00137 DxfLayer *dxf_layer_set_dictionary_owner_soft (DxfLayer *layer, char *dictionary_owner_soft); 00138 char *dxf_layer_get_material (DxfLayer *layer); 00139 DxfLayer *dxf_layer_set_material (DxfLayer *layer, char *material); 00140 char *dxf_layer_get_dictionary_owner_hard (DxfLayer *layer); 00141 DxfLayer *dxf_layer_set_dictionary_owner_hard (DxfLayer *layer, char *dictionary_owner_hard); 00142 int16_t dxf_layer_get_lineweight (DxfLayer *layer); 00143 DxfLayer *dxf_layer_set_lineweight (DxfLayer *layer, int16_t lineweight); 00144 char *dxf_layer_get_plot_style_name (DxfLayer *layer); 00145 DxfLayer *dxf_layer_set_plot_style_name (DxfLayer *layer, char *plot_style_name); 00146 DxfLayer *dxf_layer_get_next (DxfLayer *layer); 00147 DxfLayer *dxf_layer_set_next (DxfLayer *layer, DxfLayer *next); 00148 DxfLayer *dxf_layer_get_last (DxfLayer *layer); 00149 00150 00151 #ifdef __cplusplus 00152 } 00153 #endif 00154 00155 00156 #endif /* LIBDXF_SRC_LAYER_H */ 00157 00158 00159 /* EOF */