libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
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
 
QmlRoutingProfileoperator= (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

◆ ~QmlRoutingProfile()

osmscout::QmlRoutingProfile::~QmlRoutingProfile ( )
overridedefault

◆ QmlRoutingProfile() [3/3]

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

References operator=().

Member Function Documentation

◆ getJunctionPenalty()

bool osmscout::QmlRoutingProfile::getJunctionPenalty ( ) const

References applyJunctionPenalty.

◆ getMaxPenalty()

double osmscout::QmlRoutingProfile::getMaxPenalty ( ) const

References maxPenalty.

◆ getMaxSpeed()

double osmscout::QmlRoutingProfile::getMaxSpeed ( ) const

References maxSpeed.

◆ getPenaltyDifferentType()

double osmscout::QmlRoutingProfile::getPenaltyDifferentType ( ) const

References penaltyDifferentType.

◆ getPenaltySameType()

double osmscout::QmlRoutingProfile::getPenaltySameType ( ) const

References penaltySameType.

◆ getQmlVehicle()

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

References vehicle.

◆ getSpeedTable()

QVariantMap osmscout::QmlRoutingProfile::getSpeedTable ( ) const

References speedTable.

◆ getVehicle()

Vehicle osmscout::QmlRoutingProfile::getVehicle ( ) const

References vehicle.

◆ MakeInstance()

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

◆ operator=()

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

◆ Q_ENUM()

osmscout::QmlRoutingProfile::Q_ENUM ( QmlVehicle  )

◆ setJunctionPenalty()

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

References applyJunctionPenalty, and update().

◆ setMaxPenalty()

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

References maxPenalty, and update().

◆ setMaxSpeed()

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

References maxSpeed, and update().

◆ 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.

◆ setVehicle()

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

References vehicle.

◆ 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

QmlVehicle osmscout::QmlRoutingProfile::vehicle =QmlVehicle::CarVehicle
readwrite

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