libDXF 0.0.1
A library with DXF related functions written in C.
|
00001 00049 #ifndef LIBDXF_SRC_ACAD_PROXY_ENTITY_H 00050 #define LIBDXF_SRC_ACAD_PROXY_ENTITY_H 00051 00052 00053 #include "global.h" 00054 #include "binary_entity_data.h" 00055 #include "binary_graphics_data.h" 00056 #include "object_id.h" 00057 00058 00059 #ifdef __cplusplus 00060 extern "C" { 00061 #endif 00062 00063 00068 typedef struct 00069 dxf_acad_proxy_entity_struct 00070 { 00071 /* Members common for all DXF drawable entities. */ 00072 int id_code; 00077 char *linetype; 00081 char *layer; 00085 double elevation; 00091 double thickness; 00095 double linetype_scale; 00099 int visibility; 00107 int color; 00114 int paperspace; 00120 int16_t shadow_mode; 00130 char *dictionary_owner_soft; 00134 char *material; 00139 char *dictionary_owner_hard; 00143 int16_t lineweight; 00148 char *plot_style_name; 00152 long color_value; 00164 char *color_name; 00172 long transparency; 00180 /* Specific members for a DXF acad_proxy_entity. */ 00181 int original_custom_object_data_format; 00189 int proxy_entity_class_id; 00192 int application_entity_class_id; 00198 int graphics_data_size; 00205 int entity_data_size; 00208 ulong object_drawing_format; 00215 DxfBinaryGraphicsData *binary_graphics_data; 00221 DxfBinaryEntityData *binary_entity_data; 00227 DxfObjectId *object_id; 00230 struct DxfAcadProxyEntity *next; 00233 } DxfAcadProxyEntity; 00234 00235 00236 DxfAcadProxyEntity *dxf_acad_proxy_entity_new (); 00237 DxfAcadProxyEntity *dxf_acad_proxy_entity_init (DxfAcadProxyEntity *acad_proxy_entity); 00238 DxfAcadProxyEntity *dxf_acad_proxy_entity_read (DxfFile *fp, DxfAcadProxyEntity *acad_proxy_entity); 00239 int dxf_acad_proxy_entity_write (DxfFile *fp, DxfAcadProxyEntity *acad_proxy_entity); 00240 int dxf_acad_proxy_entity_free (DxfAcadProxyEntity *acad_proxy_entity); 00241 void dxf_acad_proxy_entity_free_chain (DxfAcadProxyEntity *acad_proxy_entities); 00242 int dxf_acad_proxy_entity_get_id_code (DxfAcadProxyEntity *acad_proxy_entity); 00243 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_id_code (DxfAcadProxyEntity *acad_proxy_entity, int id_code); 00244 char *dxf_acad_proxy_entity_get_linetype (DxfAcadProxyEntity *acad_proxy_entity); 00245 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_linetype (DxfAcadProxyEntity *acad_proxy_entity, char *linetype); 00246 char *dxf_acad_proxy_entity_get_layer (DxfAcadProxyEntity *acad_proxy_entity); 00247 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_layer (DxfAcadProxyEntity *acad_proxy_entity, char *layer); 00248 double dxf_acad_proxy_entity_get_elevation (DxfAcadProxyEntity *acad_proxy_entity); 00249 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_elevation (DxfAcadProxyEntity *acad_proxy_entity, double elevation); 00250 double dxf_acad_proxy_entity_get_thickness (DxfAcadProxyEntity *acad_proxy_entity); 00251 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_thickness (DxfAcadProxyEntity *acad_proxy_entity, double thickness); 00252 double dxf_acad_proxy_entity_get_linetype_scale (DxfAcadProxyEntity *acad_proxy_entity); 00253 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_linetype_scale (DxfAcadProxyEntity *acad_proxy_entity, double linetype_scale); 00254 int16_t dxf_acad_proxy_entity_get_visibility (DxfAcadProxyEntity *acad_proxy_entity); 00255 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_visibility (DxfAcadProxyEntity *acad_proxy_entity, int16_t visibility); 00256 int dxf_acad_proxy_entity_get_color (DxfAcadProxyEntity *acad_proxy_entity); 00257 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_color (DxfAcadProxyEntity *acad_proxy_entity, int color); 00258 int dxf_acad_proxy_entity_get_paperspace (DxfAcadProxyEntity *acad_proxy_entity); 00259 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_paperspace (DxfAcadProxyEntity *acad_proxy_entity, int paperspace); 00260 int16_t dxf_acad_proxy_entity_get_shadow_mode (DxfAcadProxyEntity *acad_proxy_entity); 00261 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_shadow_mode (DxfAcadProxyEntity *acad_proxy_entity, int16_t shadow_mode); 00262 char *dxf_acad_proxy_entity_get_dictionary_owner_soft (DxfAcadProxyEntity *acad_proxy_entity); 00263 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_dictionary_owner_soft (DxfAcadProxyEntity *acad_proxy_entity, char *dictionary_owner_soft); 00264 char *dxf_acad_proxy_entity_get_material (DxfAcadProxyEntity *acad_proxy_entity); 00265 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_material (DxfAcadProxyEntity *acad_proxy_entity, char *material); 00266 char *dxf_acad_proxy_entity_get_dictionary_owner_hard (DxfAcadProxyEntity *acad_proxy_entity); 00267 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_dictionary_owner_hard (DxfAcadProxyEntity *acad_proxy_entity, char *dictionary_owner_hard); 00268 int16_t dxf_acad_proxy_entity_get_lineweight (DxfAcadProxyEntity *acad_proxy_entity); 00269 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_lineweight (DxfAcadProxyEntity *acad_proxy_entity, int16_t lineweight); 00270 char *dxf_acad_proxy_entity_get_plot_style_name (DxfAcadProxyEntity *acad_proxy_entity); 00271 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_plot_style_name (DxfAcadProxyEntity *acad_proxy_entity, char *plot_style_name); 00272 long dxf_acad_proxy_entity_get_color_value (DxfAcadProxyEntity *acad_proxy_entity); 00273 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_color_value (DxfAcadProxyEntity *acad_proxy_entity, long color_value); 00274 char *dxf_acad_proxy_entity_get_color_name (DxfAcadProxyEntity *acad_proxy_entity); 00275 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_color_name (DxfAcadProxyEntity *acad_proxy_entity, char *color_name); 00276 long dxf_acad_proxy_entity_get_transparency (DxfAcadProxyEntity *acad_proxy_entity); 00277 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_transparency (DxfAcadProxyEntity *acad_proxy_entity, long transparency); 00278 int dxf_acad_proxy_entity_get_original_custom_object_data_format (DxfAcadProxyEntity *acad_proxy_entity); 00279 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_original_custom_object_data_format (DxfAcadProxyEntity *acad_proxy_entity, int original_custom_object_data_format); 00280 int dxf_acad_proxy_entity_get_proxy_entity_class_id (DxfAcadProxyEntity *acad_proxy_entity); 00281 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_proxy_entity_class_id (DxfAcadProxyEntity *acad_proxy_entity, int proxy_entity_class_id); 00282 int dxf_acad_proxy_entity_get_application_entity_class_id (DxfAcadProxyEntity *acad_proxy_entity); 00283 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_application_entity_class_id (DxfAcadProxyEntity *acad_proxy_entity, int application_entity_class_id); 00284 int dxf_acad_proxy_entity_get_graphics_data_size (DxfAcadProxyEntity *acad_proxy_entity); 00285 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_graphics_data_size (DxfAcadProxyEntity *acad_proxy_entity, int graphics_data_size); 00286 int dxf_acad_proxy_entity_get_entity_data_size (DxfAcadProxyEntity *acad_proxy_entity); 00287 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_entity_data_size (DxfAcadProxyEntity *acad_proxy_entity, int entity_data_size); 00288 ulong dxf_acad_proxy_entity_get_object_drawing_format (DxfAcadProxyEntity *acad_proxy_entity); 00289 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_object_drawing_format (DxfAcadProxyEntity *acad_proxy_entity, ulong object_drawing_format); 00290 DxfBinaryGraphicsData *dxf_acad_proxy_entity_get_binary_graphics_data (DxfAcadProxyEntity *acad_proxy_entity); 00291 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_binary_graphics_data (DxfAcadProxyEntity *acad_proxy_entity, DxfBinaryGraphicsData *data); 00292 DxfBinaryEntityData *dxf_acad_proxy_entity_get_binary_entity_data (DxfAcadProxyEntity *acad_proxy_entity); 00293 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_binary_entity_data (DxfAcadProxyEntity *acad_proxy_entity, DxfBinaryEntityData *data); 00294 DxfObjectId *dxf_acad_proxy_entity_get_object_id (DxfAcadProxyEntity *acad_proxy_entity); 00295 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_object_id (DxfAcadProxyEntity *acad_proxy_entity, DxfObjectId *object_id); 00296 DxfAcadProxyEntity *dxf_acad_proxy_entity_get_next (DxfAcadProxyEntity *acad_proxy_entity); 00297 DxfAcadProxyEntity *dxf_acad_proxy_entity_set_next (DxfAcadProxyEntity *acad_proxy_entity, DxfAcadProxyEntity *next); 00298 DxfAcadProxyEntity *dxf_acad_proxy_entity_get_last (DxfAcadProxyEntity *acad_proxy_entity); 00299 00300 00301 #ifdef __cplusplus 00302 } 00303 #endif 00304 00305 00306 #endif /* LIBDXF_SRC_ACAD_PROXY_ENTITY_H */ 00307 00308 00309 /* EOF */