libDXF 0.0.1
A library with DXF related functions written in C.
|
00001 00036 #ifndef LIBDXF_SRC_OLEFRAME_H 00037 #define LIBDXF_SRC_OLEFRAME_H 00038 00039 00040 #include "global.h" 00041 #include "util.h" 00042 #include "point.h" 00043 #include "binary_graphics_data.h" 00044 00045 00046 #ifdef __cplusplus 00047 extern "C" { 00048 #endif 00049 00050 00057 typedef struct 00058 dxf_oleframe_struct 00059 { 00060 /* Members common for all DXF drawable entities. */ 00061 int id_code; 00066 char *linetype; 00070 char *layer; 00074 double elevation; 00080 double thickness; 00084 double linetype_scale; 00088 int16_t visibility; 00096 int color; 00103 int paperspace; 00109 int graphics_data_size; 00118 int16_t shadow_mode; 00128 DxfBinaryGraphicsData *binary_graphics_data; 00134 char *dictionary_owner_soft; 00138 char *material; 00143 char *dictionary_owner_hard; 00147 int16_t lineweight; 00152 char *plot_style_name; 00156 long color_value; 00168 char *color_name; 00176 long transparency; 00184 /* Specific members for a DXF oleframe. */ 00185 int ole_version_number ; 00188 long length; 00191 DxfChar *binary_data; 00194 struct DxfOleFrame *next; 00197 } DxfOleFrame; 00198 00199 00200 DxfOleFrame *dxf_oleframe_new (); 00201 DxfOleFrame *dxf_oleframe_init (DxfOleFrame *oleframe); 00202 DxfOleFrame *dxf_oleframe_read (DxfFile *fp, DxfOleFrame *oleframe); 00203 int dxf_oleframe_write (DxfFile *fp, DxfOleFrame *oleframe); 00204 int dxf_oleframe_free (DxfOleFrame *oleframe); 00205 void dxf_oleframe_free_chain (DxfOleFrame *oleframes); 00206 int dxf_oleframe_get_id_code (DxfOleFrame *oleframe); 00207 DxfOleFrame *dxf_oleframe_set_id_code (DxfOleFrame *oleframe, int id_code); 00208 char *dxf_oleframe_get_linetype (DxfOleFrame *oleframe); 00209 DxfOleFrame *dxf_oleframe_set_linetype (DxfOleFrame *oleframe, char *linetype); 00210 char *dxf_oleframe_get_layer (DxfOleFrame *oleframe); 00211 DxfOleFrame *dxf_oleframe_set_layer (DxfOleFrame *oleframe, char *layer); 00212 double dxf_oleframe_get_elevation (DxfOleFrame *oleframe); 00213 DxfOleFrame *dxf_oleframe_set_elevation (DxfOleFrame *oleframe, double elevation); 00214 double dxf_oleframe_get_thickness (DxfOleFrame *oleframe); 00215 DxfOleFrame *dxf_oleframe_set_thickness (DxfOleFrame *oleframe, double thickness); 00216 double dxf_oleframe_get_linetype_scale (DxfOleFrame *oleframe); 00217 DxfOleFrame *dxf_oleframe_set_linetype_scale (DxfOleFrame *oleframe, double linetype_scale); 00218 int16_t dxf_oleframe_get_visibility (DxfOleFrame *oleframe); 00219 DxfOleFrame *dxf_oleframe_set_visibility (DxfOleFrame *oleframe, int16_t visibility); 00220 int dxf_oleframe_get_color (DxfOleFrame *oleframe); 00221 DxfOleFrame *dxf_oleframe_set_color (DxfOleFrame *oleframe, int color); 00222 int dxf_oleframe_get_paperspace (DxfOleFrame *oleframe); 00223 DxfOleFrame *dxf_oleframe_set_paperspace (DxfOleFrame *oleframe, int paperspace); 00224 int dxf_oleframe_get_graphics_data_size (DxfOleFrame *oleframe); 00225 DxfOleFrame *dxf_oleframe_set_graphics_data_size (DxfOleFrame *oleframe, int graphics_data_size); 00226 int16_t dxf_oleframe_get_shadow_mode (DxfOleFrame *oleframe); 00227 DxfOleFrame *dxf_oleframe_set_shadow_mode (DxfOleFrame *oleframe, int16_t shadow_mode); 00228 DxfBinaryGraphicsData *dxf_oleframe_get_binary_graphics_data (DxfOleFrame *oleframe); 00229 DxfOleFrame *dxf_oleframe_set_binary_graphics_data (DxfOleFrame *oleframe, DxfBinaryGraphicsData *data); 00230 char *dxf_oleframe_get_dictionary_owner_soft (DxfOleFrame *oleframe); 00231 DxfOleFrame *dxf_oleframe_set_dictionary_owner_soft (DxfOleFrame *oleframe, char *dictionary_owner_soft); 00232 char *dxf_oleframe_get_material (DxfOleFrame *oleframe); 00233 DxfOleFrame *dxf_oleframe_set_material (DxfOleFrame *oleframe, char *material); 00234 char *dxf_oleframe_get_dictionary_owner_hard (DxfOleFrame *oleframe); 00235 DxfOleFrame *dxf_oleframe_set_dictionary_owner_hard (DxfOleFrame *oleframe, char *dictionary_owner_hard); 00236 int16_t dxf_oleframe_get_lineweight (DxfOleFrame *oleframe); 00237 DxfOleFrame *dxf_oleframe_set_lineweight (DxfOleFrame *oleframe, int16_t lineweight); 00238 char *dxf_oleframe_get_plot_style_name (DxfOleFrame *oleframe); 00239 DxfOleFrame *dxf_oleframe_set_plot_style_name (DxfOleFrame *oleframe, char *plot_style_name); 00240 long dxf_oleframe_get_color_value (DxfOleFrame *oleframe); 00241 DxfOleFrame *dxf_oleframe_set_color_value (DxfOleFrame *oleframe, long color_value); 00242 char *dxf_oleframe_get_color_name (DxfOleFrame *oleframe); 00243 DxfOleFrame *dxf_oleframe_set_color_name (DxfOleFrame *oleframe, char *color_name); 00244 long dxf_oleframe_get_transparency (DxfOleFrame *oleframe); 00245 DxfOleFrame *dxf_oleframe_set_transparency (DxfOleFrame *oleframe, long transparency); 00246 int dxf_oleframe_get_ole_version_number (DxfOleFrame *oleframe); 00247 DxfOleFrame *dxf_oleframe_set_ole_version_number (DxfOleFrame *oleframe, int ole_version_number); 00248 long dxf_oleframe_get_length (DxfOleFrame *oleframe); 00249 DxfOleFrame *dxf_oleframe_set_length (DxfOleFrame *oleframe, long length); 00250 DxfChar *dxf_oleframe_get_binary_data (DxfOleFrame *oleframe); 00251 DxfOleFrame *dxf_oleframe_set_binary_data (DxfOleFrame *oleframe, DxfChar *binary_data); 00252 DxfOleFrame *dxf_oleframe_get_next (DxfOleFrame *oleframe); 00253 DxfOleFrame *dxf_oleframe_set_next (DxfOleFrame *oleframe, DxfOleFrame *next); 00254 DxfOleFrame *dxf_oleframe_get_last (DxfOleFrame *oleframe); 00255 00256 00257 #ifdef __cplusplus 00258 } 00259 #endif 00260 00261 00262 #endif /* LIBDXF_SRC_OLEFRAME_H */ 00263 00264 00265 /* EOF */