QGIS API Documentation  2.99.0-Master (23ddace)
Signals | 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


void buildMessage (const QString &) const
 Emitted to report information about graph building. More...
void buildProgress (int, int) const
 Emitted to report graph building progress. More...

Public Member Functions

virtual ~QgsGraphDirector ()
void addStrategy (QgsNetworkStrategy *prop)
 Add optimization strategy. More...
virtual void makeGraph (QgsGraphBuilderInterface *builder, const QVector< QgsPointXY > &additionalPoints, QVector< QgsPointXY > &snappedPoints) 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 42 of file qgsgraphdirector.h.

Constructor & Destructor Documentation

◆ ~QgsGraphDirector()

virtual QgsGraphDirector::~QgsGraphDirector ( )

Definition at line 64 of file qgsgraphdirector.h.

Member Function Documentation

◆ addStrategy()

void QgsGraphDirector::addStrategy ( QgsNetworkStrategy prop)

Add optimization strategy.

Definition at line 84 of file qgsgraphdirector.h.

◆ buildMessage

void QgsGraphDirector::buildMessage ( const QString &  ) const

Emitted to report information about graph building.

◆ buildProgress

void QgsGraphDirector::buildProgress ( int  ,
) const

Emitted to report graph building progress.

◆ makeGraph()

virtual void QgsGraphDirector::makeGraph ( QgsGraphBuilderInterface builder,
const QVector< QgsPointXY > &  additionalPoints,
QVector< QgsPointXY > &  snappedPoints 
) const

Make a graph using QgsGraphBuilder.

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

Reimplemented in QgsVectorLayerDirector.

Definition at line 74 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

Definition at line 93 of file qgsgraphdirector.h.

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