9#include "GeoSceneParser.h"
12#include "MarbleDebug.h"
15#include "GeoDocument.h"
16#include "GeoSceneDocument.h"
17#include "GeoTagHandler.h"
20#include "DgmlElementDictionary.h"
25GeoSceneParser::GeoSceneParser(GeoSceneSourceType source)
30GeoSceneParser::~GeoSceneParser()
35bool GeoSceneParser::isValidRootElement()
37 switch ((GeoSceneSourceType) m_source) {
39 return isValidElement(dgml::dgmlTag_Dgml);
46bool GeoSceneParser::isValidElement(
const QString& tagName)
const
48 if (!GeoParser::isValidElement(tagName))
51 switch ((GeoSceneSourceType) m_source) {
53 return (namespaceUri() ==
QLatin1String(dgml::dgmlTag_nameSpace20));
63GeoDocument* GeoSceneParser::createDocument()
const
65 return new GeoSceneDocument;
69GeoSceneDocument* 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-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:57:57 by
doxygen 1.11.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.