File indexing completed on 2025-01-05 03:59:14

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2012 Mayank Madan <maddiemadan@gmail.com>
0004 //
0005 
0006 #ifndef MARBLE_KMLSCREENOVERLAYWRITER_H
0007 #define MARBLE_KMLSCREENOVERLAYWRITER_H
0008 
0009 #include "GeoDataVec2.h"
0010 #include "KmlOverlayTagWriter.h"
0011 
0012 #include "MarbleGlobal.h"
0013 
0014 namespace Marble
0015 {
0016 
0017 class KmlScreenOverlayWriter : public KmlOverlayTagWriter
0018 {
0019 public:
0020     KmlScreenOverlayWriter();
0021     bool writeMid( const GeoNode *node, GeoWriter& writer ) const override;
0022 
0023 private:
0024     static void writeVec2( const QString &element, const GeoDataVec2 &vec2, GeoWriter& writer );
0025     static QString unitToString( GeoDataVec2::Unit unit );
0026 };
0027 
0028 }
0029 
0030 #endif