13 #include <vlutil/vlNetTypes.h>
15 #include <vlutil/vlPrint.h>
31 #define DO_LINEAR_FEATURES
35 #define DO_MICRO_TERRAIN
150 unsigned int CCTT_constant();
206 unsigned int cache();
208 bool contains_tins();
209 bool patch0_occupied();
210 bool patch0_dyn_terr();
212 bool patch0_no_tas();
213 bool patch1_occupied();
214 bool patch1_dyn_terr();
216 bool patch1_no_tas();
217 bool patch2_occupied();
218 bool patch2_dyn_terr();
220 bool patch2_no_tas();
221 bool patch3_occupied();
222 bool patch3_dyn_terr();
224 bool patch3_no_tas();
225 unsigned int unused();
251 bool read(FILE* fp,
bool debug =
false);
264 unsigned int padding();
265 DtU8 num_connections();
315 unsigned int patch_offset();
316 unsigned int quad_offset();
318 unsigned int padding();
319 bool is_abstract_feature();
411 unsigned int PostMask();
412 DtU8 MicroTerrainType();
485 DtU8 soil_of_northern_tri();
486 DtU8 soil_of_southern_tri();
487 bool either_tri_has_features();
488 bool either_tri_has_buildings();
489 bool either_tri_has_trees_or_treelines();
490 bool either_tri_has_microterrain();
491 int scaled_elevation();
511 DtU8
Blank1() {
return((bvp&0xc0) >> 6); };
517 DtU8 AdjSides() {
return(adj_sides); };
537 DtInfo(
"template c4b_terrain_element::describe\n");
543 DtInfo(
" ");DtInfo(
"z=%lf\n", native_z);
558 DtInfo(
"c4b_assoc_vertex: ");
562 DtInfo(
" index[%d]=%u,", i, (DtU16)
index[i]);
591 DtU16 Patch1Offset();
592 DtU16 Patch2Offset();
593 DtU16 Patch3Offset();
604 DtNetU8 feature_present[CTDB_MAX_POSTS_PER_PATCH * 2];
616 DtU16 Patch1Offset();
617 DtU16 Patch2Offset();
618 DtU16 Patch3Offset();
643 void parse_soil_types(
C4B &c4b);
644 void parse_grid_posts(
C4B &c4b);
657 int incrementTdbFeatureCount();
711 unsigned int patch0_number_from_patch_group_number(
unsigned int patch_group_num);
713 bool read_patch_group_headers(
bool debug =
false);
714 bool read_nodes(
bool debug =
false);
715 bool read_edges(
bool debug =
false);
716 bool read_feature_data();
717 bool read_grid_posts(
bool debug =
false);
718 bool read_all_patch_data(
bool debug =
false);
779 virtual bool loadTerrain(
const DtFilename& filename,
786 virtual bool loadTerrain(
const DtFilename& filename,
808 bool read(
const DtFilename& filename);