23#include "positioning/PositionInfo.h"
24#include "traffic/TrafficFactor_Abstract.h"
25#include "traffic/TrafficFactorData.h"
97 const QScopedPropertyUpdateGroup updateGroup;
115 const QScopedPropertyUpdateGroup updateGroup;
192 [[nodiscard]] QString
icon()
const {
return m_icon.value();}
198 [[nodiscard]] QBindable<QString>
bindableIcon()
const {
return &m_icon;}
265 QProperty<QGeoCoordinate> m_extrapolatedCoordinate;
266 QProperty<Units::Angle> m_extrapolatedTrueTrack;
267 QProperty<Units::Distance> m_uncertaintyRadius;
268 QProperty<QString> m_icon;
Q_INVOKABLE QDateTime timestamp() const
Timestamp.
bool isSameFactorAs(const TrafficFactorData &data) const
Check whether a data record refers to the same factor as *this.
void replaceBy(const TrafficFactorData &data)
Replace this object by a different traffic factor.
TrafficFactor_Abstract(QObject *parent=nullptr)
Default constructor.
void updateFrom(const TrafficFactorData &data)
Update this object with newer data for the same traffic factor.
Traffic factor whose precise position is known.
bool updateFrom(const TrafficFactorData_WithPosition &data)
Offer a data record to this object, for the same traffic factor.
QGeoCoordinate extrapolatedCoordinate
Extrapolated Coordinate.
QBindable< Units::Distance > bindableUncertaintyRadius() const
Getter method for property with the same name.
QBindable< Positioning::PositionInfo > bindablePositionInfo() const
Getter method for property with the same name.
QGeoCoordinate extrapolatedCoordinate() const
Getter method for property with the same name.
void positionInfoChanged()
Notifier signal.
QString icon
Suggested icon.
QBindable< QString > bindableIcon() const
Getter method for property with the same name.
Units::Distance uncertaintyRadius() const
Getter method for property with the same name.
Positioning::PositionInfo positionInfo
PositionInfo of the traffic.
void setPositionInfo(const Positioning::PositionInfo &newPositionInfo)
Setter function for property with the same name.
QString icon() const
Getter method for property with the same name.
QBindable< QGeoCoordinate > bindableExtrapolatedCoordinate() const
Getter method for property with the same name.
QBindable< Units::Angle > bindableExtrapolatedTrueTrack() const
Getter method for property with the same name.
void updateExtrapolatedData()
Update extrapolated data.
TrafficFactor_WithPosition(QObject *parent=nullptr)
Default constructor.
Positioning::PositionInfo positionInfo() const
Getter method for property with the same name.
Units::Angle extrapolatedTrueTrack() const
Getter method for property with the same name.
void replaceBy(const TrafficFactorData_WithPosition &data)
Replace this object by a different traffic factor.
Units::Distance uncertaintyRadius
Uncertainty radius.
Units::Angle extrapolatedTrueTrack
Extrapolated True Track.
Convenience class for angle computations.
Convenience class for distance computations.
Plain-data record of a traffic factor whose precise position is known.
TrafficFactorData data
Position-independent data.
Positioning::PositionInfo positionInfo
PositionInfo of the traffic.