QGIS API Documentation  2.7.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 
45 
49  virtual QVariant property( double distance, const QgsFeature &f ) const
50  {
51  Q_UNUSED( distance );
52  Q_UNUSED( f );
53  return QVariant();
54  }
55 };
56 #endif //QGSEDGEPROPERTYH
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Definition: qgsfeature.h:113
QList< int > QgsAttributeList
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