Marble
9 #include "GeoSceneParser.h"
12 #include "MarbleDebug.h"
15 #include "GeoDocument.h"
16 #include "GeoSceneDocument.h"
17 #include "GeoTagHandler.h"
20 #include "DgmlElementDictionary.h"
25 GeoSceneParser::GeoSceneParser(GeoSceneSourceType source)
30 GeoSceneParser::~GeoSceneParser()
35 bool GeoSceneParser::isValidRootElement()
37 switch ((GeoSceneSourceType) m_source) {
39 return isValidElement(dgml::dgmlTag_Dgml);
46 bool GeoSceneParser::isValidElement(
const QString& tagName)
const
48 if (!GeoParser::isValidElement(tagName))
51 switch ((GeoSceneSourceType) m_source) {
53 return (namespaceUri() ==
QLatin1String(dgml::dgmlTag_nameSpace20));
63 GeoDocument* GeoSceneParser::createDocument()
const
65 return new GeoSceneDocument;
69 GeoSceneDocument* geoSceneDoc(GeoParser& parser)
71 GeoDocument* document = parser.activeDocument();
72 Q_ASSERT(document->isGeoSceneDocument());
73 return static_cast<GeoSceneDocument*
>(document);
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.