Marble
GeoDataFeature.cpp
63 // TODO: some classes pass "other" on and thus get duplicated id, also in operator=. Align behaviour
141 if (!GeoDataObject::equals(other) || d->m_name != other_d->m_name || d->m_styleUrl != other_d->m_styleUrl || d->m_popularity != other_d->m_popularity
142 || d->m_zoomLevel != other_d->m_zoomLevel || d->m_visible != other_d->m_visible || d->m_role != other_d->m_role
155 if ((!d->m_featureExtendedData && other_d->m_featureExtendedData && other_d->m_featureExtendedData->m_abstractView)
156 || (d->m_featureExtendedData && d->m_featureExtendedData->m_abstractView && !other_d->m_featureExtendedData)) {
160 if ((d->m_featureExtendedData && other_d->m_featureExtendedData) && (*d->m_featureExtendedData != *other_d->m_featureExtendedData)) {
a class which allows to add custom data to KML Feature.
Definition GeoDataExtendedData.h:31
void setStyle(const QSharedPointer< GeoDataStyle > &style)
Sets the style of the placemark.
Definition GeoDataFeature.cpp:419
void unpack(QDataStream &stream) override
Unserialize the contents of the feature from stream.
Definition GeoDataFeature.cpp:522
QString description() const
Return the text description of the feature.
Definition GeoDataFeature.cpp:237
void setTimeSpan(const GeoDataTimeSpan &timeSpan)
Set the timespan of the feature.
Definition GeoDataFeature.cpp:372
bool descriptionIsCDATA() const
test if the description is CDATA or not CDATA allows for special characters to be included in XML and...
Definition GeoDataFeature.cpp:257
void setStyleUrl(const QString &value)
Set the styleUrl of this feature to value.
Definition GeoDataFeature.cpp:309
const GeoDataTimeSpan & timeSpan() const
Return the timespan of the feature.
Definition GeoDataFeature.cpp:360
bool isGloballyVisible() const
Return whether this feature is visible or not in the context of its parenting.
Definition GeoDataFeature.cpp:350
void setStyleMap(const GeoDataStyleMap *map)
Sets the styleMap of the feature.
Definition GeoDataFeature.cpp:475
void setExtendedData(const GeoDataExtendedData &extendedData)
Sets the ExtendedData of the feature.
Definition GeoDataFeature.cpp:433
void setRegion(const GeoDataRegion ®ion)
Sets the region of the placemark.
Definition GeoDataFeature.cpp:451
void setPhoneNumber(const QString &value)
Set the phone number of this feature to value.
Definition GeoDataFeature.cpp:227
const GeoDataRegion & region() const
Return the region assigned to the placemark.
Definition GeoDataFeature.cpp:439
void setPopularity(qint64 popularity)
Sets the popularity of the feature.
Definition GeoDataFeature.cpp:499
void setDescriptionCDATA(bool cdata)
Set the description to be CDATA See:
Definition GeoDataFeature.cpp:267
const GeoDataAbstractView * abstractView() const
Get the Abstract view of the feature.
Definition GeoDataFeature.cpp:273
void setZoomLevel(int index)
Sets the popularity index of the placemark.
Definition GeoDataFeature.cpp:487
QSharedPointer< const GeoDataStyle > customStyle() const
Return the style assigned to the placemark with setStyle (can be 0)
Definition GeoDataFeature.cpp:413
void setAddress(const QString &value)
Set the address of this feature to value.
Definition GeoDataFeature.cpp:207
const GeoDataTimeStamp & timeStamp() const
Return the timestamp of the feature.
Definition GeoDataFeature.cpp:378
QSharedPointer< const GeoDataStyle > style() const
Return the style assigned to the placemark, or a default style if none has been set.
Definition GeoDataFeature.cpp:402
GeoDataExtendedData & extendedData()
Return the ExtendedData assigned to the feature.
Definition GeoDataFeature.cpp:427
void pack(QDataStream &stream) const override
Serialize the contents of the feature to stream.
Definition GeoDataFeature.cpp:505
void setAbstractView(GeoDataAbstractView *abstractView)
Set the abstract view of the feature.
Definition GeoDataFeature.cpp:293
const GeoDataStyleMap * styleMap() const
Return a pointer to a GeoDataStyleMap object which represents the styleMap of this feature.
Definition GeoDataFeature.cpp:469
bool isVisible() const
Return whether this feature is visible or not.
Definition GeoDataFeature.cpp:338
void setTimeStamp(const GeoDataTimeStamp &timeStamp)
Set the timestamp of the feature.
Definition GeoDataFeature.cpp:390
void setDescription(const QString &value)
Set the description of this feature to value.
Definition GeoDataFeature.cpp:247
void setSnippet(const GeoDataSnippet &value)
Set a new name for this feature.
Definition GeoDataFeature.cpp:191
virtual bool equals(const GeoDataObject &other) const
Compares the value of id and targetId of the two objects.
Definition GeoDataObject.cpp:127
void pack(QDataStream &stream) const override
Reimplemented from Serializable.
Definition GeoDataObject.cpp:115
const GeoDataObject * parent() const
Provides the parent of the object in GeoDataContainers.
Definition GeoDataObject.cpp:61
void unpack(QDataStream &steam) override
Reimplemented from Serializable.
Definition GeoDataObject.cpp:121
GeoDataRegion describes the visibility and extent of a feature.
Definition GeoDataRegion.h:43
virtual const char * nodeType() const =0
Provides type information for downcasting a GeoNode.
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
T * geodata_cast(GeoDataObject *node)
Returns the given node cast to type T if the node was instantiated as type T; otherwise returns 0.
Definition GeoDataObject.h:103
T value(const Key &key, const T &defaultValue) const const
bool isEmpty() const const
QString & remove(QChar ch, Qt::CaseSensitivity cs)
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:08:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:08:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.