Marble
7 #include "KmlIconTagHandler.h"
9 #include "MarbleDebug.h"
11 #include "KmlElementDictionary.h"
12 #include "GeoDataIconStyle.h"
13 #include "GeoDataGroundOverlay.h"
14 #include "GeoDataPhotoOverlay.h"
15 #include "GeoDataScreenOverlay.h"
16 #include "GeoParser.h"
22 KML_DEFINE_TAG_HANDLER(
Icon )
24 GeoNode* KmlIconTagHandler::parse( GeoParser& parser )
const
26 Q_ASSERT(parser.isStartElement() && parser.isValidElement(
QLatin1String(kmlTag_Icon)));
28 GeoStackItem parentItem = parser.parentElement();
30 if ( parentItem.represents( kmlTag_IconStyle ) ) {
31 return parentItem.nodeAs<GeoDataIconStyle>();
32 }
else if ( parentItem.represents( kmlTag_GroundOverlay ) ) {
33 return parentItem.nodeAs<GeoDataGroundOverlay>();
34 }
else if ( parentItem.represents( kmlTag_PhotoOverlay ) ) {
35 return parentItem.nodeAs<GeoDataPhotoOverlay>();
36 }
else if ( parentItem.represents( kmlTag_ScreenOverlay ) ) {
37 return parentItem.nodeAs<GeoDataScreenOverlay>();
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Oct 2 2023 03:52:08 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.