marble
KmlCameraTagWriter.cpp
Go to the documentation of this file.
25 static GeoTagWriterRegistrar s_writerCamera( GeoTagWriter::QualifiedName(GeoDataTypes::GeoDataCameraType,
53 writer.writeElement( "longitude", QString::number( camera->longitude( GeoDataCoordinates::Degree ), 'f', 10 ) );
56 writer.writeElement( "latitude", QString::number( camera->latitude( GeoDataCoordinates::Degree ), 'f', 10 ) );
qreal latitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the latitude of the GeoDataCamera object use the unit parameter to switch between Radian an...
Definition: GeoDataCamera.cpp:95
QString toString(Qt::DateFormat format) const
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
A shared base class for all classes that are mapped to a specific tag (ie.
Definition: GeoDocument.h:60
Definition: GeoDataCamera.h:22
const GeoDataTimeStamp & begin() const
return the beginning instant of a timespan
Definition: GeoDataTimeSpan.cpp:71
GeoDataTimeStamp & timeStamp()
Definition: GeoDataAbstractView.cpp:104
void writeElement(const QString &namespaceUri, const QString &key, const QString &value)
Convenience method to write value with key prefixed format namespaceUri.
Definition: GeoWriter.cpp:84
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)
const GeoDataTimeSpan & timeSpan() const
Definition: GeoDataAbstractView.cpp:89
qreal longitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the longitude of the GeoDataCamera object use the unit parameter to switch between Radian a...
Definition: GeoDataCamera.cpp:106
Standard Marble way of writing XML This class is intended to be a standardised way of writing XML for...
Definition: GeoWriter.h:29
static GeoTagWriterRegistrar s_writerCamera(GeoTagWriter::QualifiedName(GeoDataTypes::GeoDataCameraType, kml::kmlTag_nameSpaceOgc22), new KmlCameraTagWriter())
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 isValid() const
const char * GeoDataCameraType
Definition: GeoDataTypes.cpp:31
AltitudeMode altitudeMode() const
Definition: GeoDataAbstractView.cpp:119
virtual bool write(const GeoNode *node, GeoWriter &writer) const
Definition: KmlCameraTagWriter.cpp:30
qreal altitude() const
retrieves the altitude of the GeoDataCamera object
Definition: GeoDataCamera.cpp:84
void writeEndElement()
void writeStartElement(const QString &qualifiedName)
const GeoDataTimeStamp & end() const
return the ending instant of a timespan
Definition: GeoDataTimeSpan.cpp:47
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.