QGIS API Documentation  2.99.0-Master (08c2e66)
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
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

virtual QgsGraphDirector::~QgsGraphDirector ( )

Definition at line 45 of file qgsgraphdirector.h.

Member Function Documentation

void QgsGraphDirector::addStrategy ( QgsNetworkStrategy prop)

Add optimization strategy.

Definition at line 65 of file qgsgraphdirector.h.

void QgsGraphDirector::buildMessage ( const QString &  ) const
void QgsGraphDirector::buildProgress ( int  ,
) const
virtual void QgsGraphDirector::makeGraph ( QgsGraphBuilderInterface builder,
const QVector< QgsPoint > &  additionalPoints,
QVector< QgsPoint > &  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] == QgsPoint(0.0,0.0) then snapping failed.

Reimplemented in QgsVectorLayerDirector.

Definition at line 55 of file qgsgraphdirector.h.

virtual QString QgsGraphDirector::name ( ) const
pure virtual

Returns director name.

Implemented in QgsVectorLayerDirector.

Member Data Documentation

QList<QgsNetworkStrategy*> QgsGraphDirector::mStrategies

Definition at line 74 of file qgsgraphdirector.h.

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