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

#include <libosmscout-client-qt/include/osmscoutclientqt/QmlRoutingProfile.h>

Inheritance diagram for osmscout::QmlRoutingProfile:
Collaboration 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

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

Properties

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

Detailed Description

Routing profile

Member Enumeration Documentation

◆ QmlVehicle

Enumerator
FootVehicle 
BicycleVehicle 
CarVehicle 

Constructor & Destructor Documentation

◆ QmlRoutingProfile() [1/3]

Q_INVOKABLE 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)

Member Function Documentation

◆ getJunctionPenalty()

bool osmscout::QmlRoutingProfile::getJunctionPenalty ( ) const

◆ getMaxPenalty()

double osmscout::QmlRoutingProfile::getMaxPenalty ( ) const

◆ getMaxSpeed()

double osmscout::QmlRoutingProfile::getMaxSpeed ( ) const

◆ getPenaltyDifferentType()

double osmscout::QmlRoutingProfile::getPenaltyDifferentType ( ) const

◆ getPenaltySameType()

double osmscout::QmlRoutingProfile::getPenaltySameType ( ) const

◆ getQmlVehicle()

QmlVehicle osmscout::QmlRoutingProfile::getQmlVehicle ( ) const

◆ getSpeedTable()

QVariantMap osmscout::QmlRoutingProfile::getSpeedTable ( ) const

◆ getVehicle()

Vehicle osmscout::QmlRoutingProfile::getVehicle ( ) const

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

◆ setMaxPenalty()

void osmscout::QmlRoutingProfile::setMaxPenalty ( double )

◆ setMaxSpeed()

void osmscout::QmlRoutingProfile::setMaxSpeed ( double )

◆ setPenaltyDifferentType()

void osmscout::QmlRoutingProfile::setPenaltyDifferentType ( double )

◆ setPenaltySameType()

void osmscout::QmlRoutingProfile::setPenaltySameType ( double )

◆ setSpeedTable()

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

◆ setVehicle()

void osmscout::QmlRoutingProfile::setVehicle ( QmlVehicle 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 file: