QGIS API Documentation  2.99.0-Master (5169e0d)
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
[legend]

Signals

void buildMessage (const QString &) const
 
void buildProgress (int, int) const
 

Public Member Functions

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

Constructor & Destructor Documentation

◆ ~QgsGraphDirector()

virtual QgsGraphDirector::~QgsGraphDirector ( )
inlinevirtual

Definition at line 45 of file qgsgraphdirector.h.

Member Function Documentation

◆ addStrategy()

void QgsGraphDirector::addStrategy ( QgsNetworkStrategy prop)
inline

Add optimization strategy.

Definition at line 65 of file qgsgraphdirector.h.

◆ buildMessage

void QgsGraphDirector::buildMessage ( const QString &  ) const
signal

◆ buildProgress

void QgsGraphDirector::buildProgress ( int  ,
int   
) const
signal

◆ makeGraph()

virtual void QgsGraphDirector::makeGraph ( QgsGraphBuilderInterface builder,
const QVector< QgsPoint > &  additionalPoints,
QVector< QgsPoint > &  snappedPoints 
) 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
Note
if snappedPoints[i] == QgsPoint(0.0,0.0) then snapping failed.

Reimplemented in QgsVectorLayerDirector.

Definition at line 55 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 74 of file qgsgraphdirector.h.


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