libDXF 0.0.1
A library with DXF related functions written in C.
|
00001 00046 #ifndef LIBDXF_SRC_SPATIAL_INDEX_H 00047 #define LIBDXF_SRC_SPATIAL_INDEX_H 00048 00049 00050 #include "global.h" 00051 00052 00053 #ifdef __cplusplus 00054 extern "C" { 00055 #endif 00056 00057 00061 typedef struct 00062 dxf_spatial_index_struct 00063 { 00064 /* Members common for all DXF objects. */ 00065 int id_code; 00070 char *dictionary_owner_soft; 00073 char *dictionary_owner_hard; 00076 /* Specific members for a DXF spatial_index. */ 00077 double time_stamp; 00080 struct DxfSpatialIndex *next; 00083 } DxfSpatialIndex; 00084 00085 00086 DxfSpatialIndex *dxf_spatial_index_new (); 00087 DxfSpatialIndex *dxf_spatial_index_init (DxfSpatialIndex *spatial_index); 00088 DxfSpatialIndex *dxf_spatial_index_read (DxfFile *fp, DxfSpatialIndex *spatial_index); 00089 int dxf_spatial_index_write (DxfFile *fp, DxfSpatialIndex *spatial_index); 00090 int dxf_spatial_index_free (DxfSpatialIndex *spatial_index); 00091 void dxf_spatial_index_free_chain (DxfSpatialIndex *spatial_indices); 00092 int dxf_spatial_index_get_id_code (DxfSpatialIndex *spatial_index); 00093 DxfSpatialIndex *dxf_spatial_index_set_id_code (DxfSpatialIndex *spatial_index, int id_code); 00094 char *dxf_spatial_index_get_dictionary_owner_soft (DxfSpatialIndex *spatial_index); 00095 DxfSpatialIndex *dxf_spatial_index_set_dictionary_owner_soft (DxfSpatialIndex *spatial_index, char *dictionary_owner_soft); 00096 char *dxf_spatial_index_get_dictionary_owner_hard (DxfSpatialIndex *spatial_index); 00097 DxfSpatialIndex *dxf_spatial_index_set_dictionary_owner_hard (DxfSpatialIndex *spatial_index, char *dictionary_owner_hard); 00098 double dxf_spatial_index_get_time_stamp (DxfSpatialIndex *spatial_index); 00099 DxfSpatialIndex *dxf_spatial_index_set_time_stamp (DxfSpatialIndex *spatial_index, double time_stamp); 00100 DxfSpatialIndex *dxf_spatial_index_get_next (DxfSpatialIndex *spatial_index); 00101 DxfSpatialIndex *dxf_spatial_index_set_next (DxfSpatialIndex *spatial_index, DxfSpatialIndex *next); 00102 DxfSpatialIndex *dxf_spatial_index_get_last (DxfSpatialIndex *spatial_index); 00103 00104 00105 #ifdef __cplusplus 00106 } 00107 #endif 00108 00109 00110 #endif /* LIBDXF_SRC_SPATIAL_INDEX_H */ 00111 00112 00113 /* EOF */