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

marble

  • Marble
  • GeoDataDocument
Public Member Functions | List of all members
Marble::GeoDataDocument Class Reference

#include <GeoDataDocument.h>

Inheritance diagram for Marble::GeoDataDocument:
Inheritance graph
[legend]

Public Member Functions

 GeoDataDocument ()
 
 GeoDataDocument (const GeoDataDocument &other)
 
 ~GeoDataDocument ()
 
void addStyle (const GeoDataStyle &style)
 
void addStyleMap (const GeoDataStyleMap &map)
 
QString baseUri () const
 
DocumentRole documentRole () const
 
QString fileName () const
 
virtual bool isGeoDataDocument () const
 
GeoDataNetworkLinkControl networkLinkControl () const
 
virtual void pack (QDataStream &stream) const
 
QString property () const
 
void removeStyle (const QString &styleId)
 
void removeStyleMap (const QString &mapId)
 
void setBaseUri (const QString &baseUri)
 
void setDocumentRole (DocumentRole role)
 
void setFileName (const QString &value)
 
void setNetworkLinkControl (const GeoDataNetworkLinkControl &networkLinkControl)
 
void setProperty (QString property)
 
GeoDataStyle & style (const QString &styleId) const
 
GeoDataStyleMap & styleMap (const QString &styleId) const
 
QList< GeoDataStyleMap > styleMaps () const
 
QList< GeoDataStyle > styles () const
 
virtual void unpack (QDataStream &stream)
 
- Public Member Functions inherited from Marble::GeoDocument
virtual ~GeoDocument ()
 
virtual bool isGeoSceneDocument () const
 
- Public Member Functions inherited from Marble::GeoDataContainer
 GeoDataContainer ()
 
 GeoDataContainer (const GeoDataContainer &other)
 
virtual ~GeoDataContainer ()
 
void append (GeoDataFeature *other)
 
GeoDataFeature & at (int pos)
 
const GeoDataFeature & at (int pos) const
 
QVector< GeoDataFeature * >
::Iterator 
begin ()
 
GeoDataFeature * child (int)
 
const GeoDataFeature * child (int) const
 
int childPosition (const GeoDataFeature *child) const
 
void clear ()
 
QVector< GeoDataFeature * >
::ConstIterator 
constBegin () const
 
QVector< GeoDataFeature * >
::ConstIterator 
constEnd () const
 
QVector< GeoDataFeature * >
::Iterator 
end ()
 
QVector< GeoDataFeature * > featureList () const
 
GeoDataFeature & first ()
 
const GeoDataFeature & first () const
 
QVector< GeoDataFolder * > folderList () const
 
void insert (GeoDataFeature *other, int index)
 
GeoDataFeature & last ()
 
const GeoDataFeature & last () const
 
GeoDataLatLonAltBox latLonAltBox () const
 
GeoDataContainerPrivate * p () const
 
QVector< GeoDataPlacemark * > placemarkList () const
 
void remove (int index)
 
int size () const
 
- Public Member Functions inherited from Marble::GeoDataFeature
 GeoDataFeature ()
 
 GeoDataFeature (const QString &name)
 
 GeoDataFeature (const GeoDataFeature &other)
 
virtual ~GeoDataFeature ()
 
const GeoDataAbstractView * abstractView () const
 
GeoDataAbstractView * abstractView ()
 
QString address () const
 
QString description () const
 
bool descriptionIsCDATA () const
 
virtual void detach ()
 
GeoDataExtendedData & extendedData () const
 
EnumFeatureId featureId () const
 
bool isGloballyVisible () const
 
bool isVisible () const
 
QString name () const
 
virtual const char * nodeType () const
 
GeoDataFeature & operator= (const GeoDataFeature &other)
 
QString phoneNumber () const
 
qint64 popularity () const
 
GeoDataRegion & region () const
 
const QString role () const
 
void setAbstractView (GeoDataAbstractView *abstractView)
 
void setAddress (const QString &value)
 
void setDescription (const QString &value)
 
void setDescriptionCDATA (bool cdata)
 
void setExtendedData (const GeoDataExtendedData &extendedData)
 
void setName (const QString &value)
 
void setPhoneNumber (const QString &value)
 
void setPopularity (qint64 popularity)
 
void setRegion (const GeoDataRegion &region)
 
void setRole (const QString &role)
 
void setStyle (GeoDataStyle *style)
 
void setStyleMap (const GeoDataStyleMap *map)
 
void setStyleUrl (const QString &value)
 
void setTimeSpan (const GeoDataTimeSpan &timeSpan)
 
void setTimeStamp (const GeoDataTimeStamp &timeStamp)
 
void setVisible (bool value)
 
void setVisualCategory (GeoDataVisualCategory category)
 
void setZoomLevel (int index)
 
const GeoDataStyle * style () const
 
const GeoDataStyleMap * styleMap () const
 
QString styleUrl () const
 
GeoDataTimeSpan & timeSpan () const
 
GeoDataTimeStamp & timeStamp () const
 
GeoDataVisualCategory visualCategory () const
 
int zoomLevel () const
 
- Public Member Functions inherited from Marble::GeoDataObject
 GeoDataObject ()
 
 GeoDataObject (const GeoDataObject &)
 
virtual ~GeoDataObject ()
 
int id () const
 
GeoDataObject & operator= (const GeoDataObject &)
 
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
 
- Public Member Functions inherited from Marble::GeoNode
 GeoNode ()
 
virtual ~GeoNode ()
 
- Public Member Functions inherited from Marble::Serializable
virtual ~Serializable ()
 

Additional Inherited Members

- Public Types inherited from Marble::GeoDataFeature
enum  GeoDataVisualCategory {
  None, Default, Unknown, SmallCity,
  SmallCountyCapital, SmallStateCapital, SmallNationCapital, MediumCity,
  MediumCountyCapital, MediumStateCapital, MediumNationCapital, BigCity,
  BigCountyCapital, BigStateCapital, BigNationCapital, LargeCity,
  LargeCountyCapital, LargeStateCapital, LargeNationCapital, Nation,
  Mountain, Volcano, Mons, Valley,
  Continent, Ocean, OtherTerrain, Crater,
  Mare, GeographicPole, MagneticPole, ShipWreck,
  AirPort, Observatory, Wikipedia, OsmSite,
  Coordinate, MannedLandingSite, RoboticRover, UnmannedSoftLandingSite,
  UnmannedHardLandingSite, Folder, Bookmark, NaturalWater,
  NaturalWood, HighwaySteps, HighwayUnknown, HighwayPath,
  HighwayTrack, HighwayPedestrian, HighwayService, HighwayRoad,
  HighwayTertiaryLink, HighwayTertiary, HighwaySecondaryLink, HighwaySecondary,
  HighwayPrimaryLink, HighwayPrimary, HighwayTrunkLink, HighwayTrunk,
  HighwayMotorwayLink, HighwayMotorway, Building, AccomodationCamping,
  AccomodationHostel, AccomodationHotel, AccomodationMotel, AccomodationYouthHostel,
  AmenityLibrary, EducationCollege, EducationSchool, EducationUniversity,
  FoodBar, FoodBiergarten, FoodCafe, FoodFastFood,
  FoodPub, FoodRestaurant, HealthDoctors, HealthHospital,
  HealthPharmacy, MoneyAtm, MoneyBank, ShoppingBeverages,
  ShoppingHifi, ShoppingSupermarket, TouristAttraction, TouristCastle,
  TouristCinema, TouristMonument, TouristMuseum, TouristRuin,
  TouristTheatre, TouristThemePark, TouristViewPoint, TouristZoo,
  TransportAerodrome, TransportAirportTerminal, TransportBusStation, TransportBusStop,
  TransportCarShare, TransportFuel, TransportParking, TransportRentalBicycle,
  TransportRentalCar, TransportTaxiRank, TransportTrainStation, TransportTramStop,
  ReligionPlaceOfWorship, ReligionBahai, ReligionBuddhist, ReligionChristian,
  ReligionHindu, ReligionJain, ReligionJewish, ReligionShinto,
  ReligionSikh, LeisurePark, LanduseAllotments, LanduseBasin,
  LanduseCemetery, LanduseCommercial, LanduseConstruction, LanduseFarmland,
  LanduseFarmyard, LanduseGarages, LanduseGrass, LanduseIndustrial,
  LanduseLandfill, LanduseMeadow, LanduseMilitary, LanduseQuarry,
  LanduseRailway, LanduseReservoir, LanduseResidential, LanduseRetail,
  RailwayRail, RailwayTram, RailwayLightRail, RailwayAbandoned,
  RailwaySubway, RailwayPreserved, RailwayMiniature, RailwayConstruction,
  RailwayMonorail, RailwayFunicular, Satellite, LastIndex
}
 
- Static Public Member Functions inherited from Marble::GeoDataFeature
static QFont defaultFont ()
 
static QColor defaultLabelColor ()
 
static GeoDataVisualCategory OsmVisualCategory (const QString &keyValue)
 
static void resetDefaultStyles ()
 
static void setDefaultFont (const QFont &font)
 
static void setDefaultLabelColor (const QColor &color)
 
- Protected Member Functions inherited from Marble::GeoDocument
 GeoDocument ()
 
- Protected Member Functions inherited from Marble::GeoDataFeature
 GeoDataFeature (GeoDataFeaturePrivate *priv)
 
- Protected Attributes inherited from Marble::GeoDataFeature
GeoDataFeaturePrivate * d
 

Detailed Description

A container for Features, Styles and in the future Schemas.

A GeoDataDocument is a container for features, styles, and schemas. This element is required if your KML file uses schemas or shared styles. It is recommended that all Styles be defined in a Document, each with an id, and then later referenced by a styleUrl for a given Feature or StyleMap.

Definition at line 64 of file GeoDataDocument.h.

Constructor & Destructor Documentation

Marble::GeoDataDocument::GeoDataDocument ( )

Definition at line 38 of file GeoDataDocument.cpp.

Marble::GeoDataDocument::GeoDataDocument ( const GeoDataDocument &  other)

Definition at line 43 of file GeoDataDocument.cpp.

Marble::GeoDataDocument::~GeoDataDocument ( )

Definition at line 48 of file GeoDataDocument.cpp.

Member Function Documentation

void Marble::GeoDataDocument::addStyle ( const GeoDataStyle &  style)

Add a style to the style storage.

Parameters
stylethe new style

Definition at line 110 of file GeoDataDocument.cpp.

void Marble::GeoDataDocument::addStyleMap ( const GeoDataStyleMap &  map)

Add a stylemap to the stylemap storage.

Parameters
mapthe new stylemap

Definition at line 137 of file GeoDataDocument.cpp.

QString Marble::GeoDataDocument::baseUri ( ) const

The URI relative paths should be resolved against.

Definition at line 88 of file GeoDataDocument.cpp.

DocumentRole Marble::GeoDataDocument::documentRole ( ) const

Definition at line 57 of file GeoDataDocument.cpp.

QString Marble::GeoDataDocument::fileName ( ) const

The filename of the document.

The filename of the document is used internally to identify the files. it should never be empty as this could lead to potential collisions.

Returns
The filename of this document

Definition at line 77 of file GeoDataDocument.cpp.

virtual bool Marble::GeoDataDocument::isGeoDataDocument ( ) const
inlinevirtual

Provides type information for downcasting a GeoData.

Reimplemented from Marble::GeoDocument.

Definition at line 73 of file GeoDataDocument.h.

GeoDataNetworkLinkControl Marble::GeoDataDocument::networkLinkControl ( ) const

the NetworkLinkControl of the file

Definition at line 99 of file GeoDataDocument.cpp.

void Marble::GeoDataDocument::pack ( QDataStream &  stream) const
virtual

Serialize the container to a stream.

Parameters
streamthe stream

Reimplemented from Marble::GeoDataContainer.

Definition at line 160 of file GeoDataDocument.cpp.

QString Marble::GeoDataDocument::property ( ) const

Definition at line 67 of file GeoDataDocument.cpp.

void Marble::GeoDataDocument::removeStyle ( const QString &  styleId)

Add a style to the style storage.

Parameters
stylethe new style

Definition at line 117 of file GeoDataDocument.cpp.

void Marble::GeoDataDocument::removeStyleMap ( const QString &  mapId)

remove stylemap from storage

Parameters
mapIdthe styleId of the styleMap to be removed

Definition at line 144 of file GeoDataDocument.cpp.

void Marble::GeoDataDocument::setBaseUri ( const QString &  baseUri)

Change the URI for resolving relative paths.

See http://tools.ietf.org/html/rfc3986#section-5

Definition at line 93 of file GeoDataDocument.cpp.

void Marble::GeoDataDocument::setDocumentRole ( DocumentRole  role)

Definition at line 62 of file GeoDataDocument.cpp.

void Marble::GeoDataDocument::setFileName ( const QString &  value)

Set a new file name for this document.

Parameters
valuethe new name

Definition at line 82 of file GeoDataDocument.cpp.

void Marble::GeoDataDocument::setNetworkLinkControl ( const GeoDataNetworkLinkControl &  networkLinkControl)

set the NetworkLinkControl of the file

Definition at line 104 of file GeoDataDocument.cpp.

void Marble::GeoDataDocument::setProperty ( QString  property)

Definition at line 72 of file GeoDataDocument.cpp.

GeoDataStyle & Marble::GeoDataDocument::style ( const QString &  styleId) const

Return a style in the style storage.

Parameters
styleIdthe id of the style

Definition at line 123 of file GeoDataDocument.cpp.

GeoDataStyleMap & Marble::GeoDataDocument::styleMap ( const QString &  styleId) const

Return a style in the style storage.

Parameters
styleIdthe id of the style

Definition at line 150 of file GeoDataDocument.cpp.

QList< GeoDataStyleMap > Marble::GeoDataDocument::styleMaps ( ) const

dump a Vector of all styles

Definition at line 155 of file GeoDataDocument.cpp.

QList< GeoDataStyle > Marble::GeoDataDocument::styles ( ) const

dump a Vector of all styles

Definition at line 132 of file GeoDataDocument.cpp.

void Marble::GeoDataDocument::unpack ( QDataStream &  stream)
virtual

Unserialize the container from a stream.

Parameters
streamthe stream

Reimplemented from Marble::GeoDataContainer.

Definition at line 176 of file GeoDataDocument.cpp.


The documentation for this class was generated from the following files:
  • GeoDataDocument.h
  • GeoDataDocument.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal