marble
AbstractDataPlugin.cpp
Go to the documentation of this file.
213 bool const visible = viewport->screenCoordinates( coordinates.longitude(), coordinates.latitude(), x, y );
217 // We don't have, but don't need it either. Shouldn't happen though as the model checks for it already.
245 // Previously visible but not anymore => needs to be deleted. Orphane list takes care of it later.
void setNumberOfItems(quint32 number)
Set the number of items to be shown at the same time.
Definition: AbstractDataPlugin.cpp:156
void setContextProperty(const QString &name, QObject *value)
void changedNumberOfItems(quint32 number)
void repaintNeeded(QRegion dirtyRegion=QRegion())
This signal is emitted if an update of the view is needed.
void setParentItem(QGraphicsItem *newParent)
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
void setContextObject(QObject *object)
This file contains the headers for MarbleModel.
QSizeF size() const
const T & at(int i) const
void save()
void setFavoriteItemsOnly(bool favoriteOnly)
Convenience method to set the favorite item state on the current model.
Definition: AbstractDataPlugin.cpp:189
An abstract data model (not based on QAbstractModel) for a AbstractDataPlugin.
Definition: AbstractDataPluginModel.h:45
QStringList renderPosition() const
Preferred level in the layer stack for the rendering.
Definition: AbstractDataPlugin.cpp:96
qreal latitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the latitude of the GeoDataCoordinates object use the unit parameter to switch between Radi...
Definition: GeoDataCoordinates.cpp:751
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
virtual RenderType renderType() const
Function for returning the type of plugin this is for.
Definition: AbstractDataPlugin.cpp:175
int size() const
const char * name() const
quint32 numberOfItems() const
bool isInitialized() const
Definition: AbstractDataPlugin.cpp:81
QVariant property(const char *name) const
QStringList backendTypes() const
Returns the name(s) of the backend that the plugin can render.
Definition: AbstractDataPlugin.cpp:86
bool screenCoordinates(const qreal lon, const qreal lat, qreal &x, qreal &y) const
Get the screen coordinates corresponding to geographical coordinates in the map.
Definition: ViewportParams.cpp:357
bool isFavoriteItemsOnly() const
Definition: AbstractDataPlugin.cpp:196
bool render(GeoPainter *painter, ViewportParams *viewport, const QString &renderPos="NONE", GeoSceneLayer *layer=0)
Renders the content provided by the plugin on the viewport.
Definition: AbstractDataPlugin.cpp:101
void setModel(AbstractDataPluginModel *model)
Set the model of the plugin.
Definition: AbstractDataPlugin.cpp:134
QList< AbstractDataPluginItem * > whichItemAt(const QPoint &curpos)
This function returns all items at the position curpos.
Definition: AbstractDataPlugin.cpp:165
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
void handleViewportChange(const ViewportParams *viewport)
Definition: AbstractDataPlugin.cpp:206
void setDelegate(QDeclarativeComponent *delegate, QGraphicsItem *parent)
Definition: AbstractDataPlugin.cpp:180
qreal longitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the longitude of the GeoDataCoordinates object use the unit parameter to switch between Rad...
Definition: GeoDataCoordinates.cpp:739
This file contains the headers for ViewportParams.
QObject * favoritesModel()
void favoritesModelChanged()
void restore()
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
void favoriteItemsOnlyChanged()
virtual QRectF boundingRect() const =0
virtual ~AbstractDataPlugin()
Definition: AbstractDataPlugin.cpp:76
GeoDataCoordinates coordinate() const
Definition: BillboardGraphicsItem.cpp:93
AbstractDataPlugin(const MarbleModel *marbleModel)
Definition: AbstractDataPlugin.cpp:69
void setX(qreal x)
void setY(qreal y)
QList< QByteArray > dynamicPropertyNames() const
TransformOrigin transformOrigin() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
QString renderPolicy() const
Return how the plugin settings should be used.
Definition: AbstractDataPlugin.cpp:91
bool removeOne(const T &value)
AbstractDataPluginModel * model()
Definition: AbstractDataPlugin.cpp:124
The abstract class that creates a renderable item.
Definition: RenderPlugin.h:43
virtual void setProjection(const ViewportParams *viewport)
Definition: MarbleGraphicsItem.cpp:272
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 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:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.