User Tools

Site Tools


api:dk11:delphi:gisshortestpath.tgis_nodeheuristiccostevent_tobject_tgis_networknode_tgis_networknode_double

Table of Contents

TGIS_NodeHeuristicCostEvent prototype

DK11 for Delphi | GisShortestPath.TGIS_NodeHeuristicCostEvent | Enums | Classes | Prototypes

Event for the heuristic cost calculation.

Syntax

// 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
);

Parameters

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
2017/09/04 11:17

Page Tools