Search for usage in LXR

#include <GeoDataFeature.h>

Inheritance diagram for Marble::GeoDataFeature:

Public Member Functions

 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

 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
virtual bool equals (const GeoDataObject &other) const

Protected Attributes

GeoDataFeaturePrivate *const d_ptr

Detailed Description

A base class for all geodata features.

GeoDataFeature is the base class for most geodata classes that correspond to places on a map. It is never instantiated by itself, but is always used as part of a derived class.

See also

Definition at line 44 of file GeoDataFeature.h.

Constructor & Destructor Documentation

◆ GeoDataFeature()

Marble::GeoDataFeature::GeoDataFeature ( const QString name)

Create a new GeoDataFeature with name as its name.

Definition at line 47 of file GeoDataFeature.cpp.

Member Function Documentation

◆ abstractView()

GeoDataAbstractView * Marble::GeoDataFeature::abstractView ( ) const

Get the Abstract view of the feature.

Definition at line 283 of file GeoDataFeature.cpp.

◆ address()

QString Marble::GeoDataFeature::address ( ) const

Return the address of the feature.

Definition at line 207 of file GeoDataFeature.cpp.

◆ clone()

virtual GeoDataFeature* Marble::GeoDataFeature::clone ( ) const
pure virtual

Duplicate into another equal instance.

Implemented in Marble::GeoDataPlacemark, Marble::GeoDataDocument, and Marble::GeoDataFolder.

◆ customStyle()

GeoDataStyle::ConstPtr Marble::GeoDataFeature::customStyle ( ) const

Return the style assigned to the placemark with setStyle (can be 0)

Definition at line 424 of file GeoDataFeature.cpp.

◆ description()

QString Marble::GeoDataFeature::description ( ) const

Return the text description of the feature.

Definition at line 247 of file GeoDataFeature.cpp.

◆ descriptionIsCDATA()

bool Marble::GeoDataFeature::descriptionIsCDATA ( ) const

test if the description is CDATA or not CDATA allows for special characters to be included in XML and also allows for other XML formats to be embedded in the XML without interfering with parser namespace.

true if the description should be treated as CDATA false if the description is a plain string

Definition at line 267 of file GeoDataFeature.cpp.

◆ equals()

bool Marble::GeoDataObject::equals

Compares the value of id and targetId of the two objects.

true if they these values are equal or false otherwise

Definition at line 126 of file GeoDataObject.cpp.

◆ extendedData()

GeoDataExtendedData & Marble::GeoDataFeature::extendedData ( )

Return the ExtendedData assigned to the feature.

Definition at line 407 of file GeoDataFeature.cpp.

◆ isGloballyVisible()

bool Marble::GeoDataFeature::isGloballyVisible ( ) const

Return whether this feature is visible or not in the context of its parenting.

Definition at line 360 of file GeoDataFeature.cpp.

◆ isVisible()

bool Marble::GeoDataFeature::isVisible ( ) const

Return whether this feature is visible or not.

Definition at line 348 of file GeoDataFeature.cpp.

◆ name()

QString Marble::GeoDataFeature::name ( ) const

The name of the feature.

The name of the feature should be a short string. It is often shown directly on the map and need therefore not take up much space.

The name of this feature

Definition at line 183 of file GeoDataFeature.cpp.

◆ pack()

void Marble::GeoDataFeature::pack ( QDataStream stream) const

Serialize the contents of the feature to stream.

Definition at line 516 of file GeoDataFeature.cpp.

◆ phoneNumber()

QString Marble::GeoDataFeature::phoneNumber ( ) const

Return the phone number of the feature.

Definition at line 227 of file GeoDataFeature.cpp.

◆ popularity()

qint64 Marble::GeoDataFeature::popularity ( ) const

Return the popularity of the feature.

Definition at line 504 of file GeoDataFeature.cpp.

◆ region()

GeoDataRegion & Marble::GeoDataFeature::region ( ) const

Return the region assigned to the placemark.

Definition at line 450 of file GeoDataFeature.cpp.

◆ role()

const QString Marble::GeoDataFeature::role ( ) const

Return the role of the placemark.

FIXME: describe roles here!

Definition at line 468 of file GeoDataFeature.cpp.

◆ setAbstractView()

void Marble::GeoDataFeature::setAbstractView ( GeoDataAbstractView abstractView)

Set the abstract view of the feature.

Definition at line 303 of file GeoDataFeature.cpp.

◆ setAddress()

void Marble::GeoDataFeature::setAddress ( const QString value)

Set the address of this feature to value.

Definition at line 217 of file GeoDataFeature.cpp.

◆ setDescription()

void Marble::GeoDataFeature::setDescription ( const QString value)

Set the description of this feature to value.

Definition at line 257 of file GeoDataFeature.cpp.

◆ setDescriptionCDATA()

void Marble::GeoDataFeature::setDescriptionCDATA ( bool  cdata)

Set the description to be CDATA See:

See also

Definition at line 277 of file GeoDataFeature.cpp.

◆ setExtendedData()

void Marble::GeoDataFeature::setExtendedData ( const GeoDataExtendedData extendedData)

Sets the ExtendedData of the feature.

extendedDatathe new ExtendedData to be used.

Definition at line 444 of file GeoDataFeature.cpp.

◆ setName()

void Marble::GeoDataFeature::setName ( const QString value)

Set a new name for this feature.

valuethe new name

Definition at line 189 of file GeoDataFeature.cpp.

◆ setPhoneNumber()

void Marble::GeoDataFeature::setPhoneNumber ( const QString value)

Set the phone number of this feature to value.

Definition at line 237 of file GeoDataFeature.cpp.

◆ setPopularity()

void Marble::GeoDataFeature::setPopularity ( qint64  popularity)

Sets the popularity of the feature.

popularitythe new popularity value

Definition at line 510 of file GeoDataFeature.cpp.

◆ setRegion()

void Marble::GeoDataFeature::setRegion ( const GeoDataRegion region)

Sets the region of the placemark.

regionnew value for the region

The feature is only shown when the region if active.

Definition at line 462 of file GeoDataFeature.cpp.

◆ setRole()

void Marble::GeoDataFeature::setRole ( const QString role)

Sets the role of the placemark.

rolethe new role to be used.

Definition at line 474 of file GeoDataFeature.cpp.

◆ setSnippet()

void Marble::GeoDataFeature::setSnippet ( const GeoDataSnippet &  value)

Set a new name for this feature.

valuethe new name

Definition at line 201 of file GeoDataFeature.cpp.

◆ setStyle()

void Marble::GeoDataFeature::setStyle ( const QSharedPointer< GeoDataStyle > &  style)

Sets the style of the placemark.

stylethe new style to be used.

Definition at line 430 of file GeoDataFeature.cpp.

◆ setStyleMap()

void Marble::GeoDataFeature::setStyleMap ( const GeoDataStyleMap map)

Sets the styleMap of the feature.

Definition at line 486 of file GeoDataFeature.cpp.

◆ setStyleUrl()

void Marble::GeoDataFeature::setStyleUrl ( const QString value)

Set the styleUrl of this feature to value.

Definition at line 319 of file GeoDataFeature.cpp.

◆ setTimeSpan()

void Marble::GeoDataFeature::setTimeSpan ( const GeoDataTimeSpan &  timeSpan)

Set the timespan of the feature.

timeSpannew of timespan.

Definition at line 383 of file GeoDataFeature.cpp.

◆ setTimeStamp()

void Marble::GeoDataFeature::setTimeStamp ( const GeoDataTimeStamp &  timeStamp)

Set the timestamp of the feature.

timeStampnew of the timestamp.

Definition at line 401 of file GeoDataFeature.cpp.

◆ setVisible()

void Marble::GeoDataFeature::setVisible ( bool  value)

Set a new value for visibility.

valuenew value for the visibility

This function sets the visibility, i.e. whether this feature should be shown or not. This can be changed either from a GUI or through some action of the program.

Definition at line 354 of file GeoDataFeature.cpp.

◆ setZoomLevel()

void Marble::GeoDataFeature::setZoomLevel ( int  index)

Sets the popularity index of the placemark.

indexthe new index to be used.

Definition at line 498 of file GeoDataFeature.cpp.

◆ snippet()

GeoDataSnippet Marble::GeoDataFeature::snippet ( ) const

A short description of the feature.

HTML markup is not supported.

When the Snippet is not supplied, the first lines of description should be used.
The name of this feature

Definition at line 195 of file GeoDataFeature.cpp.

◆ style()

GeoDataStyle::ConstPtr Marble::GeoDataFeature::style ( ) const

Return the style assigned to the placemark, or a default style if none has been set.

Definition at line 413 of file GeoDataFeature.cpp.

◆ styleMap()

const GeoDataStyleMap * Marble::GeoDataFeature::styleMap ( ) const

Return a pointer to a GeoDataStyleMap object which represents the styleMap of this feature.

A styleMap is simply a QMap<QString,QString> which can connect two styles with a keyword. This can be used to have a highlighted and a normal style.

See also

Definition at line 480 of file GeoDataFeature.cpp.

◆ styleUrl()

QString Marble::GeoDataFeature::styleUrl ( ) const

Return the styleUrl of the feature.

Definition at line 313 of file GeoDataFeature.cpp.

◆ timeSpan()

GeoDataTimeSpan & Marble::GeoDataFeature::timeSpan ( ) const

Return the timespan of the feature.

Definition at line 371 of file GeoDataFeature.cpp.

◆ timeStamp()

GeoDataTimeStamp & Marble::GeoDataFeature::timeStamp ( ) const

Return the timestamp of the feature.

Definition at line 389 of file GeoDataFeature.cpp.

◆ unpack()

void Marble::GeoDataFeature::unpack ( QDataStream stream)

Unserialize the contents of the feature from stream.

Definition at line 533 of file GeoDataFeature.cpp.

◆ zoomLevel()

int Marble::GeoDataFeature::zoomLevel ( ) const

Return the popularity index of the placemark.

The popularity index is a value which describes at which zoom level the placemark will be shown.

Definition at line 492 of file GeoDataFeature.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Wed Jun 29 2022 04:14:19 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.