marble
MeasureToolPlugin.cpp
Go to the documentation of this file.
224 const QLocale::MeasurementSystem measurementSystem = MarbleGlobal::getInstance()->locale()->measurementSystem();
297 painter->drawRect( 10, 105, 10 + QFontMetrics( m_font_regular ).boundingRect( distanceString ).width() + 5, 10 + m_fontascent + 2 );
330 m_addMeasurePointAction = new QAction( QIcon(":/icons/measure.png"), tr( "Add &Measure Point" ), this );
349 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:559
QLocale::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:378
QHash< QString, QVariant > settings() const
Settings of the plugin.
Definition: MeasureToolPlugin.cpp:150
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
bool eventFilter(QObject *, QEvent *)
Definition: RenderPlugin.cpp:209
This file contains the headers for MarbleModel.
bool isInitialized() const
Definition: MeasureToolPlugin.cpp:127
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:61
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:101
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:102
void numberOfMeasurePointsChanged(int newNumber)
QList< PluginAuthor > pluginAuthors() const
Definition: MeasureToolPlugin.cpp:106
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:71
Definition: MarbleGlobal.h:111
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:96
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:96
bool isEmpty() const
Returns whether the LineString has no nodes at all.
Definition: GeoDataLineString.cpp:129
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:174
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:764
QString name() const
Returns the user-visible name of the plugin.
Definition: MeasureToolPlugin.cpp:76
QString renderPolicy() const
Return how the plugin settings should be used.
Definition: MeasureToolPlugin.cpp:66
QString guiString() const
String that should be displayed in GUI.
Definition: MeasureToolPlugin.cpp:81
Definition: MarbleGlobal.h:32
QPoint mousePosition() const
mousePosition Position of the last mouse button click
Definition: MarbleWidgetPopupMenu.cpp:689
virtual QHash< QString, QVariant > settings() const
Settings of the plugin.
Definition: RenderPlugin.cpp:183
QDialog * configDialog()
Returns a pointer to the configuration dialog of the plugin.
Definition: MeasureToolPlugin.cpp:132
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:193
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.