Marble
7 #include "KmlTessellateTagHandler.h"
9 #include "MarbleDebug.h"
11 #include "KmlElementDictionary.h"
13 #include "GeoDataLinearRing.h"
14 #include "GeoDataPolygon.h"
15 #include "GeoDataGeometry.h"
16 #include "GeoDataPoint.h"
18 #include "GeoParser.h"
24 KML_DEFINE_TAG_HANDLER( tessellate )
26 GeoNode* KmltessellateTagHandler::parse( GeoParser& parser )
const
28 Q_ASSERT(parser.isStartElement() && parser.isValidElement(
QLatin1String(kmlTag_tessellate)));
30 GeoStackItem parentItem = parser.parentElement();
34 if( parentItem.is<GeoDataLineString>() ) {
35 GeoDataLineString* lineString = parentItem.nodeAs<GeoDataLineString>();
38 lineString->setTessellate(tesselate);
40 }
else if( parentItem.is<GeoDataLinearRing>() ) {
41 GeoDataLinearRing* linearRing = parentItem.nodeAs<GeoDataLinearRing>();
44 linearRing->setTessellate(tesselate);
46 }
else if( parentItem.is<GeoDataPolygon>() ) {
47 GeoDataPolygon* polygon = parentItem.nodeAs<GeoDataPolygon>();
50 polygon->setTessellate(tesselate);
QString trimmed() const const
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:09 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.