AbstractDataPlugin Class Reference
from PyKDE4.marble import *
Inherits: Marble.RenderPlugin → QObject
Namespace: Marble.AbstractDataPlugin
Detailed Description
@short: An abstract class for plugins that show data that has a geo coordinate
This is the abstract class for plugins that show data on Marble map.
It takes care of painting all items it gets from the corresponding AbstractDataPluginModel
that has to be set on initialisation.
The user has to set the nameId as well as the number of items to fetch.
Additionally it should be useful to set standard values via setEnabled (often true)
and setVisible (often false) in the constructor of a subclass.
Method Documentation
Returns the name(s) of the backend that the plugin can render
changedNumberOfItems |
( |
self, |
|
|
|
long |
number |
|
) |
|
|
|
- Signal syntax:
QObject.connect(source, SIGNAL("changedNumberOfItems(quint32)"), target_slot)
- Abstract method:
- This method is abstract and can be overridden but not called directly.
Initialized the plugin and make it ready to be painted.
bool isInitialized |
( |
|
self ) |
|
- Returns:
- The model associated with the plugin.
- Returns:
- Returns the nameId of the item
long numberOfItems |
( |
|
self ) |
|
- Returns:
- The number of items to be shown at the same time.
Renders the content provided by the plugin on the viewport.
- Returns:
- true Returns whether the rendering has been successful
Return how the plugin settings should be used.
Preferred level in the layer stack for the rendering
Set the model of the plugin.
Set the name id of the plugin
setNumberOfItems |
( |
self, |
|
|
|
long |
number |
|
) |
|
|
|
Set the number of items to be shown at the same time.
[Marble::AbstractDataPluginIte] whichItemAt |
( |
self, |
|
|
|
QPoint |
curpos |
|
) |
|
|
|
This function returns all items at the position curpos. Depending on where they have
been painted the last time.
- Returns:
- The items at the given position.