marble
#include <GeoDataDocument.h>

Public Member Functions | |
| GeoDataDocument () | |
| GeoDataDocument (const GeoDataDocument &other) | |
| ~GeoDataDocument () | |
| void | addStyle (const GeoDataStyle &style) |
| void | addStyleMap (const GeoDataStyleMap &map) |
| QString | baseUri () const |
| DocumentRole | documentRole () const |
| QString | fileName () const |
| virtual bool | isGeoDataDocument () const |
| GeoDataNetworkLinkControl | networkLinkControl () const |
| virtual void | pack (QDataStream &stream) const |
| QString | property () const |
| void | removeStyle (const QString &styleId) |
| void | removeStyleMap (const QString &mapId) |
| void | setBaseUri (const QString &baseUri) |
| void | setDocumentRole (DocumentRole role) |
| void | setFileName (const QString &value) |
| void | setNetworkLinkControl (const GeoDataNetworkLinkControl &networkLinkControl) |
| void | setProperty (QString property) |
| GeoDataStyle & | style (const QString &styleId) const |
| GeoDataStyleMap & | styleMap (const QString &styleId) const |
| QList< GeoDataStyleMap > | styleMaps () const |
| QList< GeoDataStyle > | styles () const |
| virtual void | unpack (QDataStream &stream) |
Public Member Functions inherited from Marble::GeoDocument | |
| virtual | ~GeoDocument () |
| virtual bool | isGeoSceneDocument () const |
Public Member Functions inherited from Marble::GeoDataContainer | |
| GeoDataContainer () | |
| GeoDataContainer (const GeoDataContainer &other) | |
| virtual | ~GeoDataContainer () |
| void | append (GeoDataFeature *other) |
| GeoDataFeature & | at (int pos) |
| const GeoDataFeature & | at (int pos) const |
| QVector< GeoDataFeature * > ::Iterator | begin () |
| GeoDataFeature * | child (int) |
| const GeoDataFeature * | child (int) const |
| int | childPosition (const GeoDataFeature *child) const |
| void | clear () |
| QVector< GeoDataFeature * > ::ConstIterator | constBegin () const |
| QVector< GeoDataFeature * > ::ConstIterator | constEnd () const |
| QVector< GeoDataFeature * > ::Iterator | end () |
| QVector< GeoDataFeature * > | featureList () const |
| GeoDataFeature & | first () |
| const GeoDataFeature & | first () const |
| QVector< GeoDataFolder * > | folderList () const |
| void | insert (GeoDataFeature *other, int index) |
| GeoDataFeature & | last () |
| const GeoDataFeature & | last () const |
| GeoDataLatLonAltBox | latLonAltBox () const |
| GeoDataContainerPrivate * | p () const |
| QVector< GeoDataPlacemark * > | placemarkList () const |
| void | remove (int index) |
| int | size () const |
Public Member Functions inherited from Marble::GeoDataFeature | |
| GeoDataFeature () | |
| GeoDataFeature (const QString &name) | |
| GeoDataFeature (const GeoDataFeature &other) | |
| virtual | ~GeoDataFeature () |
| const GeoDataAbstractView * | abstractView () const |
| GeoDataAbstractView * | abstractView () |
| QString | address () const |
| QString | description () const |
| bool | descriptionIsCDATA () const |
| virtual void | detach () |
| GeoDataExtendedData & | extendedData () const |
| EnumFeatureId | featureId () const |
| bool | isGloballyVisible () const |
| bool | isVisible () const |
| QString | name () const |
| virtual const char * | nodeType () const |
| GeoDataFeature & | operator= (const GeoDataFeature &other) |
| QString | phoneNumber () const |
| qint64 | popularity () const |
| GeoDataRegion & | region () const |
| const QString | role () const |
| void | setAbstractView (GeoDataAbstractView *abstractView) |
| void | setAddress (const QString &value) |
| void | setDescription (const QString &value) |
| void | setDescriptionCDATA (bool cdata) |
| void | setExtendedData (const GeoDataExtendedData &extendedData) |
| void | setName (const QString &value) |
| void | setPhoneNumber (const QString &value) |
| void | setPopularity (qint64 popularity) |
| void | setRegion (const GeoDataRegion ®ion) |
| void | setRole (const QString &role) |
| void | setStyle (GeoDataStyle *style) |
| void | setStyleMap (const GeoDataStyleMap *map) |
| void | setStyleUrl (const QString &value) |
| void | setTimeSpan (const GeoDataTimeSpan &timeSpan) |
| void | setTimeStamp (const GeoDataTimeStamp &timeStamp) |
| void | setVisible (bool value) |
| void | setVisualCategory (GeoDataVisualCategory category) |
| void | setZoomLevel (int index) |
| const GeoDataStyle * | style () const |
| const GeoDataStyleMap * | styleMap () const |
| QString | styleUrl () const |
| GeoDataTimeSpan & | timeSpan () const |
| GeoDataTimeStamp & | timeStamp () const |
| GeoDataVisualCategory | visualCategory () const |
| int | zoomLevel () const |
Public Member Functions inherited from Marble::GeoDataObject | |
| GeoDataObject () | |
| GeoDataObject (const GeoDataObject &) | |
| virtual | ~GeoDataObject () |
| int | id () const |
| GeoDataObject & | operator= (const GeoDataObject &) |
| virtual GeoDataObject * | parent () const |
| QString | resolvePath (const QString &relativePath) const |
| void | setId (int value) |
| virtual void | setParent (GeoDataObject *parent) |
| void | setTargetId (int value) |
| int | targetId () const |
Public Member Functions inherited from Marble::GeoNode | |
| GeoNode () | |
| virtual | ~GeoNode () |
Public Member Functions inherited from Marble::Serializable | |
| virtual | ~Serializable () |
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 64 of file GeoDataDocument.h.
Constructor & Destructor Documentation
| Marble::GeoDataDocument::GeoDataDocument | ( | ) |
Definition at line 38 of file GeoDataDocument.cpp.
| Marble::GeoDataDocument::GeoDataDocument | ( | const GeoDataDocument & | other | ) |
Definition at line 43 of file GeoDataDocument.cpp.
| Marble::GeoDataDocument::~GeoDataDocument | ( | ) |
Definition at line 48 of file GeoDataDocument.cpp.
Member Function Documentation
| void Marble::GeoDataDocument::addStyle | ( | const GeoDataStyle & | style | ) |
Add a style to the style storage.
- Parameters
-
style the new style
Definition at line 110 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 137 of file GeoDataDocument.cpp.
| QString Marble::GeoDataDocument::baseUri | ( | ) | const |
The URI relative paths should be resolved against.
Definition at line 88 of file GeoDataDocument.cpp.
| DocumentRole Marble::GeoDataDocument::documentRole | ( | ) | const |
Definition at line 57 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 77 of file GeoDataDocument.cpp.
|
inlinevirtual |
Provides type information for downcasting a GeoData.
Reimplemented from Marble::GeoDocument.
Definition at line 73 of file GeoDataDocument.h.
| GeoDataNetworkLinkControl Marble::GeoDataDocument::networkLinkControl | ( | ) | const |
the NetworkLinkControl of the file
Definition at line 99 of file GeoDataDocument.cpp.
|
virtual |
Serialize the container to a stream.
- Parameters
-
stream the stream
Reimplemented from Marble::GeoDataContainer.
Definition at line 160 of file GeoDataDocument.cpp.
| QString Marble::GeoDataDocument::property | ( | ) | const |
Definition at line 67 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 117 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 144 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 93 of file GeoDataDocument.cpp.
| void Marble::GeoDataDocument::setDocumentRole | ( | DocumentRole | role | ) |
Definition at line 62 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 82 of file GeoDataDocument.cpp.
| void Marble::GeoDataDocument::setNetworkLinkControl | ( | const GeoDataNetworkLinkControl & | networkLinkControl | ) |
set the NetworkLinkControl of the file
Definition at line 104 of file GeoDataDocument.cpp.
| void Marble::GeoDataDocument::setProperty | ( | QString | property | ) |
Definition at line 72 of file GeoDataDocument.cpp.
| GeoDataStyle & Marble::GeoDataDocument::style | ( | const QString & | styleId | ) | const |
Return a style in the style storage.
- Parameters
-
styleId the id of the style
Definition at line 123 of file GeoDataDocument.cpp.
| GeoDataStyleMap & Marble::GeoDataDocument::styleMap | ( | const QString & | styleId | ) | const |
Return a style in the style storage.
- Parameters
-
styleId the id of the style
Definition at line 150 of file GeoDataDocument.cpp.
| QList< GeoDataStyleMap > Marble::GeoDataDocument::styleMaps | ( | ) | const |
dump a Vector of all styles
Definition at line 155 of file GeoDataDocument.cpp.
| QList< GeoDataStyle > Marble::GeoDataDocument::styles | ( | ) | const |
dump a Vector of all styles
Definition at line 132 of file GeoDataDocument.cpp.
|
virtual |
Unserialize the container from a stream.
- Parameters
-
stream the stream
Reimplemented from Marble::GeoDataContainer.
Definition at line 176 of file GeoDataDocument.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Public Member Functions inherited from