Marble
AbstractDataPlugin.h
37 Q_PROPERTY(bool favoriteItemsOnly READ isFavoriteItemsOnly WRITE setFavoriteItemsOnly NOTIFY favoriteItemsOnlyChanged)
40 Q_PROPERTY(int numberOfItems READ numberOfItems WRITE setNumberOfItems NOTIFY changedNumberOfItems)
68 bool render(GeoPainter *painter, ViewportParams *viewport, const QString &renderPos = QLatin1String("NONE"), GeoSceneLayer *layer = nullptr) override;
An abstract data model (not based on QAbstractModel) for a AbstractDataPlugin.
Definition AbstractDataPluginModel.h:40
QList< AbstractDataPluginItem * > whichItemAt(const QPoint &curpos)
This function returns all items at the position curpos.
Definition AbstractDataPlugin.cpp:134
QObject * favoritesModel
Definition AbstractDataPlugin.h:39
void setFavoriteItemsOnly(bool favoriteOnly)
Convenience method to set the favorite item state on the current model.
Definition AbstractDataPlugin.cpp:148
QStringList backendTypes() const override
Returns the name(s) of the backend that the plugin can render.
Definition AbstractDataPlugin.cpp:62
bool render(GeoPainter *painter, ViewportParams *viewport, const QString &renderPos=QLatin1String("NONE"), GeoSceneLayer *layer=nullptr) override
Renders the content provided by the plugin on the viewport.
Definition AbstractDataPlugin.cpp:77
AbstractDataPluginModel * model()
Definition AbstractDataPlugin.cpp:95
void setNumberOfItems(quint32 number)
Set the number of items to be shown at the same time.
Definition AbstractDataPlugin.cpp:125
RenderType renderType() const override
Function for returning the type of plugin this is for.
Definition AbstractDataPlugin.cpp:143
QStringList renderPosition() const override
Preferred level in the layer stack for the rendering.
Definition AbstractDataPlugin.cpp:72
QString renderPolicy() const override
Return how the plugin settings should be used.
Definition AbstractDataPlugin.cpp:67
void setModel(AbstractDataPluginModel *model)
Set the model of the plugin.
Definition AbstractDataPlugin.cpp:105
A painter that allows to draw geometric primitives on the map.
Definition GeoPainter.h:86
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition MarbleModel.h:84
A public class that controls what is visible in the viewport of a Marble map.
Definition ViewportParams.h:41
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:08 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:08 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.