00001 00002 #ifndef __JBL_SHAPE_FILE_H_ 00003 #define __JBL_SHAPE_FILE_H_ 00004 00012 #include "gio.h" 00013 #include "graph.h" 00014 00015 //#include "jpeg_tool.h" 00016 00017 00018 #define SHAPE_TYPE_NULL_SHAPE 0 00019 #define SHAPE_TYPE_POINT 1 00020 #define SHAPE_TYPE_POLY_LINE 3 00021 #define SHAPE_TYPE_POLYGON 5 00022 #define SHAPE_TYPE_MULTI_POINT 8 00023 #define SHAPE_TYPE_POINTZ 11 00024 #define SHAPE_TYPE_MULTI_PATCH 31 00025 00026 00027 typedef struct { 00028 int datanum; 00029 int offset; 00030 int size; 00031 int type; 00032 int maxnum; 00033 } ShapeIndex; 00034 00035 00036 00038 00039 ShapeIndex* read_shape_index_file(FILE* fp); 00040 BSGraph* read_shape_main_file(ShapeIndex* idx, BSGraph* mp, vector og, vector dd, FILE* fp); 00041 00042 void draw_shape_polygon(ShapeIndex* idx, BSGraph* mp, vector og, vector dd, int cc, FILE* fp); 00043 00044 00045 00046 #endif 00047 00048