marble
MeasureToolPlugin.cpp
Go to the documentation of this file.
321 painter->drawRect( 10, 105, 10 + QFontMetrics( m_font_regular ).boundingRect( distanceString ).width() + 5, 10 + m_fontascent + 2 );
354 m_addMeasurePointAction = new QAction( QIcon(":/icons/measure.png"), tr( "Add &Measure Point" ), this );
373 connect( this, SIGNAL(numberOfMeasurePointsChanged(int)), SLOT(setNumberOfMeasurePoints(int)) );
virtual qreal length(qreal planetRadius, int offset=0) const
Returns the length of LineString across a sphere starting from a coordinate in LineString This method...
Definition: GeoDataLineString.cpp:594
QString & append(QChar ch)
iterator insert(const Key &key, const T &value)
void setSeparator(bool b)
MarbleLocale::MeasurementSystem measurementSystem() const
Definition: MarbleLocale.cpp:45
void repaintNeeded(QRegion dirtyRegion=QRegion())
This signal is emitted if an update of the view is needed.
bool eventFilter(QObject *object, QEvent *event)
Definition: MeasureToolPlugin.cpp:402
QHash< QString, QVariant > settings() const
Settings of the plugin.
Definition: MeasureToolPlugin.cpp:149
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
bool eventFilter(QObject *, QEvent *)
Definition: RenderPlugin.cpp:216
This file contains the headers for MarbleModel.
bool isInitialized() const
Definition: MeasureToolPlugin.cpp:125
Definition: PluginInterface.h:28
QStringList backendTypes() const
Returns the name(s) of the backend that the plugin can render This method should return the name of t...
Definition: MeasureToolPlugin.cpp:59
void save()
MeasureToolPlugin(const MarbleModel *marbleModel=0)
Definition: MeasureToolPlugin.cpp:35
void drawPolyline(const GeoDataLineString &lineString, const QString &labelText=QString(), LabelPositionFlags labelPositionFlags=LineCenter)
Draws a given line string (a "polyline").
Definition: GeoPainter.cpp:474
QString copyrightYears() const
Definition: MeasureToolPlugin.cpp:99
QString tr(const char *sourceText, const char *disambiguation, int n)
int x() const
int y() const
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:104
void numberOfMeasurePointsChanged(int newNumber)
QList< PluginAuthor > pluginAuthors() const
Definition: MeasureToolPlugin.cpp:104
QString fromUtf8(const char *str, int size)
void setPen(const QColor &color)
void settingsChanged(QString nameId)
This signal is emitted if the settings of the RenderPlugin changed.
QStringList renderPosition() const
Preferred level in the layer stack for the rendering.
Definition: MeasureToolPlugin.cpp:69
bool isEmpty() const
Definition: MarbleGlobal.h:113
void setWidthF(qreal width)
void setColor(const QColor &color)
A LineString that allows to store a contiguous set of line segments.
Definition: GeoDataLineString.h:75
Definition: MeasureToolPlugin.h:38
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
QString description() const
Returns a user description of the plugin.
Definition: MeasureToolPlugin.cpp:94
const T value(const Key &key) const
void restore()
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
bool isEmpty() const
Returns whether the LineString has no nodes at all.
Definition: GeoDataLineString.cpp:133
bool render(GeoPainter *painter, ViewportParams *viewport, const QString &renderPos, GeoSceneLayer *layer=0)
Renders the content provided by the layer on the viewport.
Definition: MeasureToolPlugin.cpp:176
bool geoCoordinates(int x, int y, qreal &lon, qreal &lat, GeoDataCoordinates::Unit=GeoDataCoordinates::Degree) const
Get the earth coordinates corresponding to a pixel in the widget.
Definition: MarbleWidget.cpp:668
QString name() const
Returns the user-visible name of the plugin.
Definition: MeasureToolPlugin.cpp:74
QString renderPolicy() const
Return how the plugin settings should be used.
Definition: MeasureToolPlugin.cpp:64
QString guiString() const
String that should be displayed in GUI.
Definition: MeasureToolPlugin.cpp:79
Definition: MarbleGlobal.h:32
QPoint mousePosition() const
mousePosition Position of the last mouse button click
Definition: MarbleWidgetPopupMenu.cpp:663
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
QDialog * configDialog()
Returns a pointer to the configuration dialog of the plugin.
Definition: MeasureToolPlugin.cpp:130
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
void setSettings(const QHash< QString, QVariant > &settings)
Set the settings of the plugin.
Definition: MeasureToolPlugin.cpp:159
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
void setEnabled(bool)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 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:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.