• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • geodata
  • writers
  • kml
KmlLodTagWriter.cpp
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2012 Mayank Madan <maddiemadan@gmail.com>
9 //
10 
11 #include "KmlLodTagWriter.h"
12 
13 #include "GeoDataLod.h"
14 #include "GeoDataTypes.h"
15 #include "GeoWriter.h"
16 #include "GeoTagWriter.h"
17 #include "KmlElementDictionary.h"
18 
19 namespace Marble
20 {
21 
22 bool KmlLodTagWriter::write( const GeoNode *node,
23  GeoWriter& writer ) const
24 {
25  const GeoDataLod *lod = static_cast<const GeoDataLod*>( node );
26  writer.writeStartElement(kml::kmlTag_Lod);
27  writer.writeTextElement( kml::kmlTag_minLodPixels, QString::number(lod->minLodPixels()) );
28  writer.writeTextElement( kml::kmlTag_maxLodPixels, QString::number(lod->maxLodPixels()) );
29  writer.writeTextElement( kml::kmlTag_minFadeExtent, QString::number(lod->minFadeExtent()) );
30  writer.writeTextElement( kml::kmlTag_maxFadeExtent, QString::number(lod->maxFadeExtent()) );
31  writer.writeEndElement();
32  return true;
33 }
34 
35 }
GeoTagWriter.h
Marble::GeoNode
A shared base class for all classes that are mapped to a specific tag (ie.
Definition: GeoDocument.h:60
Marble::kml::kmlTag_Lod
const char * kmlTag_Lod
Definition: KmlElementDictionary.cpp:109
Marble::kml::kmlTag_minFadeExtent
const char * kmlTag_minFadeExtent
Definition: KmlElementDictionary.cpp:121
Marble::kml::kmlTag_maxFadeExtent
const char * kmlTag_maxFadeExtent
Definition: KmlElementDictionary.cpp:113
GeoWriter.h
Marble::KmlLodTagWriter::write
virtual bool write(const GeoNode *node, GeoWriter &writer) const
Definition: KmlLodTagWriter.cpp:22
KmlElementDictionary.h
Marble::kml::kmlTag_maxLodPixels
const char * kmlTag_maxLodPixels
Definition: KmlElementDictionary.cpp:115
Marble::GeoWriter
Standard Marble way of writing XML This class is intended to be a standardised way of writing XML for...
Definition: GeoWriter.h:28
KmlLodTagWriter.h
GeoDataLod.h
Marble::GeoDataLod
The level of detail which indicates visibility and importance.
Definition: GeoDataLod.h:44
Marble::GeoDataLod::maxFadeExtent
qreal maxFadeExtent() const
Returns how "quickly" the region fades when the region is near. Returns the distance (counted from ma...
Definition: GeoDataLod.cpp:79
Marble::GeoDataLod::minLodPixels
qreal minLodPixels() const
Returns the minimum size that is needed for the region to be active Returns the minimum number of pix...
Definition: GeoDataLod.cpp:43
Marble::kml::kmlTag_minLodPixels
const char * kmlTag_minLodPixels
Definition: KmlElementDictionary.cpp:122
GeoDataTypes.h
Marble::GeoDataLod::minFadeExtent
qreal minFadeExtent() const
Returns how "quickly" the region fades when the region is far away. Returns the distance (counted fro...
Definition: GeoDataLod.cpp:67
Marble::GeoDataLod::maxLodPixels
qreal maxLodPixels() const
Returns the maximum size that is needed for the region to be active Returns the maximum number of pix...
Definition: GeoDataLod.cpp:55
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal