8#include "KmlExtrudeTagHandler.h"
9#include "KmlElementDictionary.h"
11#include "GeoDataGeometry.h"
12#include "GeoDataLineString.h"
13#include "GeoDataLinearRing.h"
14#include "GeoDataPlacemark.h"
15#include "GeoDataPoint.h"
16#include "GeoDataPolygon.h"
24KML_DEFINE_TAG_HANDLER(extrude)
26GeoNode *KmlextrudeTagHandler::parse(GeoParser &parser)
const
28 Q_ASSERT(parser.isStartElement() && parser.isValidElement(
QLatin1StringView(kmlTag_extrude)));
30 GeoStackItem parentItem = parser.parentElement();
32 GeoDataGeometry *geometry;
33 bool validParents =
false;
35 if (parentItem.is<GeoDataPoint>()) {
36 geometry = parentItem.nodeAs<GeoDataPoint>();
38 }
else if (parentItem.is<GeoDataPlacemark>()) {
39 geometry = parentItem.nodeAs<GeoDataPlacemark>()->geometry();
41 }
else if (parentItem.is<GeoDataPolygon>()) {
42 geometry = parentItem.nodeAs<GeoDataPolygon>();
44 }
else if (parentItem.is<GeoDataLineString>()) {
45 geometry = parentItem.nodeAs<GeoDataLineString>();
47 }
else if (parentItem.is<GeoDataLinearRing>()) {
48 geometry = parentItem.nodeAs<GeoDataLinearRing>();
56 geometry->setExtrude(extrude);
Binds a QML item to a specific geodetic location in screen coordinates.
QString trimmed() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:45 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.