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

marble

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

#include <GeoDataContainer.h>

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

Public Member Functions

 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
 
virtual void pack (QDataStream &stream) const
 
QVector< GeoDataPlacemark * > placemarkList () const
 
void remove (int index)
 
int size () const
 
virtual void unpack (QDataStream &stream)
 
- 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
 
const GeoDataStyle * customStyle () 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 setSnippet (const GeoDataSnippet &value)
 
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)
 
GeoDataSnippet snippet () const
 
const GeoDataStyle * style () const
 
const GeoDataStyleMap * styleMap () const
 
QString styleUrl () const
 
const GeoDataTimeSpan & timeSpan () const
 
GeoDataTimeSpan & timeSpan ()
 
const GeoDataTimeStamp & timeStamp () const
 
GeoDataTimeStamp & timeStamp ()
 
GeoDataVisualCategory visualCategory () const
 
int zoomLevel () const
 
- Public Member Functions inherited from Marble::GeoDataObject
 GeoDataObject ()
 
 GeoDataObject (const GeoDataObject &)
 
virtual ~GeoDataObject ()
 
QString id () const
 
GeoDataObject & operator= (const GeoDataObject &)
 
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
 
- Public Member Functions inherited from Marble::GeoNode
 GeoNode ()
 
virtual ~GeoNode ()
 
- Public Member Functions inherited from Marble::Serializable
virtual ~Serializable ()
 

Protected Member Functions

 GeoDataContainer (GeoDataContainerPrivate *priv)
 
bool equals (const GeoDataContainer &other) const
 
- Protected Member Functions inherited from Marble::GeoDataFeature
 GeoDataFeature (GeoDataFeaturePrivate *priv)
 
bool equals (const GeoDataFeature &other) const
 
- Protected Member Functions inherited from Marble::GeoDataObject
virtual bool equals (const GeoDataObject &other) const
 

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 Attributes inherited from Marble::GeoDataFeature
GeoDataFeaturePrivate * d
 

Detailed Description

A base class that can hold GeoDataFeatures.

GeoDataContainer is the base class for the GeoData container classes GeoDataFolder and GeoDataDocument. It is never instantiated by itself, but is always used as part of a derived class.

It is based on GeoDataFeature, and it only adds a QVector<GeodataFeature *> to it, making it a Feature that can hold other Features.

See also
GeoDataFolder
GeoDataDocument

Definition at line 47 of file GeoDataContainer.h.

Constructor & Destructor Documentation

Marble::GeoDataContainer::GeoDataContainer ( )

Default constructor.

Definition at line 37 of file GeoDataContainer.cpp.

Marble::GeoDataContainer::GeoDataContainer ( const GeoDataContainer &  other)

Definition at line 47 of file GeoDataContainer.cpp.

Marble::GeoDataContainer::~GeoDataContainer ( )
virtual

Destruct the GeoDataContainer.

Definition at line 52 of file GeoDataContainer.cpp.

Marble::GeoDataContainer::GeoDataContainer ( GeoDataContainerPrivate *  priv)
explicitprotected

Definition at line 42 of file GeoDataContainer.cpp.

Member Function Documentation

void Marble::GeoDataContainer::append ( GeoDataFeature *  other)

add an element

Definition at line 272 of file GeoDataContainer.cpp.

GeoDataFeature & Marble::GeoDataContainer::at ( int  pos)

return the reference of the element at a specific position

Definition at line 291 of file GeoDataContainer.cpp.

const GeoDataFeature & Marble::GeoDataContainer::at ( int  pos) const

Definition at line 297 of file GeoDataContainer.cpp.

QVector< GeoDataFeature * >::Iterator Marble::GeoDataContainer::begin ( )

Definition at line 331 of file GeoDataContainer.cpp.

GeoDataFeature * Marble::GeoDataContainer::child ( int  i)

returns the requested child item

Definition at line 239 of file GeoDataContainer.cpp.

const GeoDataFeature * Marble::GeoDataContainer::child ( int  i) const

returns the requested child item

Definition at line 244 of file GeoDataContainer.cpp.

int Marble::GeoDataContainer::childPosition ( const GeoDataFeature *  child) const

returns the position of an item in the list

Definition at line 252 of file GeoDataContainer.cpp.

void Marble::GeoDataContainer::clear ( )

Definition at line 324 of file GeoDataContainer.cpp.

QVector< GeoDataFeature * >::ConstIterator Marble::GeoDataContainer::constBegin ( ) const

Definition at line 341 of file GeoDataContainer.cpp.

QVector< GeoDataFeature * >::ConstIterator Marble::GeoDataContainer::constEnd ( ) const

Definition at line 346 of file GeoDataContainer.cpp.

QVector< GeoDataFeature * >::Iterator Marble::GeoDataContainer::end ( )

Definition at line 336 of file GeoDataContainer.cpp.

bool Marble::GeoDataContainer::equals ( const GeoDataContainer &  other) const
protected

Definition at line 66 of file GeoDataContainer.cpp.

QVector< GeoDataFeature * > Marble::GeoDataContainer::featureList ( ) const

A convenience function that returns all features in this container.

Returns
A QVector of GeoDataFeature
See also
GeoDataFeature

Definition at line 231 of file GeoDataContainer.cpp.

GeoDataFeature & Marble::GeoDataContainer::first ( )

return the reference of the last element for convenience

Definition at line 313 of file GeoDataContainer.cpp.

const GeoDataFeature & Marble::GeoDataContainer::first ( ) const

Definition at line 319 of file GeoDataContainer.cpp.

QVector< GeoDataFolder * > Marble::GeoDataContainer::folderList ( ) const

A convenience function that returns all folders in this container.

Returns
A QVector of GeoDataFolder
See also
GeoDataFolder

Definition at line 197 of file GeoDataContainer.cpp.

void Marble::GeoDataContainer::insert ( GeoDataFeature *  other,
int  index 
)

Definition at line 265 of file GeoDataContainer.cpp.

GeoDataFeature & Marble::GeoDataContainer::last ( )

return the reference of the last element for convenience

Definition at line 302 of file GeoDataContainer.cpp.

const GeoDataFeature & Marble::GeoDataContainer::last ( ) const

Definition at line 308 of file GeoDataContainer.cpp.

GeoDataLatLonAltBox Marble::GeoDataContainer::latLonAltBox ( ) const

A convenience function that returns the LatLonAltBox of all placemarks in this container.

Returns
The GeoDataLatLonAltBox
See also
GeoDataLatLonAltBox

Definition at line 160 of file GeoDataContainer.cpp.

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

Serialize the container to a stream.

Parameters
streamthe stream

Reimplemented from Marble::GeoDataFeature.

Reimplemented in Marble::GeoDataDocument.

Definition at line 351 of file GeoDataContainer.cpp.

QVector< GeoDataPlacemark * > Marble::GeoDataContainer::placemarkList ( ) const

A convenience function that returns all placemarks in this container.

Returns
A QVector of GeoDataPlacemark
See also
GeoDataPlacemark

Definition at line 214 of file GeoDataContainer.cpp.

void Marble::GeoDataContainer::remove ( int  index)

Definition at line 280 of file GeoDataContainer.cpp.

int Marble::GeoDataContainer::size ( ) const

size of the container

Definition at line 286 of file GeoDataContainer.cpp.

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

Unserialize the container from a stream.

Parameters
streamthe stream

Reimplemented from Marble::GeoDataFeature.

Reimplemented in Marble::GeoDataDocument.

Definition at line 367 of file GeoDataContainer.cpp.


The documentation for this class was generated from the following files:
  • GeoDataContainer.h
  • GeoDataContainer.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:44 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
  • 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