marble
PlacemarkTextAnnotation.cpp
Go to the documentation of this file.
44 painter->drawPixmap( placemark()->coordinate(), QPixmap( MarbleDirs::path( "bitmaps/annotation.png" ) ) );
48 bool visible = viewport->currentProjection()->screenCoordinates( placemark()->coordinate(), viewport, x, y, hidden );
PlacemarkTextAnnotation(GeoDataPlacemark *placemark)
Definition: PlacemarkTextAnnotation.cpp:29
static QString path(const QString &relativePath)
Definition: MarbleDirs.cpp:53
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
Definition: GeoWidgetBubble.h:24
void setRegions(const QList< QRegion > ®ions)
Definition: SceneGraphicsItem.cpp:76
This file contains the headers for AbstractProjection.
void moveTo(const QPoint &screenPos)
Definition: GeoWidgetBubble.cpp:87
Definition: SceneGraphicsItem.h:28
const AbstractProjection * currentProjection() const
Definition: ViewportParams.cpp:134
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
bool screenCoordinates(const qreal lon, const qreal lat, const ViewportParams *viewport, qreal &x, qreal &y) const
Get the screen coordinates corresponding to geographical coordinates in the map.
Definition: AbstractProjection.cpp:93
virtual void paint(GeoPainter *painter, const ViewportParams *viewport)
Paints the item using the given GeoPainter.
Definition: PlacemarkTextAnnotation.cpp:40
This file contains the headers for ViewportParams.
GeoDataPlacemark * placemark()
Definition: SceneGraphicsItem.cpp:36
virtual bool mousePressEvent(QMouseEvent *event)
Definition: PlacemarkTextAnnotation.cpp:62
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
void drawPixmap(const GeoDataCoordinates ¢erPosition, const QPixmap &pixmap)
Draws a pixmap at the given position. The pixmap is placed with its center located at the given cente...
Definition: GeoPainter.cpp:452
~PlacemarkTextAnnotation()
Definition: PlacemarkTextAnnotation.cpp:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.