DBgetHorizont

Top  Previous  Next

The horizon get from the data bank.

In the data bank a corner to which different functions appeal as an authoritative direction can be defined in several kinds. The horizon is defined either as a line from two points with the procedure horizon (HOR), or he is given as a corner under the name HOR in the procedure InitializeParameter (INI). Because the calculation of the corner from the points with all special cases must occur, DBgetHorizont delivers the suitable corner under all circumstances. Who needs the points originally used to the definition, that must take this, however, even from the segment HORIZONT_SEGMENT. DBgetHorizont only this segment searches according to the definition. If either the segment does not exist which is absent suitable object or element, or if in the element at least 2 points do not exist, the initialization variable HOR is questioned instead of this. If she also does not exist, the value 0.0 is delivered as a horizon.

Parametre

root (PROOT) [IN]

The trading of the data bank.

horizontIsDefined (int *) [OUT]

ZERO By handing over of a zero pointer this parametre is ignored.

But If the horizontal segment contains a valid definition of the horizon, the value TRUE is returned here. If the definition of the horizon comes from the initialization variables, or if the Defaultwert 0.0 is delivered, there stands here the value FALSE.

Result

(STAND-IN) [OUT]

The corner of the horizon in curve measure. The Defaultwert is 0.0.

Declaration

#include "database.h"

 

STAND-IN DLLENTRY DBgetHorizont (

PROOT root,

int * isDefined

);