Marble

KmlTourTagWriter.cpp
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2013 Adrian Draghici <[email protected]>
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 
14 namespace Marble
15 {
16 
17 static GeoTagWriterRegistrar s_writerTour(
18  GeoTagWriter::QualifiedName( GeoDataTypes::GeoDataTourType,
19  kml::kmlTag_nameSpaceOgc22 ),
20  new KmlTourTagWriter );
21 
22 bool 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 
31 KmlTourTagWriter::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.
Definition: GeoTagWriter.h:44
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:09 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.