QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
Public Member Functions | Protected Attributes | List of all members
QgsGraphDirector Class Referenceabstract

Determine making the graph. More...

#include <qgsgraphdirector.h>

Inheritance diagram for QgsGraphDirector:
Inheritance graph
[legend]

Public Member Functions

 ~QgsGraphDirector () override
 
void addStrategy (QgsNetworkStrategy *prop)
 Add optimization strategy. More...
 
virtual void makeGraph (QgsGraphBuilderInterface *builder, const QVector< QgsPointXY > &additionalPoints, QVector< QgsPointXY > &snappedPoints, QgsFeedback *feedback=nullptr) const
 Make a graph using QgsGraphBuilder. More...
 
virtual QString name () const =0
 Returns director name. More...
 

Protected Attributes

QList< QgsNetworkStrategy * > mStrategies
 

Detailed Description

Determine making the graph.

QgsGraphBuilder and QgsGraphDirector implemented using "builder" design patter.

Definition at line 43 of file qgsgraphdirector.h.

Constructor & Destructor Documentation

◆ ~QgsGraphDirector()

QgsGraphDirector::~QgsGraphDirector ( )
inlineoverride

Definition at line 59 of file qgsgraphdirector.h.

Member Function Documentation

◆ addStrategy()

void QgsGraphDirector::addStrategy ( QgsNetworkStrategy prop)
inline

Add optimization strategy.

Definition at line 85 of file qgsgraphdirector.h.

◆ makeGraph()

virtual void QgsGraphDirector::makeGraph ( QgsGraphBuilderInterface builder,
const QVector< QgsPointXY > &  additionalPoints,
QVector< QgsPointXY > &  snappedPoints,
QgsFeedback feedback = nullptr 
) const
inlinevirtual

Make a graph using QgsGraphBuilder.

Parameters
builderthe graph builder
additionalPointslist of points that should be snapped to the graph
snappedPointslist of snapped points
feedbackfeedback object for reporting progress
Note
if snappedPoints[i] == QgsPointXY(0.0,0.0) then snapping failed.

Reimplemented in QgsVectorLayerDirector.

Definition at line 73 of file qgsgraphdirector.h.

◆ name()

virtual QString QgsGraphDirector::name ( ) const
pure virtual

Returns director name.

Implemented in QgsVectorLayerDirector.

Member Data Documentation

◆ mStrategies

QList<QgsNetworkStrategy *> QgsGraphDirector::mStrategies
protected

Definition at line 94 of file qgsgraphdirector.h.


The documentation for this class was generated from the following file: