2017-05-01 12:44:45 +03:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/analysis/network/qgsgraphdirector.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-05-01 18:32:37 +03:00
|
|
|
%ModuleHeaderCode
|
2016-11-21 16:33:34 +02:00
|
|
|
#include <qgsvectorlayerdirector.h>
|
2011-06-02 19:02:20 +06:00
|
|
|
%End
|
|
|
|
|
|
|
|
class QgsGraphDirector : QObject
|
|
|
|
{
|
2017-05-01 12:44:45 +03:00
|
|
|
%Docstring
|
|
|
|
Determine making the graph. QgsGraphBuilder and QgsGraphDirector implemented
|
2017-12-15 10:36:55 -04:00
|
|
|
using "builder" design patter.
|
2017-05-01 12:44:45 +03:00
|
|
|
%End
|
|
|
|
|
2011-06-02 19:02:20 +06:00
|
|
|
%TypeHeaderCode
|
2017-05-01 12:44:45 +03:00
|
|
|
#include "qgsgraphdirector.h"
|
2011-06-02 19:02:20 +06:00
|
|
|
%End
|
|
|
|
%ConvertToSubClassCode
|
2017-05-01 12:44:45 +03:00
|
|
|
if ( dynamic_cast< QgsVectorLayerDirector * >( sipCpp ) != NULL )
|
|
|
|
sipType = sipType_QgsVectorLayerDirector;
|
|
|
|
else
|
|
|
|
sipType = NULL;
|
2011-06-02 19:02:20 +06:00
|
|
|
%End
|
|
|
|
public:
|
2017-05-01 12:44:45 +03:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
virtual void makeGraph( QgsGraphBuilderInterface *builder,
|
2017-06-01 12:18:43 +02:00
|
|
|
const QVector< QgsPointXY > &additionalPoints,
|
2017-07-16 14:26:37 +03:00
|
|
|
QVector< QgsPointXY > &snappedPoints /Out/,
|
2017-07-16 15:36:48 +03:00
|
|
|
QgsFeedback *feedback = 0 ) const;
|
2017-05-01 12:44:45 +03:00
|
|
|
%Docstring
|
2017-12-19 11:43:52 -04:00
|
|
|
Make a graph using :py:class:`QgsGraphBuilder`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
|
|
|
:param builder: the graph builder
|
|
|
|
:param additionalPoints: list of points that should be snapped to the graph
|
|
|
|
:param snappedPoints: list of snapped points
|
|
|
|
:param feedback: feedback object for reporting progress
|
2017-05-01 12:44:45 +03:00
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
2017-06-01 12:18:43 +02:00
|
|
|
if snappedPoints[i] == QgsPointXY(0.0,0.0) then snapping failed.
|
2017-05-01 12:44:45 +03:00
|
|
|
%End
|
2013-01-12 23:48:58 +01:00
|
|
|
|
2017-05-01 12:44:45 +03:00
|
|
|
void addStrategy( QgsNetworkStrategy *prop /Transfer/ );
|
|
|
|
%Docstring
|
|
|
|
Add optimization strategy
|
|
|
|
%End
|
2013-01-12 23:48:58 +01:00
|
|
|
|
2011-06-02 19:02:20 +06:00
|
|
|
virtual QString name() const = 0;
|
2017-05-01 12:44:45 +03:00
|
|
|
%Docstring
|
|
|
|
Returns director name
|
|
|
|
%End
|
|
|
|
|
|
|
|
protected:
|
2011-06-02 19:02:20 +06:00
|
|
|
};
|
|
|
|
|
2017-05-01 12:44:45 +03:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/analysis/network/qgsgraphdirector.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|