Skip to content

OSMController

#include <osmcontroller.h>

Inherits from QObject

Public Types

Name
enum class Status { Null, Loading, Ready}

Public Slots

Name
void setMapSource(const QString & mapSource)

Public Signals

Name
void statusChanged()
void centerPointChanged()
void mapSourceChanged()
void scaleChanged()

Public Functions

Name
OSMController(QObject * parent =nullptr)
~OSMController() override
Status status() const
QVector2D centerPoint() const
QVector2D locationForNode(osmium::object_id_type nodeRef) const
QString mapSource() const
OSMAreaModel * areaModel() const
float scale() const
const std::unordered_map< osmium::object_id_type, std::unique_ptr< OSMNode > > & nodes() const
const std::vector< std::unique_ptr< OSMWay > > & ways() const
const std::vector< std::unique_ptr< OSMArea > > & areas() const

Public Properties

Name
QVector2D centerPoint
QString mapSource
float scale
OSMAreaModel * areaModel
Status status

Public Types Documentation

enum Status

Enumerator Value Description
Null
Loading
Ready

Public Slots Documentation

slot setMapSource

1
2
3
void setMapSource(
    const QString & mapSource
)

Public Signals Documentation

signal statusChanged

1
void statusChanged()

signal centerPointChanged

1
void centerPointChanged()

signal mapSourceChanged

1
void mapSourceChanged()

signal scaleChanged

1
void scaleChanged()

Public Functions Documentation

function OSMController

1
2
3
explicit OSMController(
    QObject * parent =nullptr
)

function ~OSMController

1
~OSMController() override

function status

1
Status status() const

function centerPoint

1
QVector2D centerPoint() const

function locationForNode

1
2
3
QVector2D locationForNode(
    osmium::object_id_type nodeRef
) const

function mapSource

1
QString mapSource() const

function areaModel

1
OSMAreaModel * areaModel() const

function scale

1
float scale() const

function nodes

1
const std::unordered_map< osmium::object_id_type, std::unique_ptr< OSMNode > > & nodes() const

function ways

1
const std::vector< std::unique_ptr< OSMWay > > & ways() const

function areas

1
const std::vector< std::unique_ptr< OSMArea > > & areas() const

Public Property Documentation

property centerPoint

1
QVector2D centerPoint;

property mapSource

1
QString mapSource;

property scale

1
float scale;

property areaModel

1
OSMAreaModel * areaModel;

property status

1
Status status;

Updated on 2023-07-03 at 11:02:08 +0000