16 #ifndef QGSNETWORKSTRATERGY_H 17 #define QGSNETWORKSTRATERGY_H 23 #include "qgis_analysis.h" 47 if ( dynamic_cast< QgsNetworkDistanceStrategy * >( sipCpp ) != NULL )
48 sipType = sipType_QgsNetworkDistanceStrategy;
49 else if ( dynamic_cast< QgsNetworkSpeedStrategy * >( sipCpp ) != NULL )
50 sipType = sipType_QgsNetworkSpeedStrategy;
74 virtual QVariant cost(
double distance,
const QgsFeature &f )
const = 0;
77 #endif // QGSNETWORKSTRATERGY_H QgsNetworkStrategy defines strategy used for calculation of the edge cost.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
virtual QSet< int > requiredAttributes() const
Returns a list of the source layer attributes needed for cost calculation.