marble/src
GeoDataObject Class Reference
#include <GeoDataObject.h>

Detailed Description
A base class for all geodata objects.GeoDataObject is the base class for all geodata classes. It is never instantiated by itself, but is always used as part of a derived object.
The Geodata objects are all modeled after the Google KML files as defined in http://code.google.com/apis/kml/documentation/kml_tags_21.html.
A GeoDataObject contains 2 properties, both corresponding directly to tags in the KML files: the id, which is a unique identifier of the object, and a targetId which is used to reference other objects that have already been loaded.
The id property must only be set if the Update mechanism of KML is used, which is currently not supported by Marble.
Definition at line 37 of file GeoDataObject.h.
Public Member Functions | |
| virtual | ~GeoDataObject () |
| int | id () const |
| void | setId (int value) |
| int | targetId () const |
| void | setTargetId (int value) |
| virtual void | pack (QDataStream &stream) const |
| virtual void | unpack (QDataStream &steam) |
Protected Member Functions | |
| GeoDataObject () | |
Constructor & Destructor Documentation
| GeoDataObject::~GeoDataObject | ( | ) | [virtual] |
Definition at line 36 of file GeoDataObject.cpp.
| GeoDataObject::GeoDataObject | ( | ) | [protected] |
Definition at line 26 of file GeoDataObject.cpp.
Member Function Documentation
| int GeoDataObject::id | ( | ) | const |
| void GeoDataObject::setId | ( | int | value | ) |
Set the id of the object.
- Parameters:
-
value the new id value
Definition at line 49 of file GeoDataObject.cpp.
| int GeoDataObject::targetId | ( | ) | const |
| void GeoDataObject::setTargetId | ( | int | value | ) |
set a new targetId of this object
- Parameters:
-
value the new targetId value
Definition at line 59 of file GeoDataObject.cpp.
| void GeoDataObject::pack | ( | QDataStream & | stream | ) | const [virtual] |
Reimplemented from Serializable.
Implements Serializable.
Reimplemented in GeoDataColorStyle, GeoDataContainer, GeoDataFeature, GeoDataIconStyle, GeoDataLabelStyle, GeoDataPlacemark, GeoDataStyle, and GeoDataStyleSelector.
Definition at line 64 of file GeoDataObject.cpp.
| void GeoDataObject::unpack | ( | QDataStream & | steam | ) | [virtual] |
Reimplemented from Serializable.
Implements Serializable.
Reimplemented in GeoDataColorStyle, GeoDataContainer, GeoDataFeature, GeoDataIconStyle, GeoDataLabelStyle, GeoDataPlacemark, GeoDataStyle, and GeoDataStyleSelector.
Definition at line 70 of file GeoDataObject.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference