marble
GeoGraphicsScene.cpp
Go to the documentation of this file.
43 GeoGraphicsScene::GeoGraphicsScene( QObject* parent ): QObject( parent ), d( new GeoGraphicsScenePrivate() )
64 QList< GeoGraphicsItem* > GeoGraphicsScene::items( const GeoDataLatLonBox &box, int zoomLevel ) const
152 const TileId key = TileId::fromCoordinates( GeoDataCoordinates(west, north, 0), zoomLevel ); // same as GeoDataCoordinates(east, south, 0), see above
155 QList< GeoGraphicsItem* >::iterator position = qLowerBound( tileList.begin(), tileList.end(), item, zValueLessThan );
160 void GeoGraphicsScenePrivate::addItems( const TileId &tileId, QList<GeoGraphicsItem *> &result, int maxZoomLevel ) const
void setBottom(int y)
void setNorth(const qreal north, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
Definition: GeoDataLatLonBox.cpp:101
void boundaries(qreal &north, qreal &south, qreal &east, qreal &west, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Definition: GeoDataLatLonBox.cpp:198
void removeItem(const GeoDataFeature *feature)
Remove all concerned items from the GeoGraphicsScene Removes all items which are associated with obje...
Definition: GeoGraphicsScene.cpp:119
int minZoomLevel() const
Returns the minim zoom level on which item will be active.
Definition: GeoGraphicsItem.cpp:107
void getCoords(int *x1, int *y1, int *x2, int *y2) const
QRect coords(int const level) const
Definition: TileCoordsPyramid.cpp:82
Definition: GeoGraphicsItem.h:30
const GeoDataFeature * feature() const
Returns the placemark for that item.
Definition: GeoGraphicsItem.cpp:62
void setSouth(const qreal south, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
Definition: GeoDataLatLonBox.cpp:122
void setWest(const qreal west, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
Definition: GeoDataLatLonBox.cpp:164
bool zValueLessThan(GeoGraphicsItem *i1, GeoGraphicsItem *i2)
Definition: GeoGraphicsScene.cpp:28
virtual const GeoDataLatLonAltBox & latLonAltBox() const
Returns the bounding box covered by the item.
Definition: GeoGraphicsItem.cpp:67
T value(int i) const
qreal north(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the northern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:93
qreal east(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the eastern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:135
Definition: TileCoordsPyramid.h:23
GeoGraphicsScene(QObject *parent=0)
Creates a new instance of GeoGraphicsScene.
Definition: GeoGraphicsScene.cpp:43
void setTop(int y)
int removeAll(const T &value)
iterator end()
QList< GeoGraphicsItem * > items(const GeoDataLatLonBox &box, int maxZoomLevel) const
Get the list of items in the specified Box.
Definition: GeoGraphicsScene.cpp:64
void eraseAll()
Get all items in the GeoGraphicsScene Returns all items in the GeoGraphicsScene.
Definition: GeoGraphicsScene.cpp:53
bool contains(const T &value) const
void clear()
Remove all items from the GeoGraphicsScene Removes all items from the GeoGraphicsScene.
Definition: GeoGraphicsScene.cpp:134
void setRight(int x)
qreal west(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the western boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:156
Definition: TileId.h:27
void insert(int i, const T &value)
static TileId fromCoordinates(const GeoDataCoordinates &coords, int popularity)
Definition: TileId.cpp:62
qreal south(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the southern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:114
void setBottomLevelCoords(QRect const &coords)
Definition: TileCoordsPyramid.cpp:77
const_iterator constBegin() const
void addItem(GeoGraphicsItem *item)
Add an item to the GeoGraphicsScene Adds the item item to the GeoGraphicsScene.
Definition: GeoGraphicsScene.cpp:139
void setLeft(int x)
iterator begin()
A class that defines a 2D bounding box for geographic data.
Definition: GeoDataLatLonBox.h:51
void setEast(const qreal east, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
Definition: GeoDataLatLonBox.cpp:143
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 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:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.