Marble
6 #include "KmlGxTimeStampTagHandler.h"
8 #include "MarbleDebug.h"
10 #include "KmlElementDictionary.h"
11 #include "KmlObjectTagHandler.h"
12 #include "GeoDataTimeStamp.h"
13 #include "GeoDataFeature.h"
14 #include "GeoParser.h"
15 #include <GeoDataAbstractView.h>
16 #include "KmlTimeStampTagHandler.h"
24 KML_DEFINE_TAG_HANDLER_GX22( TimeStamp )
26 GeoNode* KmlTimeStampTagHandler::parse( GeoParser& parser )
const
28 Q_ASSERT(parser.isStartElement() && parser.isValidElement(
QLatin1String(kmlTag_TimeStamp)));
29 GeoStackItem parentItem = parser.parentElement();
30 GeoDataTimeStamp timestamp;
31 KmlObjectTagHandler::parseIdentifiers( parser, ×tamp );
32 if ( parentItem.is<GeoDataFeature>() ) {
33 parentItem.nodeAs<GeoDataFeature>()->setTimeStamp( timestamp );
34 return &parentItem.nodeAs<GeoDataFeature>()->timeStamp();
35 }
else if ( parentItem.is<GeoDataAbstractView>() ) {
36 parentItem.nodeAs<GeoDataAbstractView>()->setTimeStamp( timestamp );
37 return &parentItem.nodeAs<GeoDataAbstractView>()->timeStamp();
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.