2017-05-01 12:44:45 +03:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/analysis/network/qgsgraphbuilder.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-02 13:49:43 +06:00
|
|
|
|
|
|
|
class QgsGraphBuilder : QgsGraphBuilderInterface
|
|
|
|
{
|
2017-05-01 12:44:45 +03:00
|
|
|
%Docstring
|
|
|
|
This class used for making the QgsGraph object
|
2011-06-02 13:49:43 +06:00
|
|
|
%End
|
|
|
|
|
2017-05-01 12:44:45 +03:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsgraphbuilder.h"
|
|
|
|
%End
|
2011-06-02 13:49:43 +06:00
|
|
|
public:
|
2017-05-01 12:44:45 +03:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsGraphBuilder( const QgsCoordinateReferenceSystem &crs, bool otfEnabled = true, double topologyTolerance = 0.0, const QString &ellipsoidID = "WGS84" );
|
2017-05-01 12:44:45 +03:00
|
|
|
%Docstring
|
|
|
|
Default constructor
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2011-06-02 13:49:43 +06:00
|
|
|
~QgsGraphBuilder();
|
|
|
|
|
2017-06-01 12:18:43 +02:00
|
|
|
virtual void addVertex( int id, const QgsPointXY &pt );
|
2017-05-01 12:44:45 +03:00
|
|
|
%Docstring
|
|
|
|
MANDATORY BUILDER PROPERTY DECLARATION
|
|
|
|
%End
|
2011-06-02 13:49:43 +06:00
|
|
|
|
2017-06-01 12:18:43 +02:00
|
|
|
virtual void addEdge( int pt1id, const QgsPointXY &pt1, int pt2id, const QgsPointXY &pt2, const QVector< QVariant > &prop );
|
2011-06-02 13:49:43 +06:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsGraph *graph() /Factory/;
|
2017-05-01 12:44:45 +03:00
|
|
|
%Docstring
|
|
|
|
Returns generated QgsGraph
|
|
|
|
:rtype: QgsGraph
|
|
|
|
%End
|
|
|
|
|
2011-06-02 13:49:43 +06:00
|
|
|
};
|
2017-05-01 12:44:45 +03:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/analysis/network/qgsgraphbuilder.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|