6#include "KmlModelTagHandler.h"
8#include "MarbleDebug.h"
10#include "GeoDataModel.h"
11#include "GeoDataMultiGeometry.h"
12#include "GeoDataParser.h"
13#include "GeoDataPlacemark.h"
14#include "KmlElementDictionary.h"
15#include "KmlObjectTagHandler.h"
21KML_DEFINE_TAG_HANDLER(Model)
23GeoNode *KmlModelTagHandler::parse(GeoParser &parser)
const
25 Q_ASSERT(parser.isStartElement() && parser.isValidElement(
QLatin1StringView(kmlTag_Model)));
27 auto model =
new GeoDataModel;
28 KmlObjectTagHandler::parseIdentifiers(parser, model);
30 GeoStackItem parentItem = parser.parentElement();
32 if (parentItem.represents(kmlTag_Placemark)) {
33 parentItem.nodeAs<GeoDataPlacemark>()->setGeometry(model);
36 }
else if (parentItem.represents(kmlTag_MultiGeometry)) {
37 parentItem.nodeAs<GeoDataMultiGeometry>()->append(model);
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 Fri Dec 27 2024 11:50:59 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.