libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::VehiclePosition Class Reference

#include <VehiclePosition.h>

+ Inheritance diagram for osmscout::VehiclePosition:

Public Member Functions

std::optional< BearinggetBearing () const
 
double getBearingRadians () const
 
GeoCoord getCoord () const
 
double getLat () const
 
double getLon () const
 
std::optional< GeoCoordgetNextStepCoord () const
 
PositionAgent::PositionState getState () const
 
VehiclePositionoperator= (const VehiclePosition &o)
 
 VehiclePosition (const Vehicle &vehicle, const PositionAgent::PositionState &state, const GeoCoord &coord, const std::optional< Bearing > &bearing, const std::optional< GeoCoord > &nextStepCoord, QObject *parent=nullptr)
 
 VehiclePosition (QObject *parent=nullptr)
 

Properties

double bearing
 
double lat
 
double lon
 

Detailed Description

Object aggregating estimated data about vehicle during navigation.

Constructor & Destructor Documentation

◆ VehiclePosition() [1/2]

osmscout::VehiclePosition::VehiclePosition ( QObject *  parent = nullptr)
inlineexplicit

◆ VehiclePosition() [2/2]

osmscout::VehiclePosition::VehiclePosition ( const Vehicle vehicle,
const PositionAgent::PositionState state,
const GeoCoord coord,
const std::optional< Bearing > &  bearing,
const std::optional< GeoCoord > &  nextStepCoord,
QObject *  parent = nullptr 
)
inline

Member Function Documentation

◆ getBearing()

std::optional<Bearing> osmscout::VehiclePosition::getBearing ( ) const
inline

◆ getBearingRadians()

double osmscout::VehiclePosition::getBearingRadians ( ) const
inline

◆ getCoord()

GeoCoord osmscout::VehiclePosition::getCoord ( ) const
inline

◆ getLat()

double osmscout::VehiclePosition::getLat ( ) const
inline

◆ getLon()

double osmscout::VehiclePosition::getLon ( ) const
inline

◆ getNextStepCoord()

std::optional<GeoCoord> osmscout::VehiclePosition::getNextStepCoord ( ) const
inline

◆ getState()

PositionAgent::PositionState osmscout::VehiclePosition::getState ( ) const
inline

◆ operator=()

VehiclePosition& osmscout::VehiclePosition::operator= ( const VehiclePosition o)
inline

References bearing.

Property Documentation

◆ bearing

double osmscout::VehiclePosition::bearing
read

Referenced by operator=().

◆ lat

double osmscout::VehiclePosition::lat
read

◆ lon

double osmscout::VehiclePosition::lon
read

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