QGIS API Documentation 3.29.0Master (006c3c0232)

Strategy for calculating edge cost based on its length. More...
#include <qgsnetworkdistancestrategy.h>
Public Member Functions  
QVariant  cost (double distance, const QgsFeature &) const override 
Returns edge cost. More...  
Public Member Functions inherited from QgsNetworkStrategy  
QgsNetworkStrategy ()=default  
Default constructor. More...  
virtual  ~QgsNetworkStrategy ()=default 
virtual QVariant  cost (double distance, const QgsFeature &f) const =0 
Returns edge cost. More...  
virtual QSet< int >  requiredAttributes () const 
Returns a list of the source layer attributes needed for cost calculation. More...  
Strategy for calculating edge cost based on its length.
Should be used for finding shortest path between two points.
Definition at line 29 of file qgsnetworkdistancestrategy.h.

overridevirtual 
Returns edge cost.
Implements QgsNetworkStrategy.
Definition at line 18 of file qgsnetworkdistancestrategy.cpp.