marble
#include <GeoDataObject.h>
Public Member Functions | |
GeoDataObject () | |
GeoDataObject (const GeoDataObject &) | |
virtual | ~GeoDataObject () |
int | id () const |
virtual const char * | nodeType () const =0 |
GeoDataObject & | operator= (const GeoDataObject &) |
virtual void | pack (QDataStream &stream) const |
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 |
virtual void | unpack (QDataStream &steam) |
Public Member Functions inherited from Marble::GeoNode | |
GeoNode () | |
virtual | ~GeoNode () |
Public Member Functions inherited from Marble::Serializable | |
virtual | ~Serializable () |
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 48 of file GeoDataObject.h.
Constructor & Destructor Documentation
Marble::GeoDataObject::GeoDataObject | ( | ) |
Definition at line 42 of file GeoDataObject.cpp.
Marble::GeoDataObject::GeoDataObject | ( | const GeoDataObject & | other | ) |
Definition at line 48 of file GeoDataObject.cpp.
|
virtual |
Definition at line 60 of file GeoDataObject.cpp.
Member Function Documentation
int Marble::GeoDataObject::id | ( | ) | const |
Get the id of the object.
Definition at line 75 of file GeoDataObject.cpp.
|
pure virtual |
Provides type information for downcasting a GeoNode.
Reimplemented from Marble::GeoNode.
Implemented in Marble::GeoDataTrack, Marble::GeoDataLookAt, Marble::GeoDataCamera, Marble::GeoDataRegion, Marble::GeoDataPoint, Marble::GeoDataLatLonAltBox, Marble::GeoDataStyle, Marble::GeoDataFeature, Marble::GeoDataColorStyle, Marble::GeoDataLod, Marble::GeoDataLatLonBox, Marble::GeoDataGeometry, Marble::GeoDataLabelStyle, Marble::GeoDataLineStyle, Marble::GeoDataPolyStyle, Marble::GeoDataSimpleArrayData, Marble::GeoDataLink, Marble::GeoDataTimeStamp, Marble::GeoDataStyleSelector, Marble::GeoDataData, Marble::GeoDataExtendedData, Marble::GeoDataStyleMap, Marble::GeoDataIconStyle, Marble::GeoDataModel, Marble::GeoDataTimeSpan, Marble::GeoDataHotSpot, Marble::GeoDataListStyle, Marble::GeoDataFlyTo, Marble::GeoDataNetworkLinkControl, Marble::GeoDataPhotoOverlay, Marble::GeoDataTimePrimitive, Marble::GeoDataItemIcon, Marble::GeoDataGroundOverlay, Marble::GeoDataBalloonStyle, Marble::GeoDataLocation, Marble::GeoDataNetworkLink, Marble::GeoDataImagePyramid, Marble::GeoDataLatLonQuad, Marble::GeoDataScale, Marble::GeoDataScreenOverlay, Marble::GeoDataUpdate, Marble::GeoDataViewVolume, Marble::GeoDataOrientation, Marble::GeoDataTourControl, and Marble::GeoDataPlaylist.
GeoDataObject & Marble::GeoDataObject::operator= | ( | const GeoDataObject & | rhs | ) |
Definition at line 54 of file GeoDataObject.cpp.
|
virtual |
Reimplemented from Serializable.
Implements Marble::Serializable.
Reimplemented in Marble::GeoDataFeature, Marble::GeoDataLineString, Marble::GeoDataPolygon, Marble::GeoDataLatLonBox, Marble::GeoDataPlacemark, Marble::GeoDataTrack, Marble::GeoDataDocument, Marble::GeoDataContainer, Marble::GeoDataLod, Marble::GeoDataLatLonAltBox, Marble::GeoDataLineStyle, Marble::GeoDataRegion, Marble::GeoDataLabelStyle, Marble::GeoDataStyle, Marble::GeoDataExtendedData, Marble::GeoDataColorStyle, Marble::GeoDataPolyStyle, Marble::GeoDataMultiGeometry, Marble::GeoDataListStyle, Marble::GeoDataPoint, Marble::GeoDataMultiTrack, Marble::GeoDataData, Marble::GeoDataGeometry, Marble::GeoDataTimeSpan, Marble::GeoDataStyleMap, Marble::GeoDataTimeStamp, Marble::GeoDataStyleSelector, Marble::GeoDataIconStyle, Marble::GeoDataBalloonStyle, Marble::GeoDataHotSpot, Marble::GeoDataSimpleArrayData, and Marble::GeoDataTimePrimitive.
Definition at line 114 of file GeoDataObject.cpp.
|
virtual |
Provides the parent of the object in GeoDataContainers.
Definition at line 65 of file GeoDataObject.cpp.
QString Marble::GeoDataObject::resolvePath | ( | const QString & | relativePath | ) | const |
Definition at line 95 of file GeoDataObject.cpp.
void Marble::GeoDataObject::setId | ( | int | value | ) |
Set the id of the object.
- Parameters
-
value the new id value
Definition at line 80 of file GeoDataObject.cpp.
|
virtual |
Sets the parent of the object.
Definition at line 70 of file GeoDataObject.cpp.
void Marble::GeoDataObject::setTargetId | ( | int | value | ) |
set a new targetId of this object
- Parameters
-
value the new targetId value
Definition at line 90 of file GeoDataObject.cpp.
int Marble::GeoDataObject::targetId | ( | ) | const |
Get the targetId of the object to be replaced.
Definition at line 85 of file GeoDataObject.cpp.
|
virtual |
Reimplemented from Serializable.
Implements Marble::Serializable.
Reimplemented in Marble::GeoDataFeature, Marble::GeoDataLineString, Marble::GeoDataPolygon, Marble::GeoDataPlacemark, Marble::GeoDataLatLonBox, Marble::GeoDataTrack, Marble::GeoDataDocument, Marble::GeoDataContainer, Marble::GeoDataLod, Marble::GeoDataLatLonAltBox, Marble::GeoDataRegion, Marble::GeoDataLineStyle, Marble::GeoDataLabelStyle, Marble::GeoDataStyle, Marble::GeoDataExtendedData, Marble::GeoDataColorStyle, Marble::GeoDataPolyStyle, Marble::GeoDataMultiGeometry, Marble::GeoDataListStyle, Marble::GeoDataPoint, Marble::GeoDataData, Marble::GeoDataMultiTrack, Marble::GeoDataGeometry, Marble::GeoDataTimeSpan, Marble::GeoDataTimeStamp, Marble::GeoDataStyleMap, Marble::GeoDataStyleSelector, Marble::GeoDataIconStyle, Marble::GeoDataBalloonStyle, Marble::GeoDataHotSpot, Marble::GeoDataSimpleArrayData, and Marble::GeoDataTimePrimitive.
Definition at line 120 of file GeoDataObject.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:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.