QGIS API Documentation  2.99.0-Master (2270603)
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 39 of file qgsarcproperter.h.

§ ~QgsArcProperter()

virtual QgsArcProperter::~QgsArcProperter ( )

Definition at line 41 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 52 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 47 of file qgsarcproperter.h.

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