marble
OverviewMap.cpp
Go to the documentation of this file.
168 GeoDataLatLonAltBox latLonAltBox = viewport->latLonAltBox( QRect( QPoint( 0, 0 ), viewport->size() ) );
297 painter->drawEllipse( QRectF( x - circleRadius, y - circleRadius , 2 * circleRadius, 2 * circleRadius ) );
391 setContentSize( QSizeF( ui_configWidget->m_widthBox->value(), ui_configWidget->m_heightBox->value() ) );
471 QStringList paths = QDir( MarbleDirs::pluginPath( "" ) ).entryList( QStringList( "*.svg" ), QDir::Files | QDir::NoDotAndDotDot );
485 QString path = QFileDialog::getOpenFileName ( m_configDialog, tr( "Choose Overview Map" ), "", "SVG (*.svg)" );
virtual QHash< QString, QVariant > settings() const
Settings of the plugin.
Definition: AbstractFloatItem.cpp:72
QSize size() const
GeoDataLatLonAltBox latLonAltBox(const QRect &screenRect) const
Definition: ViewportParams.cpp:317
static QString pluginPath(const QString &relativePath)
Definition: MarbleDirs.cpp:73
void setViewport(const QRect &rectangle)
Type type() const
iterator insert(const Key &key, const T &value)
int width() const
bool end()
void setCursor(const QCursor &)
void setRenderHint(RenderHint hint, bool on)
static QString path(const QString &relativePath)
Definition: MarbleDirs.cpp:59
void fill(const QColor &color)
void setColor(ColorGroup group, ColorRole role, const QColor &color)
void render(QPainter *painter)
QString name() const
QList< PluginAuthor > pluginAuthors() const
Definition: OverviewMap.cpp:108
QStringList backendTypes() const
Returns the name(s) of the backend that the plugin can render This method should return the name of t...
Definition: OverviewMap.cpp:73
QObject * sender() const
This file contains the headers for MarbleModel.
QSizeF size() const
bool isValid() const
Definition: PluginInterface.h:28
virtual bool eventFilter(QObject *object, QEvent *e)
Definition: AbstractFloatItem.cpp:163
void save()
virtual void setSettings(const QHash< QString, QVariant > &settings)
Set the settings of the plugin.
Definition: AbstractFloatItem.cpp:79
void setProjection(const ViewportParams *viewport)
Definition: OverviewMap.cpp:166
void restoreDefaultSettings()
Passes an empty set of settings to the plugin.
Definition: RenderPlugin.cpp:221
void drawLine(const QLineF &line)
QString tr(const char *sourceText, const char *disambiguation, int n)
int size() const
bool isNull() const
void paintContent(QPainter *painter)
Here the items paint their content.
Definition: OverviewMap.cpp:192
T value(int i) const
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:104
virtual bool event(QEvent *e)
void clear()
void drawRect(const QRectF &rectangle)
qreal north(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the northern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:93
qreal east(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the eastern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:135
qreal x() const
qreal y() const
const_iterator constEnd() const
bool load(const QString &filename)
void setPen(const QColor &color)
void settingsChanged(QString nameId)
This signal is emitted if the settings of the RenderPlugin changed.
void drawEllipse(const QRectF &rectangle)
QSize toSize() const
The abstract class for float item plugins.
Definition: AbstractFloatItem.h:45
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
QRectF contentRect() const
Returns the rect of the content in item coordinates.
Definition: FrameGraphicsItem.cpp:167
QPointF topLeft() const
bool isEmpty() const
Definition: Planet.h:25
virtual void setSettings(const QHash< QString, QVariant > &settings)
Set the settings of the item.
Definition: OverviewMap.cpp:315
void setBrush(const QBrush &brush)
QString description() const
Returns a user description of the plugin.
Definition: OverviewMap.cpp:98
static void normalizeLonLat(qreal &lon, qreal &lat, GeoDataCoordinates::Unit=GeoDataCoordinates::Radian)
normalize both longitude and latitude at the same time This method normalizes both latitude and longi...
Definition: GeoDataCoordinates.cpp:845
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
virtual QHash< QString, QVariant > settings() const
Definition: OverviewMap.cpp:302
QPointF positivePosition() const
Return the positive position of the ScreenGraphicsItem.
Definition: ScreenGraphicsItem.cpp:49
const T value(const Key &key) const
void centerOn(const qreal lon, const qreal lat, bool animated=false)
Center the view on a geographical point.
Definition: MarbleWidget.cpp:549
QColor getColor(const QColor &initial, QWidget *parent, const QString &title, QFlags< QColorDialog::ColorDialogOption > options)
This file contains the headers for ViewportParams.
bool eventFilter(QObject *object, QEvent *e)
Definition: OverviewMap.cpp:394
qreal centerLatitude() const
Definition: ViewportParams.cpp:294
void restore()
qreal west(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the western boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:156
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
const_iterator constBegin() const
qreal width() const
void setCacheMode(CacheMode mode)
Set the cache mode of the item.
Definition: MarbleGraphicsItem.cpp:159
qreal centerLongitude() const
Definition: ViewportParams.cpp:289
QStringList entryList(QFlags< QDir::Filter > filters, QFlags< QDir::SortFlag > sort) const
qreal south(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the southern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:114
int height() const
QDialog * configDialog()
Returns a pointer to the configuration dialog of the plugin.
Definition: OverviewMap.cpp:119
This file contains the headers for MarbleWidget.
qreal height() const
bool contains(const Key &key) const
bool contains(const QPointF &point) const
QString getOpenFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, QFlags< QFileDialog::Option > options)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setContentSize(const QSizeF &size)
Sets the size of the content of the item.
Definition: FrameGraphicsItem.cpp:200
bool begin(QPaintDevice *device)
QRect rect() const
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
bool isValid() const
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:41 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:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.