|
JunkBox_Lib 1.10.1
|
SHAPE FILE TOOL Header. More...


Go to the source code of this file.
Data Structures | |
| struct | ShapeIndex |
Macros | |
| #define | SHAPE_TYPE_NULL_SHAPE 0 |
| #define | SHAPE_TYPE_POINT 1 |
| #define | SHAPE_TYPE_POLY_LINE 3 |
| #define | SHAPE_TYPE_POLYGON 5 |
| #define | SHAPE_TYPE_MULTI_POINT 8 |
| #define | SHAPE_TYPE_POINTZ 11 |
| #define | SHAPE_TYPE_MULTI_PATCH 31 |
Functions | |
| ShapeIndex * | read_shape_index_file (FILE *fp) |
| BSGraph * | read_shape_main_file (ShapeIndex *idx, BSGraph *mp, vector og, vector dd, FILE *fp) |
| void | draw_shape_polygon (ShapeIndex *idx, BSGraph *mp, vector og, vector dd, int cc, FILE *fp) |
Definition in file shape_file.h.
| #define SHAPE_TYPE_MULTI_PATCH 31 |
Definition at line 21 of file shape_file.h.
| #define SHAPE_TYPE_MULTI_POINT 8 |
Definition at line 19 of file shape_file.h.
| #define SHAPE_TYPE_NULL_SHAPE 0 |
Definition at line 15 of file shape_file.h.
| #define SHAPE_TYPE_POINT 1 |
Definition at line 16 of file shape_file.h.
| #define SHAPE_TYPE_POINTZ 11 |
Definition at line 20 of file shape_file.h.
| #define SHAPE_TYPE_POLY_LINE 3 |
Definition at line 17 of file shape_file.h.
| #define SHAPE_TYPE_POLYGON 5 |
Definition at line 18 of file shape_file.h.
Referenced by draw_shape_polygon(), and read_shape_main_file().
| void draw_shape_polygon | ( | ShapeIndex * | idx, |
| BSGraph * | mp, | ||
| vector | og, | ||
| vector | dd, | ||
| int | cc, | ||
| FILE * | fp ) |
Definition at line 138 of file shape_file.c.
References bline3d(), double_from_little_endian(), int_from_little_endian(), ShapeIndex::maxnum, ShapeIndex::offset, SHAPE_TYPE_POLYGON, UNUSED, vector::x, vector::y, vector::z, and BSGraph::zs.
Referenced by read_shape_main_file().


| ShapeIndex * read_shape_index_file | ( | FILE * | fp | ) |
Definition at line 11 of file shape_file.c.
References ShapeIndex::datanum, DEBUG_MODE, int_from_big_endian(), int_from_little_endian(), ShapeIndex::maxnum, ShapeIndex::offset, PRINT_MESG, ShapeIndex::size, ShapeIndex::type, and UNUSED.

| BSGraph * read_shape_main_file | ( | ShapeIndex * | idx, |
| BSGraph * | mp, | ||
| vector | og, | ||
| vector | dd, | ||
| FILE * | fp ) |
Definition at line 62 of file shape_file.c.
References DEBUG_MODE, double_from_little_endian(), draw_shape_polygon(), BSGraph::gp, int_from_big_endian(), int_from_little_endian(), JBXL_NORMAL, make_BSGraph(), PRINT_MESG, set_vector(), SHAPE_TYPE_POLYGON, BSGraph::state, ShapeIndex::type, UNUSED, vector::x, vector::y, and vector::z.
