marble
#include <GeoDataDocument.h>
Detailed Description
A container for Features, Styles and in the future Schemas.
A GeoDataDocument is a container for features, styles, and schemas. This element is required if your KML file uses schemas or shared styles. It is recommended that all Styles be defined in a Document, each with an id, and then later referenced by a styleUrl for a given Feature or StyleMap.
Definition at line 65 of file GeoDataDocument.h.
Constructor & Destructor Documentation
Marble::GeoDataDocument::GeoDataDocument | ( | ) |
Definition at line 39 of file GeoDataDocument.cpp.
Marble::GeoDataDocument::GeoDataDocument | ( | const GeoDataDocument & | other | ) |
Definition at line 44 of file GeoDataDocument.cpp.
Marble::GeoDataDocument::~GeoDataDocument | ( | ) |
Definition at line 49 of file GeoDataDocument.cpp.
Member Function Documentation
void Marble::GeoDataDocument::addSchema | ( | const GeoDataSchema & | schema | ) |
Add a schema to simplemap storage.
- Parameters
-
schema the new schema
Definition at line 194 of file GeoDataDocument.cpp.
void Marble::GeoDataDocument::addStyle | ( | const GeoDataStyle & | style | ) |
Add a style to the style storage.
- Parameters
-
style the new style
Definition at line 134 of file GeoDataDocument.cpp.
void Marble::GeoDataDocument::addStyleMap | ( | const GeoDataStyleMap & | map | ) |
Add a stylemap to the stylemap storage.
- Parameters
-
map the new stylemap
Definition at line 166 of file GeoDataDocument.cpp.
QString Marble::GeoDataDocument::baseUri | ( | ) | const |
The URI relative paths should be resolved against.
Definition at line 112 of file GeoDataDocument.cpp.
DocumentRole Marble::GeoDataDocument::documentRole | ( | ) | const |
Definition at line 81 of file GeoDataDocument.cpp.
QString Marble::GeoDataDocument::fileName | ( | ) | const |
The filename of the document.
The filename of the document is used internally to identify the files. it should never be empty as this could lead to potential collisions.
- Returns
- The filename of this document
Definition at line 101 of file GeoDataDocument.cpp.
|
inlinevirtual |
Provides type information for downcasting a GeoData.
Reimplemented from Marble::GeoDocument.
Definition at line 77 of file GeoDataDocument.h.
GeoDataNetworkLinkControl Marble::GeoDataDocument::networkLinkControl | ( | ) | const |
the NetworkLinkControl of the file
Definition at line 123 of file GeoDataDocument.cpp.
bool Marble::GeoDataDocument::operator!= | ( | const GeoDataDocument & | other | ) | const |
Definition at line 76 of file GeoDataDocument.cpp.
bool Marble::GeoDataDocument::operator== | ( | const GeoDataDocument & | other | ) | const |
Definition at line 63 of file GeoDataDocument.cpp.
|
virtual |
Serialize the container to a stream.
- Parameters
-
stream the stream
Reimplemented from Marble::GeoDataContainer.
Definition at line 223 of file GeoDataDocument.cpp.
QString Marble::GeoDataDocument::property | ( | ) | const |
Definition at line 91 of file GeoDataDocument.cpp.
void Marble::GeoDataDocument::removeSchema | ( | const QString & | schemaId | ) |
remove a schema from schema storage
- Parameters
-
schemaId the of schema to be removed
Definition at line 201 of file GeoDataDocument.cpp.
void Marble::GeoDataDocument::removeStyle | ( | const QString & | styleId | ) |
Add a style to the style storage.
- Parameters
-
style the new style
Definition at line 141 of file GeoDataDocument.cpp.
void Marble::GeoDataDocument::removeStyleMap | ( | const QString & | mapId | ) |
remove stylemap from storage
- Parameters
-
mapId the styleId of the styleMap to be removed
Definition at line 173 of file GeoDataDocument.cpp.
GeoDataSchema Marble::GeoDataDocument::schema | ( | const QString & | schemaId | ) | const |
Returns a schema with id = schemaId form schema storage.
- Parameters
-
schemaId The id of schema to be returned
Definition at line 208 of file GeoDataDocument.cpp.
GeoDataSchema & Marble::GeoDataDocument::schema | ( | const QString & | schemaId | ) |
Definition at line 213 of file GeoDataDocument.cpp.
QList< GeoDataSchema > Marble::GeoDataDocument::schemas | ( | ) | const |
dump a vector of all schemas
Definition at line 218 of file GeoDataDocument.cpp.
void Marble::GeoDataDocument::setBaseUri | ( | const QString & | baseUri | ) |
Change the URI for resolving relative paths.
See http://tools.ietf.org/html/rfc3986#section-5
Definition at line 117 of file GeoDataDocument.cpp.
void Marble::GeoDataDocument::setDocumentRole | ( | DocumentRole | role | ) |
Definition at line 86 of file GeoDataDocument.cpp.
void Marble::GeoDataDocument::setFileName | ( | const QString & | value | ) |
Set a new file name for this document.
- Parameters
-
value the new name
Definition at line 106 of file GeoDataDocument.cpp.
void Marble::GeoDataDocument::setNetworkLinkControl | ( | const GeoDataNetworkLinkControl & | networkLinkControl | ) |
set the NetworkLinkControl of the file
Definition at line 128 of file GeoDataDocument.cpp.
void Marble::GeoDataDocument::setProperty | ( | QString | property | ) |
Definition at line 96 of file GeoDataDocument.cpp.
GeoDataStyle & Marble::GeoDataDocument::style | ( | const QString & | styleId | ) |
Return a style in the style storage.
- Parameters
-
styleId the id of the style
Definition at line 147 of file GeoDataDocument.cpp.
GeoDataStyle Marble::GeoDataDocument::style | ( | const QString & | styleId | ) | const |
Definition at line 156 of file GeoDataDocument.cpp.
GeoDataStyleMap & Marble::GeoDataDocument::styleMap | ( | const QString & | styleId | ) |
Return a style in the style storage.
- Parameters
-
styleId the id of the style
Definition at line 179 of file GeoDataDocument.cpp.
GeoDataStyleMap Marble::GeoDataDocument::styleMap | ( | const QString & | styleId | ) | const |
Definition at line 184 of file GeoDataDocument.cpp.
QList< GeoDataStyleMap > Marble::GeoDataDocument::styleMaps | ( | ) | const |
dump a Vector of all styles
Definition at line 189 of file GeoDataDocument.cpp.
QList< GeoDataStyle > Marble::GeoDataDocument::styles | ( | ) | const |
dump a Vector of all styles
Definition at line 161 of file GeoDataDocument.cpp.
|
virtual |
Unserialize the container from a stream.
- Parameters
-
stream the stream
Reimplemented from Marble::GeoDataContainer.
Definition at line 239 of file GeoDataDocument.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.