Marble
            
 
    7#include "KmlTessellateTagHandler.h" 
    9#include "MarbleDebug.h" 
   11#include "KmlElementDictionary.h" 
   13#include "GeoDataGeometry.h" 
   14#include "GeoDataLinearRing.h" 
   15#include "GeoDataPoint.h" 
   16#include "GeoDataPolygon.h" 
   24KML_DEFINE_TAG_HANDLER(tessellate)
 
   26GeoNode *KmltessellateTagHandler::parse(GeoParser &parser)
 const 
   28    Q_ASSERT(parser.isStartElement() && parser.isValidElement(QLatin1StringView(kmlTag_tessellate)));
 
   30    GeoStackItem parentItem = parser.parentElement();
 
   32    QString content = parser.readElementText().trimmed();
 
   34    if (parentItem.is<GeoDataLineString>()) {
 
   35        auto lineString = parentItem.nodeAs<GeoDataLineString>();
 
   37        const bool tesselate = (content == QLatin1StringView(
"1"));
 
   38        lineString->setTessellate(tesselate);
 
   40    } 
else if (parentItem.is<GeoDataLinearRing>()) {
 
   41        auto linearRing = parentItem.nodeAs<GeoDataLinearRing>();
 
   43        const bool tesselate = (content == QLatin1StringView(
"1"));
 
   44        linearRing->setTessellate(tesselate);
 
   46    } 
else if (parentItem.is<GeoDataPolygon>()) {
 
   47        auto polygon = parentItem.nodeAs<GeoDataPolygon>();
 
   49        const bool tesselate = (content == QLatin1StringView(
"1"));
 
   50        polygon->setTessellate(tesselate);
 
Binds a QML item to a specific geodetic location in screen coordinates.
 
  
 
  This file is part of the KDE documentation.
  Documentation copyright © 1996-2025 The KDE developers.
  Generated on Fri May 2 2025 12:01:32 by
  
doxygen 1.13.2 written
  by 
Dimitri van Heesch, © 1997-2006
  
  KDE's Doxygen guidelines are available online.