1
1
/* **************************************************************************
2
- qgsspeedstrategy .h
2
+ qgsnetworkspeedstrategy .h
3
3
--------------------------------------
4
4
Date : 2011-04-01
5
5
Copyright : (C) 2010 by Yakushev Sergey
13
13
* *
14
14
***************************************************************************/
15
15
16
- #ifndef QGSSPEEDSTRATEGY_H
17
- #define QGSSPEEDSTRATEGY_H
16
+ #ifndef QGSNETWORKSPEEDSTRATEGY_H
17
+ #define QGSNETWORKSPEEDSTRATEGY_H
18
18
19
- #include < qgsstrategy .h>
19
+ #include < qgsnetworkstrategy .h>
20
20
21
21
/* * \ingroup analysis
22
22
* \class QgsSpeedStrategy
23
23
* \note added in QGIS 3.0
24
24
* \brief Strategy for caclucating edge cost based on travel time. Should be
25
25
* used for finding fastest path between two points.
26
26
*/
27
- class ANALYSIS_EXPORT QgsSpeedStrategy : public QgsStrategy
27
+ class ANALYSIS_EXPORT QgsNetworkSpeedStrategy : public QgsNetworkStrategy
28
28
{
29
29
public:
30
30
31
31
/* *
32
32
* Default constructor
33
33
*/
34
- QgsSpeedStrategy ( int attributeId, double defaultValue, double toMetricFactor );
34
+ QgsNetworkSpeedStrategy ( int attributeId, double defaultValue, double toMetricFactor );
35
35
36
36
// ! Returns edge cost
37
37
QVariant cost ( double distance, const QgsFeature& f ) const override ;
@@ -49,4 +49,4 @@ class ANALYSIS_EXPORT QgsSpeedStrategy : public QgsStrategy
49
49
50
50
};
51
51
52
- #endif // QGSSPEEDSTRATEGY_H
52
+ #endif // QGSNETWORKSPEEDSTRATEGY_H
0 commit comments