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

imagedef.h

Go to the documentation of this file.
00001 
00045 #ifndef LIBDXF_SRC_IMAGEDEF_H
00046 #define LIBDXF_SRC_IMAGEDEF_H
00047 
00048 
00049 #include "global.h"
00050 #include "point.h"
00051 #include "imagedef_reactor.h"
00052 
00053 
00054 #ifdef __cplusplus
00055 extern "C" {
00056 #endif
00057 
00058 
00062 typedef struct
00063 dxf_imagedef_struct
00064 {
00065         /* Members common for all DXF group objects. */
00066         int id_code;
00071         char *dictionary_owner_soft;
00074         char *dictionary_owner_hard;
00077         /* Specific members for a DXF imagedef. */
00078         char *file_name;
00081         DxfPoint *p0;
00084         DxfPoint *p1;
00088         double x0;
00092         double y0;
00095         double x1;
00099         double y1;
00102         int32_t class_version;
00106         int image_is_loaded_flag;
00114         int resolution_units;
00122         char *acad_image_dict_soft;
00126         char *imagedef_reactor_soft[DXF_MAX_PARAM];
00130         DxfImagedefReactor *imagedef_reactor;
00135         struct DxfImagedef *next;
00138 } DxfImagedef;
00139 
00140 
00141 DxfImagedef *dxf_imagedef_new ();
00142 DxfImagedef *dxf_imagedef_init (DxfImagedef *imagedef);
00143 DxfImagedef *dxf_imagedef_read (DxfFile *fp, DxfImagedef *imagedef);
00144 int dxf_imagedef_write (DxfFile *fp, DxfImagedef *imagedef);
00145 int dxf_imagedef_free (DxfImagedef *imagedef);
00146 void dxf_imagedef_free_chain (DxfImagedef *imagedefs);
00147 int dxf_imagedef_get_id_code (DxfImagedef *imagedef);
00148 DxfImagedef *dxf_imagedef_set_id_code (DxfImagedef *imagedef, int id_code);
00149 char *dxf_imagedef_get_dictionary_owner_soft (DxfImagedef *imagedef);
00150 DxfImagedef *dxf_imagedef_set_dictionary_owner_soft (DxfImagedef *imagedef, char *dictionary_owner_soft);
00151 char *dxf_imagedef_get_dictionary_owner_hard (DxfImagedef *imagedef);
00152 DxfImagedef *dxf_imagedef_set_dictionary_owner_hard (DxfImagedef *imagedef, char *dictionary_owner_hard);
00153 char *dxf_imagedef_get_file_name (DxfImagedef *imagedef);
00154 DxfImagedef *dxf_imagedef_set_file_name (DxfImagedef *imagedef, char *file_name);
00155 DxfPoint *dxf_imagedef_get_p0 (DxfImagedef *imagedef);
00156 DxfImagedef *dxf_imagedef_set_p0 (DxfImagedef *imagedef, DxfPoint *p0);
00157 double dxf_imagedef_get_x0 (DxfImagedef *imagedef);
00158 DxfImagedef *dxf_imagedef_set_x0 (DxfImagedef *imagedef, double x0);
00159 double dxf_imagedef_get_y0 (DxfImagedef *imagedef);
00160 DxfImagedef *dxf_imagedef_set_y0 (DxfImagedef *imagedef, double y0);
00161 DxfPoint *dxf_imagedef_get_p1 (DxfImagedef *imagedef);
00162 DxfImagedef *dxf_imagedef_set_p1 (DxfImagedef *imagedef, DxfPoint *p1);
00163 double dxf_imagedef_get_x1 (DxfImagedef *imagedef);
00164 DxfImagedef *dxf_imagedef_set_x1 (DxfImagedef *imagedef, double x1);
00165 double dxf_imagedef_get_y1 (DxfImagedef *imagedef);
00166 DxfImagedef *dxf_imagedef_set_y1 (DxfImagedef *imagedef, double y1);
00167 int32_t dxf_imagedef_get_class_version (DxfImagedef *imagedef);
00168 DxfImagedef *dxf_imagedef_set_class_version (DxfImagedef *imagedef, int32_t class_version);
00169 int dxf_imagedef_get_image_is_loaded_flag (DxfImagedef *imagedef);
00170 DxfImagedef *dxf_imagedef_set_image_is_loaded_flag (DxfImagedef *imagedef, int image_is_loaded_flag);
00171 int dxf_imagedef_get_resolution_units (DxfImagedef *imagedef);
00172 DxfImagedef *dxf_imagedef_set_resolution_units (DxfImagedef *imagedef, int resolution_units);
00173 char *dxf_imagedef_get_acad_image_dict_soft (DxfImagedef *imagedef);
00174 DxfImagedef *dxf_imagedef_set_acad_image_dict_soft (DxfImagedef *imagedef, char *acad_image_dict_soft);
00175 DxfImagedefReactor *dxf_imagedef_get_imagedef_reactor (DxfImagedef *imagedef);
00176 DxfImagedef *dxf_imagedef_set_imagedef_reactor (DxfImagedef *imagedef, DxfImagedefReactor *imagedef_reactor);
00177 DxfImagedef *dxf_imagedef_get_next (DxfImagedef *imagedef);
00178 DxfImagedef *dxf_imagedef_set_next (DxfImagedef *imagedef, DxfImagedef *next);
00179 DxfImagedef *dxf_imagedef_get_last (DxfImagedef *imagedef);
00180 
00181 
00182 #ifdef __cplusplus
00183 }
00184 #endif
00185 
00186 
00187 #endif /* LIBDXF_SRC_IMAGEDEF_H */
00188 
00189 
00190 /* EOF */