User Tools

Site Tools


api:dk11:delphi:gisshortestpath.tgis_linkdynamicevent_tobject_integer_double_double

Table of Contents

TGIS_LinkDynamicEvent prototype

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

Event for the dynamic link cost calculation.

Syntax

// Delphi
type
  TGIS_LinkDynamicEvent = procedure (
    _sender : TObject;
    _uid : Integer;
    var _cost : Double;
    var _revcost : Double
  ) of object;
// C++ Builder
typedef void (_closure *TGIS_LinkDynamicEvent)(
  TObject* _sender,
  int _uid,
  double &_cost,
  double &_revcost
);

Parameters

Name Type Description
_sender TObject sender object
_uid Integer uid of shape used to create this link
_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