DK11 for Delphi | GisShortestPath.TGIS_LinkCostEvent | Enums | Classes | Prototypes
Event for the link cost calculation.
// Delphi type TGIS_LinkCostEvent = procedure ( _sender : TObject; _shape : TGIS_ShapeArc; var _cost : Double; var _revcost : Double ) of object;
// C++ Builder typedef void (_closure *TGIS_LinkCostEvent)( TObject* _sender, TGIS_ShapeArc* _shape, double &_cost, double &_revcost );
Name | Type | Description |
---|---|---|
_sender | TObject | sender object |
_shape | TGIS_ShapeArc | shape related to the event |
_cost | Double | forward cost of the link (natural, established by node order); provide -1 to block the link in this direction |
_revcost | Double | reverse cost of the link; provide -1 to block the link in this direction |