libDXF 0.0.1
A library with DXF related functions written in C.
|
00001 00035 #ifndef LIBDXF_SRC_DRAWING_H 00036 #define LIBDXF_SRC_DRAWING_H 00037 00038 00039 #include "global.h" 00040 #include "header.h" 00041 #include "class.h" 00042 #include "tables.h" 00043 #include "block.h" 00044 #include "global.h" 00045 #include "entities.h" 00046 #include "object.h" 00047 #include "thumbnail.h" 00048 00049 00050 #ifdef __cplusplus 00051 extern "C" { 00052 #endif 00053 00054 00058 typedef struct 00059 dxf_drawing_struct 00060 { 00061 struct DxfHeader *header; 00063 struct DxfClass *class_list; 00065 struct DxfTables *tables_list; 00067 struct DxfBlock *block_list; 00069 struct DxfEntities *entities_list; 00071 struct DxfObject *object_list; 00073 struct DxfThumbnail *thumbnail; 00075 } DxfDrawing; 00076 00077 00078 DxfDrawing *dxf_drawing_new (); 00079 DxfDrawing *dxf_drawing_init (DxfDrawing *drawing, int acad_version_number); 00080 int dxf_drawing_free (DxfDrawing *drawing); 00081 DxfHeader *dxf_drawing_get_header (DxfDrawing *drawing); 00082 DxfDrawing *dxf_drawing_set_header (DxfDrawing *drawing, DxfHeader *header); 00083 DxfClass *dxf_drawing_get_class_list (DxfDrawing *drawing); 00084 DxfDrawing *dxf_drawing_set_class_list (DxfDrawing *drawing, DxfClass *class_list); 00085 DxfTables *dxf_drawing_get_tables_list (DxfDrawing *drawing); 00086 DxfDrawing *dxf_drawing_set_tables_list (DxfDrawing *drawing, DxfTables *tables_list); 00087 DxfBlock *dxf_drawing_get_block_list (DxfDrawing *drawing); 00088 DxfDrawing *dxf_drawing_set_block_list (DxfDrawing *drawing, DxfBlock *block_list); 00089 DxfEntities *dxf_drawing_get_entities_list (DxfDrawing *drawing); 00090 DxfDrawing *dxf_drawing_set_entities_list (DxfDrawing *drawing, DxfEntities *entities_list); 00091 DxfObject *dxf_drawing_get_object_list (DxfDrawing *drawing); 00092 DxfDrawing *dxf_drawing_set_object_list (DxfDrawing *drawing, DxfObject *object_list); 00093 DxfThumbnail *dxf_drawing_get_thumbnail (DxfDrawing *drawing); 00094 DxfDrawing *dxf_drawing_set_thumbnail (DxfDrawing *drawing, DxfThumbnail *thumbnail); 00095 00096 00097 #ifdef __cplusplus 00098 } 00099 #endif 00100 00101 00102 #endif /* LIBDXF_SRC_DRAWING_H */ 00103 00104 00105 /* EOF */