Marble
PlacemarkLayer.cpp
53bool PlacemarkLayer::render(GeoPainter *geoPainter, ViewportParams *viewport, const QString &renderPos, GeoSceneLayer *layer)
78 QHash<QString, QString>::const_iterator tagIter = mark->placemark()->osmData().findTag(QStringLiteral("level"));
105 QPainter::PixmapFragment pixmapFragment = QPainter::PixmapFragment::create(QPointF(symbolPos + symbolRect.center()), QRectF(symbolRect));
130 QPainter::PixmapFragment pixmapFragment = QPainter::PixmapFragment::create(QPointF(symbolPos + symbolRect.center()), QRectF(symbolRect));
162 QColor((10 * (int)(idStr[0].toLatin1())) % 255, (10 * (int)(idStr[1].toLatin1())) % 255, (10 * (int)(idStr[2].toLatin1())) % 255);
173 painter->drawPixmapFragments(fragment.fragments.data(), fragment.fragments.size(), fragment.pixmap);
259void PlacemarkLayer::renderDebug(GeoPainter *painter, ViewportParams *viewport, const QList<VisiblePlacemark *> &placemarks) const
269 Placemarks(visiblePlacemarks.constBegin(), visiblePlacemarks.constEnd()).subtract(Placemarks(placemarks.constBegin(), placemarks.constEnd()));
291 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:135
OsmPlacemarkData & osmData()
Quick, safe accessor to the placemark's OsmPlacemarkData stored within it's ExtendedData.
Definition GeoDataPlacemark.cpp:161
A painter that allows to draw geometric primitives on the map.
Definition GeoPainter.h:86
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:274
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:871
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:148
QList< const GeoDataFeature * > whichPlacemarkAt(const QPoint &pos)
Returns a list of model indexes that are at position pos.
Definition PlacemarkLayout.cpp:171
QList< VisiblePlacemark * > generateLayout(const ViewportParams *viewport, int tileLevel)
Definition PlacemarkLayout.cpp:320
A public class that controls what is visible in the viewport of a Marble map.
Definition ViewportParams.h:41
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:73
const QPixmap & labelPixmap()
Returns the pixmap of the place mark name label.
Definition VisiblePlacemark.cpp:118
const QString & symbolId() const
Returns the id for the place mark symbol.
Definition VisiblePlacemark.cpp:55
const GeoDataPlacemark * placemark() const
Returns the index of the place mark model which is associated with this visible place mark.
Definition VisiblePlacemark.cpp:39
const QPixmap & symbolPixmap() const
Returns the pixmap of the place mark symbol.
Definition VisiblePlacemark.cpp:44
const QRectF & labelRect() const
Returns the area covered by the place mark name label on the map.
Definition VisiblePlacemark.cpp:141
QStringView level(QStringView ifopt)
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
Q_EMITQ_EMIT
PixmapFragment create(const QPointF &pos, const QRectF &sourceRect, qreal scaleX, qreal scaleY, qreal rotation, qreal opacity)
bool begin(QPaintDevice *device)
void drawPixmap(const QPoint &point, const QPixmap &pixmap)
void drawPixmapFragments(const PixmapFragment *fragments, int fragmentCount, const QPixmap &pixmap, PixmapFragmentHints hints)
bool end()
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
QString & fill(QChar ch, qsizetype size)
qsizetype length() const const
QString & remove(QChar ch, Qt::CaseSensitivity cs)
QString section(QChar sep, qsizetype start, qsizetype end, SectionFlags flags) 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 Fri Dec 20 2024 11:52:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:52:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.