marble
PopupLayer.cpp
Go to the documentation of this file.
125 sx = viewport.radius() < viewport.width() ? 0.5 * (viewport.width() + viewport.radius()) : 0.75 * viewport.width();
133 void PopupLayer::setCoordinates( const GeoDataCoordinates &coordinates , Qt::Alignment alignment )
virtual bool eventFilter(QObject *, QEvent *)
Definition: PopupLayer.cpp:84
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
void setBackgroundColor(const QColor &color)
Sets background color of the header.
Definition: PopupLayer.cpp:149
void repaintNeeded()
qreal latitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the latitude of the GeoDataCoordinates object use the unit parameter to switch between Radi...
Definition: GeoDataCoordinates.cpp:751
typedef Alignment
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:104
void setContent(const QString &html, const QUrl &baseUrl=QUrl())
Sets content of the browser.
Definition: PopupLayer.cpp:144
PopupLayer(MarbleWidget *widget, QObject *parent=0)
Definition: PopupLayer.cpp:55
void setWidth(qreal width)
bool render(GeoPainter *painter, ViewportParams *viewport, const QString &, GeoSceneLayer *)
Renders the content provided by the layer on the viewport.
Definition: PopupLayer.cpp:73
bool screenCoordinates(const qreal lon, const qreal lat, qreal &x, qreal &y) const
Get the screen coordinates corresponding to geographical coordinates in the map.
Definition: ViewportParams.cpp:357
QStringList renderPosition() const
Preferred level in the layer stack for the rendering.
Definition: PopupLayer.cpp:68
Definition: RenderState.h:22
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
qreal longitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the longitude of the GeoDataCoordinates object use the unit parameter to switch between Rad...
Definition: GeoDataCoordinates.cpp:739
void setLatitude(qreal lat, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
set the longitude in a GeoDataCoordinates object
Definition: GeoDataCoordinates.cpp:699
This file contains the headers for ViewportParams.
void setLongitude(qreal lon, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
set the longitude in a GeoDataCoordinates object
Definition: GeoDataCoordinates.cpp:679
This file contains the headers for MarbleWidget.
void setCoordinates(const GeoDataCoordinates &coordinates, Qt::Alignment alignment)
Sets coordinates.
Definition: PopupLayer.cpp:133
Wraps a Marble::MarbleWidget, providing access to important properties and methods.
Definition: MarbleDeclarativeWidget.h:50
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setHeight(qreal height)
bool isValid() const
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.