marble
CrosshairsPlugin.cpp
Go to the documentation of this file.
67 return QStringList( "FLOAT_ITEM" ); // although this is not a float item we choose the position of one
168 if ( m_uiConfigWidget && m_themeIndex >= 0 && m_themeIndex < m_uiConfigWidget->m_themeList->count() ) {
222 GeoDataCoordinates const centerPoint = GeoDataCoordinates( viewport->centerLongitude(), viewport->centerLatitude() );
iterator insert(const Key &key, const T &value)
int width() const
void setRenderHint(RenderHint hint, bool on)
bool render(GeoPainter *painter, ViewportParams *viewport, const QString &renderPos, GeoSceneLayer *layer=0)
Renders the content provided by the layer on the viewport.
Definition: CrosshairsPlugin.cpp:203
The class that specifies the Marble layer interface of a plugin.
Definition: CrosshairsPlugin.h:39
void fill(const QColor &color)
void render(QPainter *painter)
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
Definition: PluginInterface.h:28
QString description() const
Returns a user description of the plugin.
Definition: CrosshairsPlugin.cpp:95
QString renderPolicy() const
Return how the plugin settings should be used.
Definition: CrosshairsPlugin.cpp:60
QString tr(const char *sourceText, const char *disambiguation, int n)
QStringList renderPosition() const
Preferred level in the layer stack for the rendering.
Definition: CrosshairsPlugin.cpp:65
QStringList backendTypes() const
Returns the name(s) of the backend that the plugin can render This method should return the name of t...
Definition: CrosshairsPlugin.cpp:55
GeoDataCoordinates focusPoint() const
Definition: ViewportParams.cpp:413
void settingsChanged(QString nameId)
This signal is emitted if the settings of the RenderPlugin changed.
QList< PluginAuthor > pluginAuthors() const
Definition: CrosshairsPlugin.cpp:105
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 isInitialized() const
Definition: CrosshairsPlugin.cpp:123
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
virtual RenderType renderType() const
Render type of the plugin.
Definition: CrosshairsPlugin.cpp:70
const T value(const Key &key) const
bool isNull() const
This file contains the headers for ViewportParams.
qreal centerLatitude() const
Definition: ViewportParams.cpp:294
void setSettings(const QHash< QString, QVariant > &settings)
Set the settings of the plugin.
Definition: CrosshairsPlugin.cpp:156
QString guiString() const
String that should be displayed in GUI.
Definition: CrosshairsPlugin.cpp:80
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
QHash< QString, QVariant > settings() const
Settings of the plugin.
Definition: CrosshairsPlugin.cpp:147
QDialog * configDialog()
Returns a pointer to the configuration dialog of the plugin.
Definition: CrosshairsPlugin.cpp:128
qreal centerLongitude() const
Definition: ViewportParams.cpp:289
int height() const
QString copyrightYears() const
Definition: CrosshairsPlugin.cpp:100
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual QHash< QString, QVariant > settings() const
Settings of the plugin.
Definition: RenderPlugin.cpp:185
void drawPixmap(const GeoDataCoordinates ¢erPosition, const QPixmap &pixmap)
Draws a pixmap at the given position. The pixmap is placed with its center located at the given cente...
Definition: GeoPainter.cpp:452
The abstract class that creates a renderable item.
Definition: RenderPlugin.h:43
virtual void setSettings(const QHash< QString, QVariant > &settings)
Set the settings of the plugin.
Definition: RenderPlugin.cpp:195
QString name() const
Returns the user-visible name of the plugin.
Definition: CrosshairsPlugin.cpp:75
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.