marble
KmlColorStyleTagWriter.cpp
Go to the documentation of this file.
34 writer.writeOptionalElement( kml::kmlTag_color, formatColor( colorStyle->color() ), "ffffffff" );
35 QString const colorMode = colorStyle->colorMode() == GeoDataColorStyle::Random ? "random" : "normal";
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
A shared base class for all classes that are mapped to a specific tag (ie.
Definition: GeoDocument.h:60
virtual bool writeMid(const GeoNode *node, GeoWriter &writer) const =0
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
bool write(const GeoNode *node, GeoWriter &writer) const
Definition: KmlColorStyleTagWriter.cpp:28
static QString formatColor(const QColor &color)
Definition: KmlColorStyleTagWriter.cpp:43
int red() const
an abstract base class for various style classes
Definition: GeoDataColorStyle.h:64
Standard Marble way of writing XML This class is intended to be a standardised way of writing XML for...
Definition: GeoWriter.h:29
KmlColorStyleTagWriter(const QString &elementName)
Definition: KmlColorStyleTagWriter.cpp:22
int alpha() const
int green() const
int blue() const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
void writeEndElement()
void writeStartElement(const QString &qualifiedName)
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.