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);
265void PlacemarkLayer::renderDebug(GeoPainter *painter, ViewportParams *viewport, const QVector<VisiblePlacemark *> &placemarks) const
274 Placemarks const hidden = Placemarks(visiblePlacemarks.constBegin(), visiblePlacemarks.constEnd())
297 QPoint position = placemark->symbolRect().bottomLeft().toPoint() + QPoint(0, qRound(0.8 * height));
This file contains the headers for AbstractProjection.
This file contains the headers for ViewportParams.
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:169
A painter that allows to draw geometric primitives on the map.
Definition GeoPainter.h:89
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
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< 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< VisiblePlacemark * > generateLayout(const ViewportParams *viewport, int tileLevel)
Definition PlacemarkLayout.cpp:351
QVector< const GeoDataFeature * > whichPlacemarkAt(const QPoint &pos)
Returns a list of model indexes that are at position pos.
Definition PlacemarkLayout.cpp:203
A public class that controls what is visible in the viewport of a Marble map.
Definition ViewportParams.h:42
A class which represents the visible place marks on a map.
Definition VisiblePlacemark.h:36
const QPointF & symbolPosition() const
Returns the position of the place mark symbol on the map.
Definition VisiblePlacemark.cpp:74
const QPixmap & labelPixmap()
Returns the pixmap of the place mark name label.
Definition VisiblePlacemark.cpp:119
const QString & symbolId() const
Returns the id for the place mark symbol.
Definition VisiblePlacemark.cpp:56
const GeoDataPlacemark * placemark() const
Returns the index of the place mark model which is associated with this visible place mark.
Definition VisiblePlacemark.cpp:40
const QPixmap & symbolPixmap() const
Returns the pixmap of the place mark symbol.
Definition VisiblePlacemark.cpp:45
const QRectF & labelRect() const
Returns the area covered by the place mark name label on the map.
Definition VisiblePlacemark.cpp:143
QStringView level(QStringView ifopt)
const QList< QKeySequence > & end()
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
int height() const const
iterator begin()
iterator end()
iterator find(const Key &key)
iterator insert(const Key &key, const T &value)
const_iterator constBegin() const const
const_iterator constEnd() const const
T qobject_cast(QObject *object)
PixmapFragment create(const QPointF &pos, const QRectF &sourceRect, qreal scaleX, qreal scaleY, qreal rotation, qreal opacity)
void drawPixmap(const QPoint &point, const QPixmap &pixmap)
void drawPixmapFragments(const PixmapFragment *fragments, int fragmentCount, const QPixmap &pixmap, PixmapFragmentHints hints)
QFontMetrics fontMetrics() const const
void restore()
void save()
void setFont(const QFont &font)
bool isNull() const const
QRect rect() const const
QSize size() const const
QPoint toPoint() const const
QPoint center() const const
QRect toRect() const const
NoBrush
red
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
T * data()
qsizetype size() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:17 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:17 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.