2017-05-01 12:44:45 +03:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/analysis/network/qgsnetworkspeedstrategy.h *
|
|
|
|
* *
|
2024-08-11 07:55:04 +10:00
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
2017-05-01 12:44:45 +03:00
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-19 15:41:39 +02:00
|
|
|
class QgsNetworkSpeedStrategy : QgsNetworkStrategy
|
|
|
|
{
|
2021-03-22 21:13:52 +01:00
|
|
|
%Docstring(signature="appended")
|
2018-05-26 14:10:30 +10:00
|
|
|
Strategy for calculating edge cost based on travel time. Should be
|
2018-05-25 07:53:35 +10:00
|
|
|
used for finding fastest path between two points.
|
2016-11-19 15:41:39 +02:00
|
|
|
%End
|
|
|
|
|
2017-05-01 12:44:45 +03:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsnetworkspeedstrategy.h"
|
|
|
|
%End
|
2016-11-19 15:41:39 +02:00
|
|
|
public:
|
|
|
|
QgsNetworkSpeedStrategy( int attributeId, double defaultValue, double toMetricFactor );
|
2017-05-01 12:44:45 +03:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Default constructor
|
2017-05-01 12:44:45 +03:00
|
|
|
%End
|
|
|
|
|
|
|
|
virtual QVariant cost( double distance, const QgsFeature &f ) const;
|
|
|
|
|
2024-12-04 08:36:11 +01:00
|
|
|
virtual QSet<int> requiredAttributes() const;
|
2017-05-01 12:44:45 +03:00
|
|
|
|
2016-11-19 15:41:39 +02:00
|
|
|
|
|
|
|
};
|
2017-05-01 12:44:45 +03:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/analysis/network/qgsnetworkspeedstrategy.h *
|
|
|
|
* *
|
2024-08-11 07:55:04 +10:00
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
2017-05-01 12:44:45 +03:00
|
|
|
************************************************************************/
|