6#include "KmlCameraTagHandler.h"
8#include "GeoDataCamera.h"
9#include "GeoDataFeature.h"
10#include "GeoDataFlyTo.h"
12#include "KmlElementDictionary.h"
13#include "KmlObjectTagHandler.h"
20KML_DEFINE_TAG_HANDLER(Camera)
22GeoNode *KmlCameraTagHandler::parse(GeoParser &parser)
const
24 Q_ASSERT(parser.isStartElement() && parser.isValidElement(
QLatin1StringView(kmlTag_Camera)));
26 GeoDataCamera *
camera =
nullptr;
27 GeoStackItem parentItem = parser.parentElement();
29 if (parentItem.is<GeoDataFeature>()) {
30 camera =
new GeoDataCamera;
31 KmlObjectTagHandler::parseIdentifiers(parser,
camera);
32 parentItem.nodeAs<GeoDataFeature>()->setAbstractView(
camera);
35 if (parentItem.is<GeoDataFlyTo>()) {
36 camera =
new GeoDataCamera;
37 KmlObjectTagHandler::parseIdentifiers(parser,
camera);
38 parentItem.nodeAs<GeoDataFlyTo>()->setView(
camera);
Q_SCRIPTABLE QString camera()
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 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.