Functions for Buildings

Function List

InterfaceLoadBuildingsAircomSingleFile
Load buildings from a single AIRCOM file.
InterfaceLoadBuildingsASCII
Reads building data from a *.oda ASCII file.
InterfaceBuildingInit
Initialise interface buildings.
InterfaceBuildingAllocat)
Allocate Memory to Building data. URBAN_BUILDING the allocated building.
InterfaceBuildingCornersAllocate
Allocate Corners of Buildings.
InterfaceBuildingCornersFree
Free building corners
InterfaceBuildingFree
Free building structure
InterfaceBuildingsInit
Initialise building structure of DBInterface.dll.
InterfaceBuildingsCopy
Copy building data.
InterfaceBuildingsAdd
Add new buildings
InterfaceBuildingsFree
Free building data.
InterfaceBuildingsSort
Sort building structure according to building height.
InterfaceBuildingsWriteASCII
Write building data to an ASCII database.

Function Details

void InterfaceLoadBuildingsAircomSingleFile(URBAN_BUILDINGS * Buildings, const char * FilenameBuildings, const char * FilenameAttributes)

Description

Load buildings from a single AIRCOM file.

Parameters

URBAN_BUILDINGS * Buildings
Building data.
const char * FilenameBuildings
Filename of buildings file.
const char * FilenameAttributes
Filename of attributes file.

Returns None

int InterfaceLoadBuildingsASCII(URBAN_BUILDINGS * Buildings, const char * Filename)

Description

Reads building data from a *.oda ASCII file.

Parameters

URBAN_BUILDINGS * Buildings
Building data.
const char * Filename
Filename of buildings file.

Returns An int 0 in case of success, != 0 otherwise.

void InterfaceBuildingInit(URBAN_BUILDING * building)

Description

Initialise interface buildings.

Parameters

URBAN_BUILDING * building
Building data.

Returns None

URBAN_BUILDING InterfaceBuildingAllocate(INTERFACE_API URBAN_BUILDING * InterfaceBuildingAllocat)

Description

Allocate Memory to Building data. URBAN_BUILDING the allocated building.

Parameters

Returns None

INTERFACE_CORNER InterfaceBuildingCornersAllocate(unsigned int NbrCorners)

Description

Allocate Corners of Buildings.

Parameters

unsigned int NbrCorners
Number of corners.

Returns None

int InterfaceBuildingCornersFree(INTERFACE_CORNER ** Ptr)

Description

Free building corners

Parameters

INTERFACE_CORNER ** Ptr
Corners to be freed.

Returns 0.

void InterfaceBuildingFree(URBAN_BUILDING * pBuilding)

Description

Free building structure

Parameters

URBAN_BUILDING * pBuilding
Urban building structure.

Returns None

void InterfaceBuildingsInit(URBAN_BUILDINGS * buildings)

Description

Initialise building structure of DBInterface.dll.

Parameters

URBAN_BUILDINGS * buildings
Building data.

Returns None

int InterfaceBuildingsCopy(URBAN_BUILDINGS * copy, const URBAN_BUILDINGS * source)

Description

Copy building data.

Parameters

URBAN_BUILDINGS * copy
Copy of building data.
const URBAN_BUILDINGS * source
Source building data.

Returns An int.

URBAN_BUILDING InterfaceBuildingsAdd(unsigned int nbrCorners, bool bInsertTail, bool bMaterial, URBAN_BUILDINGS * pBuildingList)

Description

Add new buildings

Parameters

unsigned int nbrCorners
Number of corners of the new building.
bool bInsertTail
Insert at the tail of the list
bool bMaterial
Allocate sub structure for material data.
URBAN_BUILDINGS * pBuildingList
List with building data to add new building.

Returns A pointer to an

void InterfaceBuildingsFree(URBAN_BUILDINGS * buildings)

Description

Free building data.

Parameters

URBAN_BUILDINGS * buildings
Building data.

Returns None

int InterfaceBuildingsSort(URBAN_BUILDINGS * buildings, int criteria)

Description

Sort building structure according to building height.

Parameters

URBAN_BUILDINGS * buildings
Building data.
int criteria
Criteria for sorting. Specified by SORT_BUILDING_HEIGHT_INC or SORT_BUILDING_HEIGHT_DEC

Returns An int.

int InterfaceBuildingsWriteASCII(URBAN_BUILDINGS * buildings, const char * databaseName)

Description

Write building data to an ASCII database.

Parameters

URBAN_BUILDINGS * buildings
Building data.
const char * databaseName
Name of the database.

Returns An int.

The documentation was generated from the following file:
  • source/Public/Interface/Buildings.h