marble
PlacemarkTextAnnotation.cpp
Go to the documentation of this file.
45 painter->drawPixmap( placemark()->coordinate(), QPixmap( MarbleDirs::path( "bitmaps/annotation.png" ) ) );
49 bool visible = viewport->currentProjection()->screenCoordinates( placemark()->coordinate(), viewport, x, y, hidden );
virtual bool mouseReleaseEvent(QMouseEvent *event)
Definition: PlacemarkTextAnnotation.cpp:81
PlacemarkTextAnnotation(GeoDataPlacemark *placemark)
Definition: PlacemarkTextAnnotation.cpp:31
static QString path(const QString &relativePath)
Definition: MarbleDirs.cpp:59
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)
A setter for the m_regions private member.
Definition: SceneGraphicsItem.cpp:36
This file contains the headers for AbstractProjection.
void moveTo(const QPoint &screenPos)
Definition: GeoWidgetBubble.cpp:84
virtual bool mouseMoveEvent(QMouseEvent *event)
Definition: PlacemarkTextAnnotation.cpp:75
void append(const T &value)
This is the base class for all scene graphics included within the annotate plugin.
Definition: SceneGraphicsItem.h:34
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:118
virtual void paint(GeoPainter *painter, const ViewportParams *viewport)
Paints the item using the given GeoPainter.
Definition: PlacemarkTextAnnotation.cpp:42
const char * SceneGraphicPlacemark
Definition: SceneGraphicsTypes.cpp:22
This file contains the headers for ViewportParams.
const GeoDataPlacemark * placemark() const
SceneGraphicItem class, when called from one of its derived classes' constructors, takes as a parameter a pointer to the placemark of the graphic element.
Definition: SceneGraphicsItem.cpp:41
virtual bool mousePressEvent(QMouseEvent *event)
Pure virtual functions which handle the mouse events, all of which are re-implemented in every SceneG...
Definition: PlacemarkTextAnnotation.cpp:68
virtual const char * graphicType() const
Provides information for downcasting a SceneGraphicsItem.
Definition: PlacemarkTextAnnotation.cpp:63
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:37
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.