QGIS API Documentation  2.99.0-Master (2270603)
qgsarcproperter.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsedgeproperter.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 QGSEDGEPROPERTERH
17 #define QGSEDGEPROPERTERH
18 
19 // QT4 includes
20 #include <QVariant>
21 
22 // QGIS includes
23 #include <qgsfeature.h>
24 #include <qgsfeaturerequest.h>
25 
32 class ANALYSIS_EXPORT QgsArcProperter
33 {
34  public:
35 
40 
41  virtual ~QgsArcProperter() {}
42 
48 
52  virtual QVariant property( double distance, const QgsFeature &f ) const
53  {
54  Q_UNUSED( distance );
55  Q_UNUSED( f );
56  return QVariant();
57  }
58 };
59 #endif //QGSEDGEPROPERTYH
virtual QVariant property(double distance, const QgsFeature &f) const
calculate and return adge property
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Definition: qgsfeature.h:135
QList< int > QgsAttributeList
virtual ~QgsArcProperter()
QgsArcProperter is a strategy pattern.
QgsArcProperter()
default constructor
virtual QgsAttributeList requiredAttributes() const
QgsGraphDirector call this method for fetching attribute from source layer.