7#include "KmlIconTagHandler.h"
9#include "MarbleDebug.h"
11#include "GeoDataGroundOverlay.h"
12#include "GeoDataIconStyle.h"
13#include "GeoDataPhotoOverlay.h"
14#include "GeoDataScreenOverlay.h"
16#include "KmlElementDictionary.h"
22KML_DEFINE_TAG_HANDLER(
Icon)
24GeoNode *KmlIconTagHandler::parse(GeoParser &parser)
const
26 Q_ASSERT(parser.isStartElement() && parser.isValidElement(
QLatin1StringView(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-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:03 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.