marble
AnnotatePlugin.cpp
Go to the documentation of this file.
174 bool AnnotatePlugin::render( GeoPainter *painter, ViewportParams *viewport, const QString& renderPos, GeoSceneLayer * layer )
447 if( mouseEvent->button() == Qt::LeftButton && event->type() == QEvent::MouseButtonRelease && m_removingItem ) {
void itemRemoved()
virtual const char * nodeType() const
Provides type information for downcasting a GeoData.
Definition: GeoDataGeometry.cpp:77
int addFeature(GeoDataContainer *parent, GeoDataFeature *feature, int row=-1)
Definition: GeoDataTreeModel.cpp:566
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:64
Definition: GeoDataParser.h:40
void setDocumentRole(DocumentRole role)
Definition: GeoDataDocument.cpp:62
const char * GeoDataPolygonType
Definition: GeoDataTypes.cpp:65
void repaintNeeded(QRegion dirtyRegion=QRegion())
This signal is emitted if an update of the view is needed.
GeoDataTreeModel * treeModel()
Return the list of Placemarks as a QAbstractItemModel *.
Definition: MarbleModel.cpp:407
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
This file contains the headers for MarbleModel.
QList< PluginAuthor > pluginAuthors() const
Definition: AnnotatePlugin.cpp:127
Definition: PluginInterface.h:28
const char * GeoDataPlacemarkType
Definition: GeoDataTypes.cpp:62
bool removeFeature(GeoDataContainer *parent, int index)
Definition: GeoDataTreeModel.cpp:600
const GeoDataFeature * feature() const
Returns the placemark for that item.
Definition: GeoGraphicsItem.cpp:62
void loadAnnotationFile()
Definition: AnnotatePlugin.cpp:344
const char * kmlTag_nameSpace22
Definition: KmlElementDictionary.cpp:33
void setCoordinate(qreal longitude, qreal latitude, qreal altitude=0, GeoDataCoordinates::Unit _unit=GeoDataCoordinates::Radian)
Set the coordinate of the placemark in longitude and latitude.
Definition: GeoDataPlacemark.cpp:121
GeoDataGeometry * geometry() const
The geometry of the GeoDataPlacemark is to be rendered to the marble map along with the icon at the c...
Definition: GeoDataPlacemark.cpp:63
int addDocument(GeoDataDocument *document)
Definition: GeoDataTreeModel.cpp:595
This file contains the headers for AbstractProjection.
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:102
Definition: GeoDataParser.h:36
virtual void setParent(GeoDataObject *parent)
Sets the parent of the object.
Definition: GeoDataObject.cpp:70
void actionGroupsChanged()
This signal is emitted if the actions that the plugin supports change in any way. ...
virtual const QList< QActionGroup * > * actionGroups() const
Getting all actions.
Definition: AnnotatePlugin.cpp:164
bool sceneEvent(QEvent *event)
Definition: SceneGraphicsItem.cpp:41
void placemarkAdded()
void setRemovingItems(bool)
Definition: AnnotatePlugin.cpp:233
The class that specifies the Marble layer interface of a plugin.
Definition: AnnotatePlugin.h:43
void setName(const QString &value)
Set a new name for this feature.
Definition: GeoDataFeature.cpp:485
void removeDocument(int index)
Definition: GeoDataTreeModel.cpp:646
void setDrawingPolygon(bool)
Definition: AnnotatePlugin.cpp:207
Definition: AreaAnnotation.h:20
Definition: SceneGraphicsItem.h:28
Definition: GeoDataDocument.h:42
void visibilityChanged(bool visible, const QString &nameId)
This signal is emitted if the visibility is changed with.
bool eventFilter(QObject *watched, QEvent *event)
Definition: AnnotatePlugin.cpp:393
Standard Marble way of writing XML This class is intended to be a standardised way of writing XML for...
Definition: GeoWriter.h:28
bool render(GeoPainter *painter, ViewportParams *viewport, const QString &renderPos, GeoSceneLayer *layer=0)
Renders the content provided by the layer on the viewport.
Definition: AnnotatePlugin.cpp:174
void addStyle(const GeoDataStyle &style)
Add a style to the style storage.
Definition: GeoDataDocument.cpp:110
QString renderPolicy() const
Return how the plugin settings should be used.
Definition: AnnotatePlugin.cpp:87
QStringList renderPosition() const
Preferred level in the layer stack for the rendering.
Definition: AnnotatePlugin.cpp:92
GeoDataLatLonAltBox latLonAltBox() const
A convenience function that returns the LatLonAltBox of all placemarks in this container.
Definition: GeoDataContainer.cpp:53
void updateFeature(GeoDataFeature *feature)
Definition: GeoDataTreeModel.cpp:638
void append(const GeoDataCoordinates &position)
Appends a given geodesic position as a new node to the LineString.
Definition: GeoDataLineString.cpp:221
GeoDataLinearRing & outerBoundary()
Returns the outer boundary that is represented as a LinearRing.
Definition: GeoDataPolygon.cpp:85
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
void setStyleUrl(const QString &value)
Set the styleUrl of this feature to value.
Definition: GeoDataFeature.cpp:556
QString copyrightYears() const
Definition: AnnotatePlugin.cpp:122
void centerOn(const qreal lon, const qreal lat, bool animated=false)
Center the view on a geographical point.
Definition: MarbleWidget.cpp:626
QString description() const
Returns a user description of the plugin.
Definition: AnnotatePlugin.cpp:112
void setDocumentType(const QString &documentType)
Set the current document type.
Definition: GeoWriter.cpp:79
void setAddingPlacemark(bool)
Definition: AnnotatePlugin.cpp:202
GeoDataPlacemark * placemark()
Definition: SceneGraphicsItem.cpp:36
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:96
QList< QRegion > regions() const
Definition: SceneGraphicsItem.cpp:31
bool isEmpty() const
Returns whether the LineString has no nodes at all.
Definition: GeoDataLineString.cpp:129
QStringList backendTypes() const
Returns the name(s) of the backend that the plugin can render This method should return the name of t...
Definition: AnnotatePlugin.cpp:82
QVector< GeoDataFeature * > featureList() const
A convenience function that returns all features in this container.
Definition: GeoDataContainer.cpp:124
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
virtual const QList< QActionGroup * > * toolbarActionGroups() const
Getting all actions which should be placed in the toolbar.
Definition: AnnotatePlugin.cpp:169
void saveAnnotationFile()
Definition: AnnotatePlugin.cpp:327
AnnotatePlugin(const MarbleModel *model=0)
Definition: AnnotatePlugin.cpp:42
This file contains the headers for MarbleWidget.
bool write(QIODevice *device, const GeoNode *feature)
The main API call to use the XML writer.
Definition: GeoWriter.cpp:28
virtual QString runtimeTrace() const
Returns a debug line for perfo/tracing issues.
Definition: AnnotatePlugin.cpp:160
Definition: MarbleGlobal.h:32
specifies the style how polygons are drawn
Definition: GeoDataPolyStyle.h:34
virtual const char * nodeType() const
Provides type information for downcasting a GeoData.
Definition: GeoDataFeature.cpp:94
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
The abstract class that creates a renderable item.
Definition: RenderPlugin.h:43
QString guiString() const
String that should be displayed in GUI.
Definition: AnnotatePlugin.cpp:102
GeoDocument * releaseDocument()
retrieve the parsed document and reset the parser If parsing was successful, retrieve the resulting d...
Definition: GeoParser.cpp:205
void setGeometry(GeoDataGeometry *entry)
Sets the current Geometry of this Placemark.
Definition: GeoDataPlacemark.cpp:136
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:48 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:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.