libDXF 0.0.1
A library with DXF related functions written in C.

ole2frame.h

Go to the documentation of this file.
00001 
00043 #ifndef LIBDXF_SRC_OLE2FRAME_H
00044 #define LIBDXF_SRC_OLE2FRAME_H
00045 
00046 
00047 #include "global.h"
00048 #include "util.h"
00049 #include "point.h"
00050 #include "binary_graphics_data.h"
00051 
00052 
00053 #ifdef __cplusplus
00054 extern "C" {
00055 #endif
00056 
00057 
00061 typedef struct
00062 dxf_ole2frame_struct
00063 {
00064         /* Members common for all DXF drawable entities. */
00065         int id_code;
00070         char *linetype;
00074         char *layer;
00078         double elevation;
00083         double thickness;
00087         double linetype_scale;
00090         int16_t visibility;
00097         int color;
00104         int paperspace;
00109         int graphics_data_size;
00118         int16_t shadow_mode;
00128         DxfBinaryGraphicsData *binary_graphics_data;
00134         char *dictionary_owner_soft;
00137         char *material;
00142         char *dictionary_owner_hard;
00145         int16_t lineweight;
00150         char *plot_style_name;
00154         long color_value;
00166         char *color_name;
00174         long transparency;
00182         /* Specific members for a DXF ole2frame. */
00183         char *end_of_data;
00186         char *length_of_binary_data;
00189         DxfPoint *p0;
00192         DxfPoint *p1;
00195         int ole_version_number ;
00198         int ole_object_type;
00201         int tilemode_descriptor;
00210         long length;
00213         DxfChar *binary_data;
00216         struct DxfOle2Frame *next;
00219 } DxfOle2Frame;
00220 
00221 
00222 DxfOle2Frame *dxf_ole2frame_new ();
00223 DxfOle2Frame *dxf_ole2frame_init (DxfOle2Frame *ole2frame);
00224 DxfOle2Frame *dxf_ole2frame_read (DxfFile *fp, DxfOle2Frame *ole2frame);
00225 int dxf_ole2frame_write (DxfFile *fp, DxfOle2Frame *ole2frame);
00226 int dxf_ole2frame_free (DxfOle2Frame *ole2frame);
00227 void dxf_ole2frame_free_chain (DxfOle2Frame *ole2frames);
00228 int dxf_ole2frame_get_id_code (DxfOle2Frame *ole2frame);
00229 DxfOle2Frame *dxf_ole2frame_set_id_code (DxfOle2Frame *ole2frame, int id_code);
00230 char *dxf_ole2frame_get_linetype (DxfOle2Frame *ole2frame);
00231 DxfOle2Frame *dxf_ole2frame_set_linetype (DxfOle2Frame *ole2frame, char *linetype);
00232 char *dxf_ole2frame_get_layer (DxfOle2Frame *ole2frame);
00233 DxfOle2Frame *dxf_ole2frame_set_layer (DxfOle2Frame *ole2frame, char *layer);
00234 double dxf_ole2frame_get_elevation (DxfOle2Frame *ole2frame);
00235 DxfOle2Frame *dxf_ole2frame_set_elevation (DxfOle2Frame *ole2frame, double elevation);
00236 double dxf_ole2frame_get_thickness (DxfOle2Frame *ole2frame);
00237 DxfOle2Frame *dxf_ole2frame_set_thickness (DxfOle2Frame *ole2frame, double thickness);
00238 double dxf_ole2frame_get_linetype_scale (DxfOle2Frame *ole2frame);
00239 DxfOle2Frame *dxf_ole2frame_set_linetype_scale (DxfOle2Frame *ole2frame, double linetype_scale);
00240 int16_t dxf_ole2frame_get_visibility (DxfOle2Frame *ole2frame);
00241 DxfOle2Frame *dxf_ole2frame_set_visibility (DxfOle2Frame *ole2frame, int16_t visibility);
00242 int dxf_ole2frame_get_color (DxfOle2Frame *ole2frame);
00243 DxfOle2Frame *dxf_ole2frame_set_color (DxfOle2Frame *ole2frame, int color);
00244 int dxf_ole2frame_get_paperspace (DxfOle2Frame *ole2frame);
00245 DxfOle2Frame *dxf_ole2frame_set_paperspace (DxfOle2Frame *ole2frame, int paperspace);
00246 int dxf_ole2frame_get_graphics_data_size (DxfOle2Frame *ole2frame);
00247 DxfOle2Frame *dxf_ole2frame_set_graphics_data_size (DxfOle2Frame *ole2frame, int graphics_data_size);
00248 int16_t dxf_ole2frame_get_shadow_mode (DxfOle2Frame *ole2frame);
00249 DxfOle2Frame *dxf_ole2frame_set_shadow_mode (DxfOle2Frame *ole2frame, int16_t shadow_mode);
00250 DxfBinaryGraphicsData *dxf_ole2frame_get_binary_graphics_data (DxfOle2Frame *ole2frame);
00251 DxfOle2Frame *dxf_ole2frame_set_binary_graphics_data (DxfOle2Frame *ole2frame, DxfBinaryGraphicsData *data);
00252 char *dxf_ole2frame_get_dictionary_owner_soft (DxfOle2Frame *ole2frame);
00253 DxfOle2Frame *dxf_ole2frame_set_dictionary_owner_soft (DxfOle2Frame *ole2frame, char *dictionary_owner_soft);
00254 char *dxf_ole2frame_get_material (DxfOle2Frame *ole2frame);
00255 DxfOle2Frame *dxf_ole2frame_set_material (DxfOle2Frame *ole2frame, char *material);
00256 char *dxf_ole2frame_get_dictionary_owner_hard (DxfOle2Frame *ole2frame);
00257 DxfOle2Frame *dxf_ole2frame_set_dictionary_owner_hard (DxfOle2Frame *ole2frame, char *dictionary_owner_hard);
00258 int16_t dxf_ole2frame_get_lineweight (DxfOle2Frame *ole2frame);
00259 DxfOle2Frame *dxf_ole2frame_set_lineweight (DxfOle2Frame *ole2frame, int16_t lineweight);
00260 char *dxf_ole2frame_get_plot_style_name (DxfOle2Frame *ole2frame);
00261 DxfOle2Frame *dxf_ole2frame_set_plot_style_name (DxfOle2Frame *ole2frame, char *plot_style_name);
00262 long dxf_ole2frame_get_color_value (DxfOle2Frame *ole2frame);
00263 DxfOle2Frame *dxf_ole2frame_set_color_value (DxfOle2Frame *ole2frame, long color_value);
00264 char *dxf_ole2frame_get_color_name (DxfOle2Frame *ole2frame);
00265 DxfOle2Frame *dxf_ole2frame_set_color_name (DxfOle2Frame *ole2frame, char *color_name);
00266 long dxf_ole2frame_get_transparency (DxfOle2Frame *ole2frame);
00267 DxfOle2Frame *dxf_ole2frame_set_transparency (DxfOle2Frame *ole2frame, long transparency);
00268 char *dxf_ole2frame_get_end_of_data (DxfOle2Frame *ole2frame);
00269 DxfOle2Frame *dxf_ole2frame_set_end_of_data (DxfOle2Frame *ole2frame, char *end_of_data);
00270 char *dxf_ole2frame_get_length_of_binary_data (DxfOle2Frame *ole2frame);
00271 DxfOle2Frame *dxf_ole2frame_set_length_of_binary_data (DxfOle2Frame *ole2frame, char *length_of_binary_data);
00272 DxfPoint *dxf_ole2frame_get_p0 (DxfOle2Frame *ole2frame);
00273 DxfOle2Frame *dxf_ole2frame_set_p0 (DxfOle2Frame *ole2frame, DxfPoint *p0);
00274 double dxf_ole2frame_get_x0 (DxfOle2Frame *ole2frame);
00275 DxfOle2Frame *dxf_ole2frame_set_x0 (DxfOle2Frame *ole2frame, double x0);
00276 double dxf_ole2frame_get_y0 (DxfOle2Frame *ole2frame);
00277 DxfOle2Frame *dxf_ole2frame_set_y0 (DxfOle2Frame *ole2frame, double y0);
00278 double dxf_ole2frame_get_z0 (DxfOle2Frame *ole2frame);
00279 DxfOle2Frame *dxf_ole2frame_set_z0 (DxfOle2Frame *ole2frame, double z0);
00280 DxfPoint *dxf_ole2frame_get_p1 (DxfOle2Frame *ole2frame);
00281 DxfOle2Frame *dxf_ole2frame_set_p1 (DxfOle2Frame *ole2frame, DxfPoint *p1);
00282 double dxf_ole2frame_get_x1 (DxfOle2Frame *ole2frame);
00283 DxfOle2Frame *dxf_ole2frame_set_x1 (DxfOle2Frame *ole2frame, double x1);
00284 double dxf_ole2frame_get_y1 (DxfOle2Frame *ole2frame);
00285 DxfOle2Frame *dxf_ole2frame_set_y1 (DxfOle2Frame *ole2frame, double y1);
00286 double dxf_ole2frame_get_z1 (DxfOle2Frame *ole2frame);
00287 DxfOle2Frame *dxf_ole2frame_set_z1 (DxfOle2Frame *ole2frame, double z1);
00288 int dxf_ole2frame_get_ole_version_number (DxfOle2Frame *ole2frame);
00289 DxfOle2Frame *dxf_ole2frame_set_ole_version_number (DxfOle2Frame *ole2frame, int ole_version_number);
00290 int dxf_ole2frame_get_ole_object_type (DxfOle2Frame *ole2frame);
00291 DxfOle2Frame *dxf_ole2frame_set_ole_object_type (DxfOle2Frame *ole2frame, int ole_object_type);
00292 int dxf_ole2frame_get_tilemode_descriptor (DxfOle2Frame *ole2frame);
00293 DxfOle2Frame *dxf_ole2frame_set_tilemode_descriptor (DxfOle2Frame *ole2frame, int tilemode_descriptor);
00294 long dxf_ole2frame_get_length (DxfOle2Frame *ole2frame);
00295 DxfOle2Frame *dxf_ole2frame_set_length (DxfOle2Frame *ole2frame, long length);
00296 DxfChar *dxf_ole2frame_get_binary_data (DxfOle2Frame *ole2frame);
00297 DxfOle2Frame *dxf_ole2frame_set_binary_data (DxfOle2Frame *ole2frame, DxfChar *binary_data);
00298 DxfOle2Frame *dxf_ole2frame_get_next (DxfOle2Frame *ole2frame);
00299 DxfOle2Frame *dxf_ole2frame_set_next (DxfOle2Frame *ole2frame, DxfOle2Frame *next);
00300 DxfOle2Frame *dxf_ole2frame_get_last (DxfOle2Frame *ole2frame);
00301 
00302 
00303 #ifdef __cplusplus
00304 }
00305 #endif
00306 
00307 
00308 #endif /* LIBDXF_SRC_OLE2FRAME_H */
00309 
00310 
00311 /* EOF */