QGIS API Documentation  2.99.0-Master (08ee180)
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 ()
 Destructor. More...
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 34 of file qgsgraphdirector.h.

Constructor & Destructor Documentation

§ ~QgsGraphDirector()

virtual QgsGraphDirector::~QgsGraphDirector ( )


Definition at line 44 of file qgsgraphdirector.h.

Member Function Documentation

§ addStrategy()

void QgsGraphDirector::addStrategy ( QgsNetworkStrategy prop)

Add optimization strategy.

Definition at line 64 of file qgsgraphdirector.h.

§ buildMessage

void QgsGraphDirector::buildMessage ( const QString &  ) const

§ buildProgress

void QgsGraphDirector::buildProgress ( int  ,
) const

§ makeGraph()

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 54 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 73 of file qgsgraphdirector.h.

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