marble
KmlModelTagWriter.cpp
Go to the documentation of this file.
42 writer.writeOptionalElement( kml::kmlTag_longitude, QString::number( location.longitude( GeoDataCoordinates::Degree ) ), "0" );
43 writer.writeOptionalElement( kml::kmlTag_latitude, QString::number( location.latitude( GeoDataCoordinates::Degree ) ), "0" );
44 writer.writeOptionalElement( kml::kmlTag_altitude, QString::number( location.altitude() ), "0" );
52 writer.writeOptionalElement( kml::kmlTag_heading, QString::number( orientation.heading() ), "0" );
void writeOptionalElement(const QString &key, const QString &value, const QString &defaultValue=QString())
Convenience method to write value if value is not equal to defaultValue.
Definition: GeoWriter.cpp:98
static void writeAltitudeMode(GeoWriter &writer, AltitudeMode altitudeMode)
Definition: KmlGroundOverlayWriter.cpp:71
const GeoDataLocation & location() const
Definition: GeoDataModel.cpp:107
A shared base class for all classes that are mapped to a specific tag (ie.
Definition: GeoDocument.h:60
const GeoDataOrientation & orientation() const
Definition: GeoDataModel.cpp:157
Definition: GeoDataModel.h:29
const GeoDataResourceMap & resourceMap() const
Definition: GeoDataModel.cpp:172
static void writeIdentifiers(GeoWriter &writer, const GeoDataObject *object)
Parses the id and targetId attributes and assign their values to the given object.
Definition: KmlObjectTagWriter.cpp:15
QString number(int n, int base)
AltitudeMode altitudeMode() const
Definition: GeoDataGeometry.cpp:111
const char * kmlTag_ResourceMap
Definition: KmlElementDictionary.cpp:153
Standard Marble way of writing XML This class is intended to be a standardised way of writing XML for...
Definition: GeoWriter.h:29
QPair< QString, QString > QualifiedName
Object Name and Namespace Pair This type is intended to be used in a similar way to.
Definition: GeoTagWriter.h:48
const char * kmlTag_nameSpaceOgc22
Definition: KmlElementDictionary.cpp:34
bool writeElement(const GeoNode *object, GeoWriter &writer) const
Definition: GeoTagWriter.cpp:29
Definition: GeoDataScale.h:22
const char * kmlTag_Orientation
Definition: KmlElementDictionary.cpp:135
Definition: GeoDataLocation.h:23
double roll() const
Returns the rotation of the camera in degrees around the Z axis.
Definition: GeoDataOrientation.cpp:96
double tilt() const
Returns the rotation of the camera in degrees, around the X axis.
Definition: GeoDataOrientation.cpp:86
void writeTextElement(const QString &qualifiedName, const QString &text)
double heading() const
Returns by how much degrees the camera has been rotated about the normal.
Definition: GeoDataOrientation.cpp:76
static GeoTagWriterRegistrar s_writerModel(GeoTagWriter::QualifiedName(GeoDataTypes::GeoDataModelType, kml::kmlTag_nameSpaceOgc22), new KmlModelTagWriter)
Definition: GeoDataAlias.h:22
const char * kmlTag_sourceHref
Definition: KmlElementDictionary.cpp:172
void writeEndElement()
void writeStartElement(const QString &qualifiedName)
virtual bool write(const GeoNode *node, GeoWriter &writer) const
Definition: KmlModelTagWriter.cpp:29
const char * kmlTag_targetHref
Definition: KmlElementDictionary.cpp:180
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.