QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | List of all members
QgsArcProperter Class Reference

QgsArcProperter is a strategy pattern. More...

#include <qgsarcproperter.h>

Inheritance diagram for QgsArcProperter:
Inheritance graph

Public Member Functions

 QgsArcProperter ()
 default constructor More...
virtual ~QgsArcProperter ()
virtual QVariant property (double distance, const QgsFeature &f) const
 calculate and return adge property More...
virtual QgsAttributeList requiredAttributes () const
 QgsGraphDirector call this method for fetching attribute from source layer. More...

Detailed Description

QgsArcProperter is a strategy pattern.

You can use it for customize arc property. For example look at QgsDistanceArcProperter or src/plugins/roadgraph/speedproperter.h

Definition at line 32 of file qgsarcproperter.h.

Constructor & Destructor Documentation

◆ QgsArcProperter()

QgsArcProperter::QgsArcProperter ( )

default constructor

Definition at line 38 of file qgsarcproperter.h.

◆ ~QgsArcProperter()

virtual QgsArcProperter::~QgsArcProperter ( )

Definition at line 40 of file qgsarcproperter.h.

Member Function Documentation

◆ property()

virtual QVariant QgsArcProperter::property ( double  distance,
const QgsFeature f 
) const

calculate and return adge property

Reimplemented in QgsDistanceArcProperter.

Definition at line 51 of file qgsarcproperter.h.

◆ requiredAttributes()

virtual QgsAttributeList QgsArcProperter::requiredAttributes ( ) const

QgsGraphDirector call this method for fetching attribute from source layer.

required attributes list

Definition at line 46 of file qgsarcproperter.h.

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