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
 
QVector< GeoDataFeature * >::Iterator begin ()
 
GeoDataFeaturechild (int)
 
const GeoDataFeaturechild (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
 
GeoDataFeaturefirst ()
 
const GeoDataFeaturefirst () const
 
QVector< GeoDataFolder * > folderList () const
 
void insert (int index, GeoDataFeature *feature)
 
GEODATA_DEPRECATED void insert (GeoDataFeature *other, int index)
 
bool isEmpty () const
 
GeoDataFeaturelast ()
 
const GeoDataFeaturelast () const
 
GeoDataLatLonAltBox latLonAltBox () const
 
GeoDataContaineroperator= (const GeoDataContainer &other)
 
void pack (QDataStream &stream) const override
 
QVector< 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 QString &name)
 
 GeoDataFeature (const GeoDataFeature &other)
 
const GeoDataAbstractViewabstractView () const
 
GeoDataAbstractViewabstractView ()
 
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
 
const GeoDataRegionregion () const
 
GeoDataRegionregion ()
 
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
 
const GeoDataTimeSpan & timeSpan () const
 
GeoDataTimeSpan & timeSpan ()
 
const GeoDataTimeStamp & timeStamp () const
 
GeoDataTimeStamp & timeStamp ()
 
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
 
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

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

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

See also
GeoDataFolder
GeoDataDocument

Definition at line 42 of file GeoDataContainer.h.

Constructor & Destructor Documentation

Marble::GeoDataContainer::GeoDataContainer ( )

Default constructor.

Definition at line 31 of file GeoDataContainer.cpp.

Marble::GeoDataContainer::~GeoDataContainer ( )
override

Destruct the GeoDataContainer.

Definition at line 57 of file GeoDataContainer.cpp.

Member Function Documentation

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

add an element

Definition at line 205 of file GeoDataContainer.cpp.

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

return the reference of the element at a specific position

Definition at line 266 of file GeoDataContainer.cpp.

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

returns the requested child item

Definition at line 166 of file GeoDataContainer.cpp.

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

returns the requested child item

Definition at line 172 of file GeoDataContainer.cpp.

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

returns the position of an item in the list

Definition at line 181 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 157 of file GeoDataContainer.cpp.

GeoDataFeature & Marble::GeoDataContainer::first ( )

return the reference of the last element for convenience

Definition at line 290 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 127 of file GeoDataContainer.cpp.

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

inserts feature at position index in the container

Definition at line 198 of file GeoDataContainer.cpp.

bool Marble::GeoDataContainer::isEmpty ( ) const

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

Definition at line 261 of file GeoDataContainer.cpp.

GeoDataFeature & Marble::GeoDataContainer::last ( )

return the reference of the last element for convenience

Definition at line 278 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 93 of file GeoDataContainer.cpp.

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

Serialize the container to a stream.

Parameters
streamthe stream

Definition at line 333 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 145 of file GeoDataContainer.cpp.

int Marble::GeoDataContainer::size ( ) const

size of the container

Definition at line 255 of file GeoDataContainer.cpp.

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

Unserialize the container from a stream.

Parameters
streamthe stream

Definition at line 350 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-2021 The KDE developers.
Generated on Tue Oct 26 2021 23:21:27 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.