16 #ifndef QGSGRAPHDIRECTOR_H 17 #define QGSGRAPHDIRECTOR_H 27 #include "qgis_analysis.h" 48 if ( dynamic_cast< QgsVectorLayerDirector * >( sipCpp ) != NULL )
49 sipType = sipType_QgsVectorLayerDirector;
61 qDeleteAll( mStrategies );
74 const QVector< QgsPointXY > &additionalPoints,
75 QVector< QgsPointXY > &snappedPoints
SIP_OUT,
79 Q_UNUSED( additionalPoints );
80 Q_UNUSED( snappedPoints );
87 mStrategies.push_back( prop );
91 virtual QString name()
const = 0;
97 #endif // QGSGRAPHDIRECTOR_H ~QgsGraphDirector() override
QgsNetworkStrategy defines strategy used for calculation of the edge cost.
Determine interface for creating a graph.
Base class for feedback objects to be used for cancelation of something running in a worker thread...
virtual void makeGraph(QgsGraphBuilderInterface *builder, const QVector< QgsPointXY > &additionalPoints, QVector< QgsPointXY > &snappedPoints, QgsFeedback *feedback=nullptr) const
Make a graph using QgsGraphBuilder.
void addStrategy(QgsNetworkStrategy *prop)
Add optimization strategy.
QList< QgsNetworkStrategy * > mStrategies
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Determine making the graph.