Marble::GeoDataObject Class Reference

#include <GeoDataObject.h>

Inheritance diagram for Marble::GeoDataObject:

Public Member Functions

 GeoDataObject (const GeoDataObject &)
QString id () const
GeoDataObjectoperator= (const GeoDataObject &)
void pack (QDataStream &stream) const override
const GeoDataObjectparent () const
GeoDataObjectparent ()
QString resolvePath (const QString &relativePath) const
void setId (const QString &value)
void setParent (GeoDataObject *parent)
void setTargetId (const QString &value)
QString targetId () const
void unpack (QDataStream &steam) override
- Public Member Functions inherited from Marble::GeoNode
virtual const char * nodeType () const =0

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

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.

Member Function Documentation

bool Marble::GeoDataObject::equals ( const GeoDataObject other) const

Compares the value of id and targetId of the two objects.

true if they these values are equal or false otherwise

Definition at line 131 of file GeoDataObject.cpp.

QString Marble::GeoDataObject::id ( ) const

Get the id of the object.

Definition at line 80 of file GeoDataObject.cpp.

void Marble::GeoDataObject::pack ( QDataStream stream) const

Reimplemented from Serializable.

Definition at line 119 of file GeoDataObject.cpp.

const GeoDataObject * Marble::GeoDataObject::parent ( ) const

Provides the parent of the object in GeoDataContainers.

Definition at line 65 of file GeoDataObject.cpp.

void Marble::GeoDataObject::setId ( const QString value)

Set the id of the object.

valuethe new id value

Definition at line 85 of file GeoDataObject.cpp.

void Marble::GeoDataObject::setParent ( GeoDataObject parent)

Sets the parent of the object.

Definition at line 75 of file GeoDataObject.cpp.

void Marble::GeoDataObject::setTargetId ( const QString value)

set a new targetId of this object

valuethe new targetId value

Definition at line 95 of file GeoDataObject.cpp.

QString Marble::GeoDataObject::targetId ( ) const

Get the targetId of the object to be replaced.

Definition at line 90 of file GeoDataObject.cpp.

void Marble::GeoDataObject::unpack ( QDataStream steam)

Reimplemented from Serializable.

Definition at line 125 of file GeoDataObject.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Oct 27 2020 23:24:51 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.