Functions

Function List

WinProp_ConvertToBinary
Converts an indoor ASCII *.ida database to the WinProp binary format.
WinProp_ConvertResultToASCII
Converts a binary result file to the WinProp ASCII format
WinProp_SetACCallback
Set callback for AutoCAD converter. The set callback function is called to decide if found 2D objects in a AutoCAD layer shall be included in the conversion or not. It is also possible to set the height of the object and the height above the ground.
WinProp_SetAutoCADLayerSelectionCallback
Set callback for AutoCAD (*.dwg, *.dxf) to specify which layer to convert.
WinProp_SetHeightLayerSelectionCallback
Set callback for urban database converters. The set callback function is called for formats, which contain generic properties to define the height of buildings. The callback decides which property contains the building height and allows creation of material definitions for a selected property.
WinProp_Structure_Init_Converter
This function initialises WinProp_Converter struct with reasonable values
WinProp_Convert
Converts a given database in a specified format to a database in the appropriate binary WinProp format. The indoor formats are converted to a *.idb, the outdoor formats to a *.odb, topography formats to *.tdb and morpho / clutter formats to a *.mdb database.
WinProp_ConvertMapData
Conversion of raster topography, clutter data and vector buildings/polygons into the WinProp vector file format (*.idb). Passing vector data to the conversion function is optional but topography and clutter data is required.

Function Details

int WinProp_ConvertToBinary(const char * FilenameIn, const char * FilenameOut)

Description

Converts an indoor ASCII *.ida database to the WinProp binary format.

Parameters

const char * FilenameIn
the filename of the ASCII database in *.ida format to convert.
const char * FilenameOut
the filename of the converted binary database.

Returns An integer: 0 = success, otherwise an error.

int WinProp_ConvertResultToASCII(const char * FilenameIn, const char * FilenameOut)

Description

Converts a binary result file to the WinProp ASCII format

Parameters

const char * FilenameIn
the filename of the binary result file to convert.
const char * FilenameOut
the filename of the resulting converted ASCII result file.

Returns An integer: 0 = success, otherwise an error.

int WinProp_SetACCallback(CALLBACK_AC_CONVERTER * callback)

Description

Set callback for AutoCAD converter. The set callback function is called to decide if found 2D objects in a AutoCAD layer shall be included in the conversion or not. It is also possible to set the height of the object and the height above the ground.

Parameters

CALLBACK_AC_CONVERTER * callback
The callback function.

Returns An integer: 0 = data valid, data not valid otherwise.

int WinProp_SetAutoCADLayerSelectionCallback(CALLBACK_AUTOCAD_LAYER_SELECTION * callback)

Description

Set callback for AutoCAD (*.dwg, *.dxf) to specify which layer to convert.

Parameters

CALLBACK_AUTOCAD_LAYER_SELECTION * callback
The callback function.

Returns An integer: 0 = data valid, data not valid otherwise.

int WinProp_SetHeightLayerSelectionCallback(CALLBACK_HEIGHT_LAYER_SELECTION * callback)

Description

Set callback for urban database converters. The set callback function is called for formats, which contain generic properties to define the height of buildings. The callback decides which property contains the building height and allows creation of material definitions for a selected property.

Parameters

CALLBACK_HEIGHT_LAYER_SELECTION * callback
The callback function.

Returns An integer: 0 = data valid, data not valid otherwise.

void WinProp_Structure_Init_Converter(WinProp_Converter * Init)

Description

This function initialises WinProp_Converter struct with reasonable values

Parameters

WinProp_Converter * Init
struct to initialise.

Returns None

int WinProp_Convert(WinProp_Converter * callConverter, WinProp_Callback * callback)

Description

Converts a given database in a specified format to a database in the appropriate binary WinProp format. The indoor formats are converted to a *.idb, the outdoor formats to a *.odb, topography formats to *.tdb and morpho / clutter formats to a *.mdb database.

Parameters

WinProp_Converter * callConverter
Non-null, the settings for the conversion.
WinProp_Callback * callback
If non-null, callback for percent and text output.

Returns An integer: 0 = success, otherwise an error.

int WinProp_ConvertMapData(TOPOGRAPHY * InterfaceTopography, CLUTTER * InterfaceClutter, INDOOR_WALLS * InterfaceWalls, MATERIALS * InterfaceMaterials, const char * OutputFileName, WinProp_Callback * Callback)

Description

Conversion of raster topography, clutter data and vector buildings/polygons into the WinProp vector file format (*.idb). Passing vector data to the conversion function is optional but topography and clutter data is required.

Parameters

TOPOGRAPHY * InterfaceTopography
Topography in raster format to be converted to WinProp file format.
CLUTTER * InterfaceClutter
Clutter map in raster format and clutter classes to be converted to WinProp file format.
INDOOR_WALLS * InterfaceWalls
Vector data to be converted additionally (optional).
MATERIALS * InterfaceMaterials
Material properties for vector data to be converted (only required if vector data available).
const char * OutputFileName
Name of output file (*.idb).
WinProp_Callback * Callback
Callback for percent output and messages.

Returns An integer: 0 = success, otherwise an error.

The documentation was generated from the following file:
  • source.eng/Interface/Convert.h