User Tools

Site Tools


Table of Contents

TGIS_LinkCostEvent prototype

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

Event for the link cost calculation.


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

Page Tools