DK11 for Delphi | GisShortestPath.TGIS_NodeHeuristicCostEvent | Enums | Classes | Prototypes
Event for the heuristic cost calculation.
// Delphi type TGIS_NodeHeuristicCostEvent = procedure ( _sender : TObject; _from : TGIS_NetworkNode; _to : TGIS_NetworkNode; var _cost : Double ) of object;
// C++ Builder typedef void (_closure *TGIS_NodeHeuristicCostEvent)( TObject* _sender, TGIS_NetworkNode* _from, TGIS_NetworkNode* _to, double &_cost );
Name | Type | Description |
---|---|---|
_sender | TObject | sender object |
_from | TGIS_NetworkNode | first node for cost calculation |
_to | TGIS_NetworkNode | second node for cost calculation |
_cost | Double | calculated average cost for straight distance calculations |