QGIS API Documentation  2.14.0-Essen
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 <qgslabel.h>
25 
32 class ANALYSIS_EXPORT QgsArcProperter
33 {
34  public:
39 
40  virtual ~QgsArcProperter() {}
41 
47 
51  virtual QVariant property( double distance, const QgsFeature &f ) const
52  {
53  Q_UNUSED( distance );
54  Q_UNUSED( f );
55  return QVariant();
56  }
57 };
58 #endif //QGSEDGEPROPERTYH
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Definition: qgsfeature.h:187
QList< int > QgsAttributeList
virtual ~QgsArcProperter()
virtual QgsAttributeList requiredAttributes() const
QgsGraphDirector call this method for fetching attribute from source layer.
QgsArcProperter()
default constructor
virtual QVariant property(double distance, const QgsFeature &f) const
calculate and return adge property