Marble

KmlTourTagWriter.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2013 Adrian Draghici <draghici.adrian.b@gmail.com>
4//
5
6#include "KmlTourTagWriter.h"
7
8#include "GeoDataTour.h"
9#include "GeoDataTypes.h"
10#include "GeoDataPlaylist.h"
11#include "GeoWriter.h"
12#include "KmlElementDictionary.h"
13
14namespace Marble
15{
16
17static GeoTagWriterRegistrar s_writerTour(
18 GeoTagWriter::QualifiedName( GeoDataTypes::GeoDataTourType,
19 kml::kmlTag_nameSpaceOgc22 ),
20 new KmlTourTagWriter );
21
22bool KmlTourTagWriter::writeMid( const GeoNode *node, GeoWriter& writer ) const
23{
24 const GeoDataTour* tour = static_cast<const GeoDataTour*>( node );
25 if ( tour->playlist() ) {
26 writeElement( tour->playlist(), writer );
27 }
28 return true;
29}
30
31KmlTourTagWriter::KmlTourTagWriter() :
32 KmlFeatureTagWriter( "gx:Tour" )
33{
34 // nothing to do
35}
36
37}
QPair< QString, QString > QualifiedName
Object Name and Namespace Pair This type is intended to be used in a similar way to.
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 Fri Jun 21 2024 12:00:07 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.