|
libosmscout 0.1
|
Qt abstraction for various objects on map, used for search and routing. More...
#include <OverlayObject.h>
Inheritance diagram for osmscout::OverlayObject:Public Slots | |
| void | addPoint (double lat, double lon) |
| void | clear () |
Signals | |
| void | bboxChanged () |
Public Member Functions | |
| osmscout::GeoBox | boundingBox () const |
| LocationEntry * | getBBoxAsLocation () const |
| QString | getColor () const |
| std::vector< osmscout::GeoCoord > | getCoords () const |
| qint8 | getLayer () const |
| QString | getName () const |
| virtual osmscout::RefType | getObjectType () const |
| QString | getObjectTypeStr () const |
| std::vector< osmscout::Point > | getPoints () const |
| size_t | getSize () |
| QString | getTypeName () const |
| OverlayObject (const OverlayObject &o) | |
| OverlayObject (const std::vector< osmscout::Point > &nodes, QString typeName="_route", QObject *parent=Q_NULLPTR) | |
| OverlayObject (QObject *parent=Q_NULLPTR) | |
| void | setColor (const QString &c) |
| void | setColorValue (Color &c) |
| void | setLayer (qint8 l) |
| void | setName (const QString &n) |
| void | setTypeName (const QString &name) |
| ~OverlayObject () override | |
Protected Member Functions | |
| osmscout::GeoBox | boundingBoxInternal () const |
| std::vector< SegmentGeoBox > | segments () const |
| void | setupFeatures (const osmscout::TypeInfoRef &type, osmscout::FeatureValueBuffer &features) const |
Protected Attributes | |
| osmscout::GeoBox | box |
| std::optional< osmscout::Color > | colorValue |
| int8_t | layer {std::numeric_limits<int8_t>::max()} |
| QMutex | lock |
| std::vector< osmscout::Point > | nodes |
| std::vector< SegmentGeoBox > | segmentsBoxes |
| QString | typeName |
Properties | |
| LocationEntry * | boundingBox |
| QString | color |
| qint8 | layer |
| QString | name |
| QString | objectType |
| int | size |
| QString | type |
Qt abstraction for various objects on map, used for search and routing.
|
explicit |
|
explicit |
| osmscout::OverlayObject::OverlayObject | ( | const OverlayObject & | o | ) |
|
override |
|
slot |
References bboxChanged(), box, osmscout::GeoBox::Invalidate(), lock, nodes, and segmentsBoxes.
Referenced by osmscout::MapObjectInfoModel::createOverlayObject().
|
signal |
Referenced by addPoint(), and clear().
| osmscout::GeoBox osmscout::OverlayObject::boundingBox | ( | ) | const |
References boundingBoxInternal(), and lock.
|
protected |
References box, osmscout::GetBoundingBox(), osmscout::GeoBox::IsValid(), and nodes.
Referenced by boundingBox(), osmscout::OverlayArea::toArea(), and osmscout::OverlayWay::toWay().
|
slot |
References bboxChanged(), box, osmscout::GeoBox::Invalidate(), lock, and nodes.
| LocationEntry * osmscout::OverlayObject::getBBoxAsLocation | ( | ) | const |
References boundingBox, and osmscout::GeoBox::GetCenter().
|
inline |
| std::vector< osmscout::GeoCoord > osmscout::OverlayObject::getCoords | ( | ) | const |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in osmscout::OverlayArea, osmscout::OverlayWay, and osmscout::OverlayNode.
References osmscout::refNone.
Referenced by osmscout::MapWidget::addOverlayObject().
|
inline |
References osmscout::refArea, osmscout::refNode, and osmscout::refWay.
| std::vector< osmscout::Point > osmscout::OverlayObject::getPoints | ( | ) | const |
|
inline |
|
inline |
|
protected |
References osmscout::ComputeSegmentBoxes(), nodes, and segmentsBoxes.
Referenced by osmscout::OverlayArea::toArea(), and osmscout::OverlayWay::toWay().
| void osmscout::OverlayObject::setColor | ( | const QString & | c | ) |
| void osmscout::OverlayObject::setColorValue | ( | Color & | c | ) |
References color, colorValue, lock, and osmscout::Color::ToHexString().
|
inline |
|
inline |
References n.
|
inline |
|
protected |
References osmscout::FeatureValueBuffer::AllocateValue(), colorValue, layer, name, osmscout::ColorFeature::NAME, osmscout::LayerFeature::NAME, osmscout::NameFeature::NAME, osmscout::FeatureValueBuffer::SetType(), and type.
Referenced by osmscout::OverlayArea::toArea(), osmscout::OverlayNode::toNode(), and osmscout::OverlayWay::toWay().
|
mutableprotected |
Referenced by addPoint(), boundingBoxInternal(), and clear().
|
protected |
Referenced by OverlayObject(), setColor(), setColorValue(), and setupFeatures().
|
protected |
|
mutableprotected |
|
protected |
|
mutableprotected |
Referenced by addPoint(), and segments().
|
protected |
|
read |
Referenced by getBBoxAsLocation().
|
readwrite |
Referenced by OverlayObject(), setColor(), and setColorValue().
|
readwrite |
Referenced by OverlayObject(), and setupFeatures().
|
readwrite |
Referenced by OverlayObject(), and setupFeatures().
|
read |
|
read |
|
readwrite |