Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/*************************************************************************** | ||
* Copyright (C) 2011 by Sergey Yakushev * | ||
* yakushevs <at >list.ru * | ||
* * | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
***************************************************************************/ | ||
|
||
//QGIS includes | ||
#include <qgsdistanceedgeproperter.h> | ||
|
||
QVariant QgsDistanceEdgeProperter::property( double distance, const QgsFeature& f ) const | ||
{ | ||
return QVariant( distance ); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/*************************************************************************** | ||
qgsedgeproperter.h | ||
-------------------------------------- | ||
Date : 2011-04-01 | ||
Copyright : (C) 2010 by Yakushev Sergey | ||
Email : YakushevS <at> list.ru | ||
**************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
#ifndef QGSEDGEDISTANCEPROPERTERH | ||
#define QGSEDGEDISTANCEPROPERTERH | ||
|
||
// QT4 includes | ||
#include <QVariant> | ||
|
||
// QGIS includes | ||
#include <qgsedgeproperter.h> | ||
|
||
class ANALYSIS_EXPORT QgsDistanceEdgeProperter : public QgsEdgeProperter | ||
{ | ||
public: | ||
virtual QVariant property( double distance, const QgsFeature& ) const; | ||
}; | ||
#endif //QGSEDGEDISTANCEPROPERTYH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters