2023-12-07 10:38:10 +01: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 *
|
2023-12-07 10:38:10 +01:00
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsNetworkSpeedStrategy : QgsNetworkStrategy
|
|
|
|
{
|
|
|
|
%Docstring(signature="appended")
|
|
|
|
Strategy for calculating edge cost based on travel time. Should be
|
|
|
|
used for finding fastest path between two points.
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsnetworkspeedstrategy.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
QgsNetworkSpeedStrategy( int attributeId, double defaultValue, double toMetricFactor );
|
|
|
|
%Docstring
|
|
|
|
Default constructor
|
|
|
|
%End
|
|
|
|
|
|
|
|
virtual QVariant cost( double distance, const QgsFeature &f ) const;
|
|
|
|
|
2024-12-04 08:36:11 +01:00
|
|
|
virtual QSet<int> requiredAttributes() const;
|
2023-12-07 10:38:10 +01: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 *
|
2023-12-07 10:38:10 +01:00
|
|
|
************************************************************************/
|