Marble
PlacemarkLayer.cpp
80 QHash<QString, QString>::const_iterator tagIter = mark->placemark()->osmData().findTag(QStringLiteral("level"));
107 QPainter::PixmapFragment pixmapFragment = QPainter::PixmapFragment::create(QPointF(symbolPos+symbolRect.center()),QRectF(symbolRect));
132 QPainter::PixmapFragment pixmapFragment = QPainter::PixmapFragment::create(QPointF(symbolPos+symbolRect.center()),QRectF(symbolRect));
179 painter->drawPixmapFragments(fragment.fragments.data(), fragment.fragments.size(), fragment.pixmap);
265 void PlacemarkLayer::renderDebug(GeoPainter *painter, ViewportParams *viewport, const QVector<VisiblePlacemark *> &placemarks) const
274 Placemarks const hidden = Placemarks(visiblePlacemarks.constBegin(), visiblePlacemarks.constEnd())
QRect rect() const const
const T value(const Key &key) const const
const QPixmap & symbolPixmap() const
Returns the pixmap of the place mark symbol.
Definition: VisiblePlacemark.cpp:45
QString section(QChar sep, int start, int end, QString::SectionFlags flags) const const
A class which represents the visible place marks on a map.
Definition: VisiblePlacemark.h:35
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
const QPixmap & labelPixmap()
Returns the pixmap of the place mark name label.
Definition: VisiblePlacemark.cpp:119
const QRectF & labelRect() const
Returns the area covered by the place mark name label on the map.
Definition: VisiblePlacemark.cpp:143
QRect toRect() const const
QHash::iterator begin()
QHash::iterator find(const Key &key)
QStringView level(QStringView ifopt)
QHash< QString, QString >::const_iterator findTag(const QString &key) const
tagValue returns a pointer to the tag that has key as key or the end iterator if there is no such tag
Definition: OsmPlacemarkData.cpp:142
QVector::const_iterator constEnd() const const
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QHash::iterator insert(const Key &key, const T &value)
PixmapFragment create(const QPointF &pos, const QRectF &sourceRect, qreal scaleX, qreal scaleY, qreal rotation, qreal opacity)
bool begin(QPaintDevice *device)
bool end()
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:41
const GeoDataPlacemark * placemark() const
Returns the index of the place mark model which is associated with this visible place mark.
Definition: VisiblePlacemark.cpp:40
int length() const const
void drawPixmapFragments(const QPainter::PixmapFragment *fragments, int fragmentCount, const QPixmap &pixmap, QPainter::PixmapFragmentHints hints)
QFontMetrics fontMetrics() const const
bool contains(const T &value) const const
QPoint center() const const
Binds a QML item to a specific geodetic location in screen coordinates.
Definition: AbstractDataPlugin.cpp:22
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:88
QString & remove(int position, int n)
const QString & symbolId() const
Returns the id for the place mark symbol.
Definition: VisiblePlacemark.cpp:56
bool isNull() const const
void drawText(const GeoDataCoordinates &position, const QString &text, qreal xOffset=0.0, qreal yOffset=0.0, qreal width=0.0, qreal height=0.0, const QTextOption &option=QTextOption())
Draws the given text at a given geographic position. The text is drawn starting at the given position...
Definition: GeoPainter.cpp:284
const QPointF & symbolPosition() const
Returns the position of the place mark symbol on the map.
Definition: VisiblePlacemark.cpp:74
virtual bool repeatableX() const
Returns whether the projection allows for wrapping in x direction (along the longitude scale).
Definition: AbstractProjection.cpp:118
OsmPlacemarkData & osmData()
Quick, safe accessor to the placemark's OsmPlacemarkData stored within it's ExtendedData.
Definition: GeoDataPlacemark.cpp:157
void setBrush(Qt::BrushStyle style)
QPoint toPoint() const const
void restore()
void save()
QVector::const_iterator constBegin() const const
void setFont(const QFont &font)
NoBrush
int height() const const
red
void drawRect(const GeoDataCoordinates ¢erPosition, qreal width, qreal height, bool isGeoProjected=false)
Draws a rectangle at the given position. The rectangle is placed with its center located at the given...
Definition: GeoPainter.cpp:927
QHash::iterator end()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:12:27 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:12:27 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.