marble
PostalCodeModel.cpp
Go to the documentation of this file.
55 double const radius = qMin<double>( 30.0, box.height() * marbleModel()->planet()->radius() * METER2KM );
QList< AbstractDataPluginItem * > items(const ViewportParams *viewport, qint32 number=10)
Get the items on the viewport Returns the currently downloaded images in the viewport.
Definition: AbstractDataPluginModel.cpp:274
qreal height(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the height of the latitude interval.
Definition: GeoDataLatLonBox.cpp:255
void setTarget(const QString &target)
Definition: AbstractDataPluginItem.cpp:66
bool itemExists(const QString &id) const
Testing the existence of the item id in the list.
Definition: AbstractDataPluginModel.cpp:563
This file contains the headers for MarbleModel.
void setId(const QString &id)
Definition: AbstractDataPluginItem.cpp:86
QScriptValue evaluate(const QString &program, const QString &fileName, int lineNumber)
An abstract data model (not based on QAbstractModel) for a AbstractDataPlugin.
Definition: AbstractDataPluginModel.h:45
const MarbleModel * marbleModel() const
Definition: AbstractDataPluginModel.cpp:269
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
const Planet * planet() const
Returns the planet object for the current map.
Definition: MarbleModel.cpp:644
void parseFile(const QByteArray &file)
Parses the file which getAdditionalItems downloads and prepares the data for usage.
Definition: PostalCodeModel.cpp:77
void downloadDescriptionFile(const QUrl &url)
Download the description file from the url.
Definition: AbstractDataPluginModel.cpp:392
Definition: PostalCodeItem.h:21
QString number(int n, int base)
QString fromUtf8(const char *str, int size)
bool isEmpty() const
QString trimmed() const
QScriptValue property(const QString &name, const ResolveFlags &mode) const
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
virtual GeoDataCoordinates center() const
returns the center of this box
Definition: GeoDataLatLonAltBox.cpp:151
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
void setCoordinate(const GeoDataCoordinates &coordinates)
Definition: BillboardGraphicsItem.cpp:98
void setToolTip(const QString &toolTip)
Set the tool tip for the item.
Definition: AbstractDataPluginItem.cpp:76
bool isArray() const
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
void addItemsToList(const QList< AbstractDataPluginItem * > &items)
Adds the items to the list of initialized items.
Definition: AbstractDataPluginModel.cpp:408
void getAdditionalItems(const GeoDataLatLonAltBox &box, qint32 number=10)
Generates the download url for the description file from the web service depending on the box surroun...
Definition: PostalCodeModel.cpp:46
PostalCodeModel(const MarbleModel *marbleModel, QObject *parent=0)
Definition: PostalCodeModel.cpp:38
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.