Marble::GeoDataContainer

Search for usage in LXR

Marble::GeoDataContainer Class Reference

#include <GeoDataContainer.h>

Inheritance diagram for Marble::GeoDataContainer:

Public Member Functions

 GeoDataContainer ()
 
 GeoDataContainer (const GeoDataContainer &other)
 
 ~GeoDataContainer () override
 
void append (GeoDataFeature *other)
 
GeoDataFeatureat (int pos)
 
const GeoDataFeatureat (int pos) const
 
QList< GeoDataFeature * >::Iterator begin ()
 
GeoDataFeaturechild (int)
 
const GeoDataFeaturechild (int) const
 
int childPosition (const GeoDataFeature *child) const
 
void clear ()
 
QList< GeoDataFeature * >::ConstIterator constBegin () const
 
QList< GeoDataFeature * >::ConstIterator constEnd () const
 
QList< GeoDataFeature * >::Iterator end ()
 
QList< GeoDataFeature * > featureList () const
 
GeoDataFeaturefirst ()
 
const GeoDataFeaturefirst () const
 
QList< GeoDataFolder * > folderList () const
 
GEODATA_DEPRECATED void insert (GeoDataFeature *other, int index)
 
void insert (int index, GeoDataFeature *feature)
 
bool isEmpty () const
 
GeoDataFeaturelast ()
 
const GeoDataFeaturelast () const
 
GeoDataLatLonAltBox latLonAltBox () const
 
GeoDataContaineroperator= (const GeoDataContainer &other)
 
void pack (QDataStream &stream) const override
 
QList< GeoDataPlacemark * > placemarkList () const
 
void remove (int index)
 
void remove (int index, int count)
 
int removeAll (GeoDataFeature *feature)
 
void removeAt (int index)
 
void removeFirst ()
 
void removeLast ()
 
bool removeOne (GeoDataFeature *feature)
 
int size () const
 
void unpack (QDataStream &stream) override
 
- Public Member Functions inherited from Marble::GeoDataFeature
 GeoDataFeature (const GeoDataFeature &other)
 
 GeoDataFeature (const QString &name)
 
GeoDataAbstractViewabstractView ()
 
const GeoDataAbstractViewabstractView () const
 
QString address () const
 
virtual GeoDataFeatureclone () const =0
 
QSharedPointer< const GeoDataStylecustomStyle () const
 
QString description () const
 
bool descriptionIsCDATA () const
 
GeoDataExtendedDataextendedData ()
 
const GeoDataExtendedDataextendedData () const
 
EnumFeatureId featureId () const
 
bool isGloballyVisible () const
 
bool isVisible () const
 
QString name () const
 
bool operator!= (const GeoDataFeature &other) const
 
GeoDataFeatureoperator= (const GeoDataFeature &other)
 
bool operator== (const GeoDataFeature &other) const
 
void pack (QDataStream &stream) const override
 
QString phoneNumber () const
 
qint64 popularity () const
 
GeoDataRegionregion ()
 
const GeoDataRegionregion () 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 (const QSharedPointer< 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 setZoomLevel (int index)
 
GeoDataSnippet snippet () const
 
QSharedPointer< const GeoDataStylestyle () const
 
const GeoDataStyleMapstyleMap () const
 
QString styleUrl () const
 
GeoDataTimeSpan & timeSpan ()
 
const GeoDataTimeSpan & timeSpan () const
 
GeoDataTimeStamp & timeStamp ()
 
const GeoDataTimeStamp & timeStamp () const
 
void unpack (QDataStream &stream) override
 
int zoomLevel () const
 
- Public Member Functions inherited from Marble::GeoDataObject
 GeoDataObject (const GeoDataObject &)
 
QString id () const
 
GeoDataObjectoperator= (const GeoDataObject &)
 
void pack (QDataStream &stream) const override
 
GeoDataObjectparent ()
 
const GeoDataObjectparent () const
 
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

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

Additional Inherited Members

- Protected Attributes inherited from Marble::GeoDataFeature
GeoDataFeaturePrivate *const d_ptr
 

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 QList<GeodataFeature *> to it, making it a Feature that can hold other Features.

See also
GeoDataFolder
GeoDataDocument

Definition at line 41 of file GeoDataContainer.h.

Constructor & Destructor Documentation

◆ GeoDataContainer() [1/4]

Marble::GeoDataContainer::GeoDataContainer ( )

Default constructor.

Definition at line 30 of file GeoDataContainer.cpp.

◆ GeoDataContainer() [2/4]

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

Definition at line 49 of file GeoDataContainer.cpp.

◆ ~GeoDataContainer()

Marble::GeoDataContainer::~GeoDataContainer ( )
overridedefault

Destruct the GeoDataContainer.

◆ GeoDataContainer() [3/4]

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

Definition at line 35 of file GeoDataContainer.cpp.

◆ GeoDataContainer() [4/4]

Marble::GeoDataContainer::GeoDataContainer ( const GeoDataContainer & other,
GeoDataContainerPrivate * priv )
protected

Definition at line 42 of file GeoDataContainer.cpp.

Member Function Documentation

◆ append()

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

add an element

Definition at line 198 of file GeoDataContainer.cpp.

◆ at() [1/2]

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

return the reference of the element at a specific position

Definition at line 258 of file GeoDataContainer.cpp.

◆ at() [2/2]

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

Definition at line 264 of file GeoDataContainer.cpp.

◆ begin()

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

Definition at line 301 of file GeoDataContainer.cpp.

◆ child() [1/2]

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

returns the requested child item

Definition at line 160 of file GeoDataContainer.cpp.

◆ child() [2/2]

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

returns the requested child item

Definition at line 166 of file GeoDataContainer.cpp.

◆ childPosition()

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

returns the position of an item in the list

Definition at line 175 of file GeoDataContainer.cpp.

◆ clear()

void Marble::GeoDataContainer::clear ( )

Definition at line 294 of file GeoDataContainer.cpp.

◆ constBegin()

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

Definition at line 313 of file GeoDataContainer.cpp.

◆ constEnd()

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

Definition at line 319 of file GeoDataContainer.cpp.

◆ end()

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

Definition at line 307 of file GeoDataContainer.cpp.

◆ equals() [1/2]

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

Definition at line 68 of file GeoDataContainer.cpp.

◆ equals() [2/2]

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

Definition at line 273 of file GeoDataFeature.cpp.

◆ featureList()

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

A convenience function that returns all features in this container.

Returns
A QList of GeoDataFeature
See also
GeoDataFeature

Definition at line 151 of file GeoDataContainer.cpp.

◆ first() [1/2]

GeoDataFeature & Marble::GeoDataContainer::first ( )

return the reference of the last element for convenience

Definition at line 282 of file GeoDataContainer.cpp.

◆ first() [2/2]

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

Definition at line 288 of file GeoDataContainer.cpp.

◆ folderList()

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

A convenience function that returns all folders in this container.

Returns
A QList of GeoDataFolder
See also
GeoDataFolder

Definition at line 121 of file GeoDataContainer.cpp.

◆ insert() [1/2]

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

Definition at line 186 of file GeoDataContainer.cpp.

◆ insert() [2/2]

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

inserts feature at position index in the container

Definition at line 191 of file GeoDataContainer.cpp.

◆ isEmpty()

bool Marble::GeoDataContainer::isEmpty ( ) const

Returns true if the container has size 0; otherwise returns false.

Definition at line 253 of file GeoDataContainer.cpp.

◆ last() [1/2]

GeoDataFeature & Marble::GeoDataContainer::last ( )

return the reference of the last element for convenience

Definition at line 270 of file GeoDataContainer.cpp.

◆ last() [2/2]

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

Definition at line 276 of file GeoDataContainer.cpp.

◆ latLonAltBox()

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 90 of file GeoDataContainer.cpp.

◆ operator=()

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

Definition at line 58 of file GeoDataContainer.cpp.

◆ pack()

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

Serialize the container to a stream.

Parameters
streamthe stream

Definition at line 325 of file GeoDataContainer.cpp.

◆ placemarkList()

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

A convenience function that returns all placemarks in this container.

Returns
A QList of GeoDataPlacemark
See also
GeoDataPlacemark

Definition at line 139 of file GeoDataContainer.cpp.

◆ remove() [1/2]

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

Definition at line 205 of file GeoDataContainer.cpp.

◆ remove() [2/2]

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

Definition at line 211 of file GeoDataContainer.cpp.

◆ removeAll()

int Marble::GeoDataContainer::removeAll ( GeoDataFeature * feature)

Definition at line 217 of file GeoDataContainer.cpp.

◆ removeAt()

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

Definition at line 223 of file GeoDataContainer.cpp.

◆ removeFirst()

void Marble::GeoDataContainer::removeFirst ( )

Definition at line 229 of file GeoDataContainer.cpp.

◆ removeLast()

void Marble::GeoDataContainer::removeLast ( )

Definition at line 235 of file GeoDataContainer.cpp.

◆ removeOne()

bool Marble::GeoDataContainer::removeOne ( GeoDataFeature * feature)

Definition at line 241 of file GeoDataContainer.cpp.

◆ size()

int Marble::GeoDataContainer::size ( ) const

size of the container

Definition at line 247 of file GeoDataContainer.cpp.

◆ unpack()

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

Unserialize the container from a stream.

Parameters
streamthe stream

Definition at line 339 of file GeoDataContainer.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.