2011-06-02 19:02:20 +06:00
|
|
|
/**
|
|
|
|
* \ingroup networkanalysis
|
|
|
|
* \class QgsLineVectorLayerDirector
|
|
|
|
* \brief Determine making the graph from vector line layer
|
|
|
|
*/
|
|
|
|
class QgsLineVectorLayerDirector : QgsGraphDirector
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgslinevectorlayerdirector.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
/**
|
2011-06-03 11:51:53 +06:00
|
|
|
* @param myLayer source vector layer
|
2011-06-02 19:02:20 +06:00
|
|
|
* @param directionFieldId feield contain road direction value
|
|
|
|
* @param directDirectionValue value for one-way road
|
|
|
|
* @param reverseDirectionValue value for reverse one-way road
|
|
|
|
* @param bothDirectionValue value for road
|
|
|
|
* @param defaultDirection 1 - direct direction, 2 - reverse direction, 3 - both direction
|
|
|
|
*/
|
2011-06-03 11:51:53 +06:00
|
|
|
QgsLineVectorLayerDirector( QgsVectorLayer* myLayer,
|
2011-06-02 19:02:20 +06:00
|
|
|
int directionFieldId,
|
|
|
|
const QString& directDirectionValue,
|
|
|
|
const QString& reverseDirectionValue,
|
|
|
|
const QString& bothDirectionValue,
|
|
|
|
int defaultDirection
|
|
|
|
);
|
|
|
|
|
|
|
|
//! Destructor
|
|
|
|
virtual ~QgsLineVectorLayerDirector();
|
|
|
|
|
|
|
|
/*
|
|
|
|
* MANDATORY DIRECTOR PROPERTY DECLARATION
|
|
|
|
*/
|
|
|
|
void makeGraph( QgsGraphBuilderInterface *builder,
|
|
|
|
const QVector< QgsPoint >& additionalPoints,
|
|
|
|
QVector< QgsPoint>& tiedPoints /Out/ ) const;
|
|
|
|
|
|
|
|
QString name() const;
|
|
|
|
};
|
|
|
|
|