QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
src
analysis
network
qgsnetworkdistancestrategy.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsnetworkdistancestrategy.h
3
--------------------------------------
4
Date : 2011-04-01
5
Copyright : (C) 2010 by Yakushev Sergey
6
Email : YakushevS <at> list.ru
7
****************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSNETWORKDISTANCESTRATEGY_H
17
#define QGSNETWORKDISTANCESTRATEGY_H
18
19
#include "
qgsnetworkstrategy.h
"
20
#include "qgis_analysis.h"
21
29
class
ANALYSIS_EXPORT
QgsNetworkDistanceStrategy
:
public
QgsNetworkStrategy
30
{
31
public
:
32
QVariant
cost
(
double
distance,
const
QgsFeature
& )
const override
;
33
};
34
35
#endif // QGSNETWORKDISTANCESTRATEGY_H
QgsNetworkStrategy::cost
virtual QVariant cost(double distance, const QgsFeature &f) const =0
Returns edge cost.
qgsnetworkstrategy.h
QgsFeature
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Definition:
qgsfeature.h:56
QgsNetworkDistanceStrategy
Strategy for calculating edge cost based on its length.
Definition:
qgsnetworkdistancestrategy.h:30
QgsNetworkStrategy
QgsNetworkStrategy defines strategy used for calculation of the edge cost.
Definition:
qgsnetworkstrategy.h:43
Generated on Sat Oct 24 2020 17:43:09 for QGIS API Documentation by
1.8.20