Marble::AbstractDataPlugin
#include <AbstractDataPlugin.h>
Properties | |
bool | favoriteItemsOnly |
QObject * | favoritesModel |
int | numberOfItems |
Properties inherited from Marble::RenderPlugin | |
QString | description |
bool | enabled |
QString | name |
QString | nameId |
bool | userCheckable |
QString | version |
bool | visible |
Properties inherited from QObject | |
objectName | |
Signals | |
void | changedNumberOfItems (quint32 number) |
void | favoriteItemsOnlyChanged () |
void | favoritesModelChanged () |
Signals inherited from Marble::RenderPlugin | |
void | actionGroupsChanged () |
void | enabledChanged (bool enable) |
void | repaintNeeded (const QRegion &dirtyRegion=QRegion()) |
void | settingsChanged (const QString &nameId) |
void | userCheckableChanged (bool isUserCheckable) |
void | visibilityChanged (bool visible, const QString &nameId) |
Detailed Description
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.
Definition at line 33 of file AbstractDataPlugin.h.
Property Documentation
◆ favoriteItemsOnly
|
readwrite |
Definition at line 37 of file AbstractDataPlugin.h.
◆ favoritesModel
|
read |
Definition at line 39 of file AbstractDataPlugin.h.
◆ numberOfItems
|
readwrite |
Definition at line 40 of file AbstractDataPlugin.h.
Constructor & Destructor Documentation
◆ AbstractDataPlugin()
|
explicit |
Definition at line 44 of file AbstractDataPlugin.cpp.
◆ ~AbstractDataPlugin()
|
override |
Definition at line 51 of file AbstractDataPlugin.cpp.
Member Function Documentation
◆ backendTypes()
|
overridevirtual |
Returns the name(s) of the backend that the plugin can render.
Implements Marble::RenderPluginInterface.
Definition at line 61 of file AbstractDataPlugin.cpp.
◆ isFavoriteItemsOnly()
bool Marble::AbstractDataPlugin::isFavoriteItemsOnly | ( | ) | const |
Definition at line 158 of file AbstractDataPlugin.cpp.
◆ isInitialized()
|
overridevirtual |
Implements Marble::RenderPluginInterface.
Definition at line 56 of file AbstractDataPlugin.cpp.
◆ model() [1/2]
AbstractDataPluginModel * Marble::AbstractDataPlugin::model | ( | ) |
- Returns
- The model associated with the plugin.
Definition at line 95 of file AbstractDataPlugin.cpp.
◆ model() [2/2]
const AbstractDataPluginModel * Marble::AbstractDataPlugin::model | ( | ) | const |
Definition at line 100 of file AbstractDataPlugin.cpp.
◆ numberOfItems()
quint32 Marble::AbstractDataPlugin::numberOfItems | ( | ) | const |
- Returns
- The number of items to be shown at the same time.
Definition at line 122 of file AbstractDataPlugin.cpp.
◆ render()
|
override |
Renders the content provided by the plugin on the viewport.
- Returns
true
Returns whether the rendering has been successful
Definition at line 76 of file AbstractDataPlugin.cpp.
◆ renderPolicy()
|
overridevirtual |
Return how the plugin settings should be used.
Implements Marble::RenderPluginInterface.
Definition at line 66 of file AbstractDataPlugin.cpp.
◆ renderPosition()
|
override |
Preferred level in the layer stack for the rendering.
Definition at line 71 of file AbstractDataPlugin.cpp.
◆ renderType()
|
overridevirtual |
Function for returning the type of plugin this is for.
This affects where in the menu tree the action() is placed.
- Returns
- : The type of render plugin this is.
Reimplemented from Marble::RenderPlugin.
Definition at line 146 of file AbstractDataPlugin.cpp.
◆ setFavoriteItemsOnly()
void Marble::AbstractDataPlugin::setFavoriteItemsOnly | ( | bool | favoriteOnly | ) |
Convenience method to set the favorite item state on the current model.
Definition at line 151 of file AbstractDataPlugin.cpp.
◆ setModel()
void Marble::AbstractDataPlugin::setModel | ( | AbstractDataPluginModel * | model | ) |
Set the model of the plugin.
Definition at line 105 of file AbstractDataPlugin.cpp.
◆ setNumberOfItems()
void Marble::AbstractDataPlugin::setNumberOfItems | ( | quint32 | number | ) |
Set the number of items to be shown at the same time.
Definition at line 127 of file AbstractDataPlugin.cpp.
◆ whichItemAt()
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.
Definition at line 136 of file AbstractDataPlugin.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:18 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.