marble
#include <GeoDataObject.h>
Public Member Functions | |
GeoDataObject () | |
GeoDataObject (const GeoDataObject &) | |
virtual | ~GeoDataObject () |
QString | 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 (const QString &value) |
virtual void | setParent (GeoDataObject *parent) |
void | setTargetId (const QString &value) |
QString | 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 () |
Protected Member Functions | |
virtual bool | equals (const GeoDataObject &other) const |
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
|
protectedvirtual |
Compares the value of id and targetId of the two objects.
- Returns
- true if they these values are equal or false otherwise
Definition at line 126 of file GeoDataObject.cpp.
QString 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::GeoDataLod, Marble::GeoDataSchema, Marble::GeoDataColorStyle, Marble::GeoDataLatLonBox, Marble::GeoDataGeometry, Marble::GeoDataLabelStyle, Marble::GeoDataLineStyle, Marble::GeoDataPolyStyle, Marble::GeoDataTimeStamp, Marble::GeoDataSimpleArrayData, Marble::GeoDataLink, Marble::GeoDataTimeSpan, Marble::GeoDataData, Marble::GeoDataIconStyle, Marble::GeoDataModel, Marble::GeoDataStyleSelector, Marble::GeoDataExtendedData, Marble::GeoDataListStyle, Marble::GeoDataStyleMap, Marble::GeoDataFlyTo, Marble::GeoDataHotSpot, Marble::GeoDataNetworkLinkControl, Marble::GeoDataChange, Marble::GeoDataCreate, Marble::GeoDataDelete, Marble::GeoDataPhotoOverlay, Marble::GeoDataItemIcon, Marble::GeoDataTour, Marble::GeoDataUpdate, Marble::GeoDataBalloonStyle, Marble::GeoDataLocation, Marble::GeoDataNetworkLink, Marble::GeoDataTimePrimitive, Marble::GeoDataGroundOverlay, Marble::GeoDataScale, Marble::GeoDataImagePyramid, Marble::GeoDataLatLonQuad, Marble::GeoDataOrientation, Marble::GeoDataViewVolume, Marble::GeoDataAnimatedUpdate, Marble::GeoDataScreenOverlay, Marble::GeoDataTourControl, Marble::GeoDataPlaylist, Marble::GeoDataWait, and Marble::GeoDataSoundCue.
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::GeoDataDocument, Marble::GeoDataPlacemark, Marble::GeoDataLatLonBox, Marble::GeoDataTrack, Marble::GeoDataLod, Marble::GeoDataContainer, Marble::GeoDataLatLonAltBox, Marble::GeoDataLineStyle, Marble::GeoDataRegion, Marble::GeoDataStyle, Marble::GeoDataLabelStyle, Marble::GeoDataExtendedData, Marble::GeoDataColorStyle, Marble::GeoDataPolyStyle, Marble::GeoDataMultiGeometry, Marble::GeoDataListStyle, Marble::GeoDataPoint, Marble::GeoDataMultiTrack, Marble::GeoDataTimeSpan, Marble::GeoDataData, Marble::GeoDataGeometry, Marble::GeoDataTimeStamp, Marble::GeoDataSchema, Marble::GeoDataStyleMap, Marble::GeoDataIconStyle, Marble::GeoDataStyleSelector, 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.
Definition at line 95 of file GeoDataObject.cpp.
void Marble::GeoDataObject::setId | ( | const QString & | 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 | ( | const QString & | value | ) |
set a new targetId of this object
- Parameters
-
value the new targetId value
Definition at line 90 of file GeoDataObject.cpp.
QString 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::GeoDataDocument, Marble::GeoDataLatLonBox, Marble::GeoDataTrack, Marble::GeoDataLod, Marble::GeoDataContainer, Marble::GeoDataLatLonAltBox, Marble::GeoDataLineStyle, Marble::GeoDataRegion, Marble::GeoDataStyle, Marble::GeoDataLabelStyle, Marble::GeoDataExtendedData, Marble::GeoDataColorStyle, Marble::GeoDataPolyStyle, Marble::GeoDataMultiGeometry, Marble::GeoDataListStyle, Marble::GeoDataTimeSpan, Marble::GeoDataPoint, Marble::GeoDataMultiTrack, Marble::GeoDataData, Marble::GeoDataTimeStamp, Marble::GeoDataGeometry, Marble::GeoDataStyleMap, Marble::GeoDataSchema, Marble::GeoDataIconStyle, Marble::GeoDataStyleSelector, 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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.