libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::QmlRoutingProfile Class Reference

Routing profile. More...

#include <QmlRoutingProfile.h>

Inheritance diagram for osmscout::QmlRoutingProfile:

Public Types

enum  QmlVehicle : uint8_t { FootVehicle = Vehicle::vehicleFoot , BicycleVehicle = Vehicle::vehicleBicycle , CarVehicle = Vehicle::vehicleCar }

Signals

void update ()

Public Member Functions

bool getJunctionPenalty () const
double getMaxPenalty () const
double getMaxSpeed () const
double getPenaltyDifferentType () const
double getPenaltySameType () const
QmlVehicle getQmlVehicle () const
QVariantMap getSpeedTable () const
Vehicle getVehicle () const
RoutingProfileRef MakeInstance (TypeConfigRef typeConfig) const
QmlRoutingProfile & operator= (const QmlRoutingProfile &other)
 Q_ENUM (QmlVehicle)
 QmlRoutingProfile (const QmlRoutingProfile &other)
Q_INVOKABLE QmlRoutingProfile (QObject *parent=nullptr)
 QmlRoutingProfile (Vehicle vehicle)
void setJunctionPenalty (bool)
void setMaxPenalty (double)
void setMaxSpeed (double)
void setPenaltyDifferentType (double)
void setPenaltySameType (double)
void setSpeedTable (const QVariantMap &)
void setVehicle (QmlVehicle vehicle)
 ~QmlRoutingProfile () override=default

Properties

bool applyJunctionPenalty =true
double maxPenalty
double maxSpeed =160
double penaltyDifferentType
double penaltySameType
QVariantMap speedTable
QmlVehicle vehicle =QmlVehicle::CarVehicle

Detailed Description

Routing profile.

Member Enumeration Documentation

◆ QmlVehicle

Enumerator
FootVehicle 
BicycleVehicle 
CarVehicle 

Constructor & Destructor Documentation

◆ QmlRoutingProfile() [1/3]

osmscout::QmlRoutingProfile::QmlRoutingProfile ( QObject * parent = nullptr)
explicit

◆ QmlRoutingProfile() [2/3]

osmscout::QmlRoutingProfile::QmlRoutingProfile ( Vehicle vehicle)
explicit

References vehicle.

◆ ~QmlRoutingProfile()

◆ QmlRoutingProfile() [3/3]

osmscout::QmlRoutingProfile::QmlRoutingProfile ( const QmlRoutingProfile & other)

References operator=(), and QmlRoutingProfile().

Member Function Documentation

◆ getJunctionPenalty()

bool osmscout::QmlRoutingProfile::getJunctionPenalty ( ) const

References applyJunctionPenalty.

Referenced by ~QmlRoutingProfile().

◆ getMaxPenalty()

double osmscout::QmlRoutingProfile::getMaxPenalty ( ) const

References maxPenalty.

Referenced by ~QmlRoutingProfile().

◆ getMaxSpeed()

double osmscout::QmlRoutingProfile::getMaxSpeed ( ) const

References maxSpeed.

Referenced by ~QmlRoutingProfile().

◆ getPenaltyDifferentType()

double osmscout::QmlRoutingProfile::getPenaltyDifferentType ( ) const

References penaltyDifferentType.

Referenced by ~QmlRoutingProfile().

◆ getPenaltySameType()

double osmscout::QmlRoutingProfile::getPenaltySameType ( ) const

References penaltySameType.

Referenced by ~QmlRoutingProfile().

◆ getQmlVehicle()

QmlRoutingProfile::QmlVehicle osmscout::QmlRoutingProfile::getQmlVehicle ( ) const

References vehicle.

Referenced by ~QmlRoutingProfile().

◆ getSpeedTable()

QVariantMap osmscout::QmlRoutingProfile::getSpeedTable ( ) const

References speedTable.

Referenced by ~QmlRoutingProfile().

◆ getVehicle()

Vehicle osmscout::QmlRoutingProfile::getVehicle ( ) const

References vehicle.

Referenced by ~QmlRoutingProfile().

◆ MakeInstance()

RoutingProfileRef osmscout::QmlRoutingProfile::MakeInstance ( TypeConfigRef typeConfig) const

◆ operator=()

◆ Q_ENUM()

osmscout::QmlRoutingProfile::Q_ENUM ( QmlVehicle )

◆ setJunctionPenalty()

void osmscout::QmlRoutingProfile::setJunctionPenalty ( bool b)

References applyJunctionPenalty, and update().

Referenced by ~QmlRoutingProfile().

◆ setMaxPenalty()

void osmscout::QmlRoutingProfile::setMaxPenalty ( double d)

References maxPenalty, and update().

Referenced by ~QmlRoutingProfile().

◆ setMaxSpeed()

void osmscout::QmlRoutingProfile::setMaxSpeed ( double d)

References maxSpeed, and update().

Referenced by ~QmlRoutingProfile().

◆ setPenaltyDifferentType()

void osmscout::QmlRoutingProfile::setPenaltyDifferentType ( double d)

◆ setPenaltySameType()

void osmscout::QmlRoutingProfile::setPenaltySameType ( double d)

◆ setSpeedTable()

void osmscout::QmlRoutingProfile::setSpeedTable ( const QVariantMap & table)

References osmscout::SolidGrade, and speedTable.

Referenced by ~QmlRoutingProfile().

◆ setVehicle()

void osmscout::QmlRoutingProfile::setVehicle ( QmlVehicle vehicle)

References vehicle.

Referenced by ~QmlRoutingProfile().

◆ update

void osmscout::QmlRoutingProfile::update ( )
signal

Property Documentation

◆ applyJunctionPenalty

bool osmscout::QmlRoutingProfile::applyJunctionPenalty =true
readwrite

◆ maxPenalty

double osmscout::QmlRoutingProfile::maxPenalty
readwrite

◆ maxSpeed

double osmscout::QmlRoutingProfile::maxSpeed =160
readwrite

◆ penaltyDifferentType

double osmscout::QmlRoutingProfile::penaltyDifferentType
readwrite

◆ penaltySameType

double osmscout::QmlRoutingProfile::penaltySameType
readwrite

◆ speedTable

QVariantMap osmscout::QmlRoutingProfile::speedTable
readwrite

◆ vehicle


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