2017-05-01 12:44:45 +03:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/analysis/network/qgsnetworkdistancestrategy.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-19 15:41:39 +02:00
|
|
|
class QgsNetworkDistanceStrategy : QgsNetworkStrategy
|
2016-11-17 17:30:10 +02:00
|
|
|
{
|
2017-05-01 12:44:45 +03:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-05-01 12:44:45 +03:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
Strategy for caclulating edge cost based on its length. Should be
|
2017-12-15 10:36:55 -04:00
|
|
|
used for finding shortest path between two points.
|
2016-11-17 17:30:10 +02:00
|
|
|
%End
|
|
|
|
|
2017-05-01 12:44:45 +03:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsnetworkdistancestrategy.h"
|
|
|
|
%End
|
2016-11-17 17:30:10 +02:00
|
|
|
public:
|
2017-05-01 12:44:45 +03:00
|
|
|
virtual QVariant cost( double distance, const QgsFeature & ) const;
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2016-11-17 17:30:10 +02:00
|
|
|
};
|
2017-05-01 12:44:45 +03:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/analysis/network/qgsnetworkdistancestrategy.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|