Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
11 additions
and
0 deletions.
-
+11
−0
src/analysis/network/qgsspeedarcproperter.h
|
@@ -20,14 +20,25 @@ |
|
|
|
|
|
/** \ingroup analysis |
|
|
* \class QgsSpeedArcProperter |
|
|
* \note added in QGIS 3.0 |
|
|
* |
|
|
* \brief Used for calculating arc property taking into account travel time. |
|
|
*/ |
|
|
class ANALYSIS_EXPORT QgsSpeedArcProperter : public QgsArcProperter |
|
|
{ |
|
|
public: |
|
|
|
|
|
/** |
|
|
* Constructor for QgsSpeedArcProperter. |
|
|
*/ |
|
|
QgsSpeedArcProperter( int attributeId, double defaultValue, double toMetricFactor ); |
|
|
|
|
|
//! Returns caluclated edge property |
|
|
QVariant property( double distance, const QgsFeature& f ) const override; |
|
|
|
|
|
/** QgsGraphDirector will call this method for fetching attributes |
|
|
* needed to calculate arc properties from the source layer |
|
|
*/ |
|
|
QgsAttributeList requiredAttributes() const override; |
|
|
|
|
|
private: |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.