2017-05-01 12:44:45 +03:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/analysis/network/qgsvectorlayerdirector.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-21 16:33:34 +02:00
|
|
|
class QgsVectorLayerDirector : QgsGraphDirector
|
2011-06-02 19:02:20 +06:00
|
|
|
{
|
2017-05-01 12:44:45 +03:00
|
|
|
%Docstring
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
Determine making the graph from vector line layer
|
2011-06-02 19:02:20 +06:00
|
|
|
%End
|
|
|
|
|
2017-05-01 12:44:45 +03:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsvectorlayerdirector.h"
|
|
|
|
%End
|
2011-06-02 19:02:20 +06:00
|
|
|
public:
|
2017-05-01 12:44:45 +03:00
|
|
|
|
2016-11-21 11:29:02 +02:00
|
|
|
enum Direction
|
2016-11-19 16:56:51 +02:00
|
|
|
{
|
2017-05-01 12:44:45 +03:00
|
|
|
DirectionForward,
|
|
|
|
DirectionBackward,
|
|
|
|
DirectionBoth,
|
2016-11-19 16:56:51 +02:00
|
|
|
};
|
|
|
|
|
2017-07-16 14:04:02 +03:00
|
|
|
QgsVectorLayerDirector( QgsFeatureSource *source,
|
2016-11-21 16:33:34 +02:00
|
|
|
int directionFieldId,
|
2017-05-01 12:44:45 +03:00
|
|
|
const QString &directDirectionValue,
|
|
|
|
const QString &reverseDirectionValue,
|
|
|
|
const QString &bothDirectionValue,
|
2016-11-21 16:33:34 +02:00
|
|
|
const Direction defaultDirection
|
|
|
|
);
|
2017-05-01 12:44:45 +03:00
|
|
|
%Docstring
|
|
|
|
Default constructor
|
2017-07-16 14:04:02 +03:00
|
|
|
\param source feature source representing network
|
2017-05-01 12:44:45 +03:00
|
|
|
\param directionFieldId field containing direction value
|
|
|
|
\param directDirectionValue value for direct one-way road
|
|
|
|
\param reverseDirectionValue value for reversed one-way road
|
|
|
|
\param bothDirectionValue value for two-way (bidirectional) road
|
|
|
|
\param defaultDirection default direction. Will be used if corresponding
|
|
|
|
attribute value is not set or does not equal to the given values
|
|
|
|
%End
|
2011-06-02 19:02:20 +06:00
|
|
|
|
2016-11-21 16:33:34 +02:00
|
|
|
virtual ~QgsVectorLayerDirector();
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-01 12:44:45 +03: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
|
|
|
|
MANDATORY DIRECTOR PROPERTY DECLARATION
|
|
|
|
%End
|
|
|
|
|
|
|
|
virtual QString name() const;
|
|
|
|
|
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/qgsvectorlayerdirector.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|