• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

marble/src

GeoDataObject Class Reference

#include <GeoDataObject.h>

Inheritance diagram for GeoDataObject:

Inheritance graph
[legend]

List of all members.


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

Get the id of the object.

Definition at line 44 of file GeoDataObject.cpp.

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

Get the targetId of the object to be replaced.

Definition at line 54 of file GeoDataObject.cpp.

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:
  • GeoDataObject.h
  • GeoDataObject.cpp

marble/src

Skip menu "marble/src"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal