• 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
KmlLatLonAltBoxWriter.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 "KmlLatLonAltBoxWriter.h"
12 
13 #include "GeoDataLatLonAltBox.h"
14 #include "GeoDataTypes.h"
15 #include "GeoWriter.h"
16 #include "GeoTagWriter.h"
17 #include "KmlGroundOverlayWriter.h"
18 #include "KmlElementDictionary.h"
19 
20 namespace Marble
21 {
22 
23 bool KmlLatLonAltBoxWriter::write( const GeoNode *node,
24  GeoWriter& writer ) const
25 {
26  const GeoDataLatLonAltBox *latLonAltBox = static_cast<const GeoDataLatLonAltBox*>( node );
27  writer.writeStartElement(kml::kmlTag_LatLonAltBox);
28  writer.writeTextElement( kml::kmlTag_north, QString::number(latLonAltBox->north()) );
29  writer.writeTextElement( kml::kmlTag_south, QString::number(latLonAltBox->south()) );
30  writer.writeTextElement( kml::kmlTag_east, QString::number(latLonAltBox->east()) );
31  writer.writeTextElement( kml::kmlTag_west, QString::number(latLonAltBox->west()) );
32  writer.writeTextElement( kml::kmlTag_minAltitude, QString::number(latLonAltBox->minAltitude()) );
33  writer.writeTextElement( kml::kmlTag_maxAltitude, QString::number(latLonAltBox->maxAltitude()) );
34  QString const altitudeMode = KmlGroundOverlayWriter::altitudeModeToString( latLonAltBox->altitudeMode() );
35  writer.writeTextElement( kml::kmlTag_altitudeMode, altitudeMode );
36  writer.writeEndElement();
37  return true;
38 }
39 
40 }
GeoTagWriter.h
Marble::GeoNode
A shared base class for all classes that are mapped to a specific tag (ie.
Definition: GeoDocument.h:60
Marble::KmlGroundOverlayWriter::altitudeModeToString
static QString altitudeModeToString(AltitudeMode mode)
Definition: KmlGroundOverlayWriter.cpp:53
Marble::kml::kmlTag_north
const char * kmlTag_north
Definition: KmlElementDictionary.cpp:130
Marble::GeoDataLatLonAltBox::altitudeMode
AltitudeMode altitudeMode() const
Get the reference system for the altitude.
Definition: GeoDataLatLonAltBox.cpp:147
Marble::kml::kmlTag_altitudeMode
const char * kmlTag_altitudeMode
Definition: KmlElementDictionary.cpp:41
KmlGroundOverlayWriter.h
Marble::kml::kmlTag_maxAltitude
const char * kmlTag_maxAltitude
Definition: KmlElementDictionary.cpp:112
Marble::kml::kmlTag_west
const char * kmlTag_west
Definition: KmlElementDictionary.cpp:199
GeoWriter.h
Marble::GeoDataLatLonBox::north
qreal north(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the northern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:93
Marble::GeoDataLatLonBox::east
qreal east(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the eastern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:135
Marble::kml::kmlTag_LatLonAltBox
const char * kmlTag_LatLonAltBox
Definition: KmlElementDictionary.cpp:95
KmlElementDictionary.h
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
KmlLatLonAltBoxWriter.h
Marble::GeoDataLatLonAltBox::maxAltitude
qreal maxAltitude() const
Get the upper altitude boundary of the bounding box.
Definition: GeoDataLatLonAltBox.cpp:137
Marble::GeoDataLatLonBox::west
qreal west(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the western boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:156
Marble::kml::kmlTag_minAltitude
const char * kmlTag_minAltitude
Definition: KmlElementDictionary.cpp:120
GeoDataLatLonAltBox.h
Marble::kml::kmlTag_south
const char * kmlTag_south
Definition: KmlElementDictionary.cpp:173
Marble::GeoDataLatLonBox::south
qreal south(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the southern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:114
Marble::KmlLatLonAltBoxWriter::write
virtual bool write(const GeoNode *node, GeoWriter &writer) const
Definition: KmlLatLonAltBoxWriter.cpp:23
Marble::kml::kmlTag_east
const char * kmlTag_east
Definition: KmlElementDictionary.cpp:64
GeoDataTypes.h
Marble::GeoDataLatLonAltBox
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
Marble::GeoDataLatLonAltBox::minAltitude
qreal minAltitude() const
Get the lower altitude boundary of the bounding box.
Definition: GeoDataLatLonAltBox.cpp:127
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