GeoGraphicsScene Class Reference
from PyKDE4.marble import *
Inherits: QObject
Namespace: Marble
Detailed Description
This is the home of all GeoGraphicsItems to be shown on the map.
Methods | |
| __init__ (self, QObject parent=0) | |
| addItem (self, Marble.GeoGraphicsItem item) | |
| clear (self) | |
| eraseAll (self) | |
| [Marble.GeoGraphicsItem] | items (self, Marble.GeoDataLatLonBox box, int maxZoomLevel) |
| removeItem (self, Marble.GeoDataFeature feature) | |
Method Documentation
| __init__ | ( | self, | ||
| QObject | parent=0 | |||
| ) |
Creates a new instance of GeoGraphicsScene
- Parameters:
-
parent the QObject parent of the Scene
| addItem | ( | self, | ||
| Marble.GeoGraphicsItem | item | |||
| ) |
Add an item to the GeoGraphicsScene Adds the item item to the GeoGraphicsScene
| clear | ( | self ) |
Remove all items from the GeoGraphicsScene Removes all items from the GeoGraphicsScene
| eraseAll | ( | self ) |
Get all items in the GeoGraphicsScene Returns all items in the GeoGraphicsScene. The items will be returned in no specific order.
- Returns:
- The list of all GeoGraphicsItems
| [Marble.GeoGraphicsItem] items | ( | self, | ||
| Marble.GeoDataLatLonBox | box, | |||
| int | maxZoomLevel | |||
| ) |
Get the list of items in the specified Box
- Parameters:
-
box The box around the items. maxZoomLevel The max zoom level of tiling
- Returns:
- The list of items in the specified box in no specific order.
| removeItem | ( | self, | ||
| Marble.GeoDataFeature | feature | |||
| ) |
Remove all concerned items from the GeoGraphicsScene Removes all items which are associated with object from the GeoGraphicsScene
KDE 4.9 PyKDE API Reference