QGIS/python/analysis/network/qgsgraphdirector.sip.in

72 lines
2.3 KiB
Plaintext
Raw Normal View History

/************************************************************************
* This file has been generated automatically from *
* *
* src/analysis/network/qgsgraphdirector.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
%ModuleHeaderCode
#include <qgsvectorlayerdirector.h>
2011-06-02 19:02:20 +06:00
%End
class QgsGraphDirector : QObject
{
%Docstring
Determine making the graph. QgsGraphBuilder and QgsGraphDirector implemented
2017-12-15 10:36:55 -04:00
using "builder" design patter.
%End
2011-06-02 19:02:20 +06:00
%TypeHeaderCode
#include "qgsgraphdirector.h"
2011-06-02 19:02:20 +06:00
%End
%ConvertToSubClassCode
if ( dynamic_cast< QgsVectorLayerDirector * >( sipCpp ) != NULL )
sipType = sipType_QgsVectorLayerDirector;
else
sipType = NULL;
2011-06-02 19:02:20 +06:00
%End
public:
virtual void makeGraph( QgsGraphBuilderInterface *builder,
const QVector< QgsPointXY > &additionalPoints,
QVector< QgsPointXY > &snappedPoints /Out/,
QgsFeedback *feedback = 0 ) const;
%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
.. note::
if snappedPoints[i] == QgsPointXY(0.0,0.0) then snapping failed.
%End
void addStrategy( QgsNetworkStrategy *prop /Transfer/ );
%Docstring
Add optimization strategy
%End
2011-06-02 19:02:20 +06:00
virtual QString name() const = 0;
%Docstring
Returns director name
%End
protected:
2011-06-02 19:02:20 +06: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 *
************************************************************************/