marble
GeoDataPlacemark.cpp
Go to the documentation of this file.
40 // FIXME: violates invariant of this == p()->m_geometry->parent() for other (which could lead to crashes)
172 GeoDataCoordinates GeoDataPlacemark::coordinate( const QDateTime &dateTime, bool *iconAtCoordinates ) const
183 const GeoDataMultiGeometry *multiGeometry = static_cast<const GeoDataMultiGeometry *>( p()->m_geometry );
215 void GeoDataPlacemark::setCoordinate( qreal lon, qreal lat, qreal alt, GeoDataPoint::Unit _unit)
Definition: Serializable.h:42
const GeoDataLookAt * lookAt() const
Returns GeoDataLookAt object if lookAt is setup earlier otherwise It will convert GeoDataCoordinates ...
Definition: GeoDataPlacemark.cpp:162
virtual const char * nodeType() const
Provides type information for downcasting a GeoData.
Definition: GeoDataGeometry.cpp:77
const char * GeoDataMultiGeometryType
Definition: GeoDataTypes.cpp:60
Definition: GeoDataMultiTrack.h:25
A geometry for tracking objects made of (time, coordinates) pairs.
Definition: GeoDataTrack.h:54
bool m_isBalloonVisible
Definition: GeoDataPlacemark_p.h:112
virtual void pack(QDataStream &stream) const
Serialize the Placemark to a data stream.
Definition: GeoDataPlacemark.cpp:293
A LinearRing that allows to store a closed, contiguous set of line segments.
Definition: GeoDataLinearRing.h:68
virtual const char * nodeType() const
Definition: GeoDataPlacemark_p.h:96
virtual void unpack(QDataStream &stream)
Unserialize the contents of the feature from stream.
Definition: GeoDataMultiGeometry.cpp:227
const char * GeoDataPolygonType
Definition: GeoDataTypes.cpp:69
bool equals(const GeoDataFeature &other) const
Definition: GeoDataFeature.cpp:94
GeoDataCoordinates coordinate(const QDateTime &dateTime=QDateTime(), bool *iconAtCoordinates=0) const
Return the coordinates of the placemark at time dateTime as a GeoDataCoordinates. ...
Definition: GeoDataPlacemark.cpp:172
void setCoordinate(qreal longitude, qreal latitude, qreal altitude=0, GeoDataCoordinates::Unit _unit=GeoDataCoordinates::Radian)
Set the coordinate of the placemark in longitude and latitude.
Definition: GeoDataPlacemark.cpp:215
void setState(const QString &state)
Set the state state of the placemark.
Definition: GeoDataPlacemark.cpp:265
virtual void pack(QDataStream &stream) const
Serialize the contents of the feature to stream.
Definition: GeoDataFeature.cpp:844
Definition: GeoDataModel.h:29
virtual void unpack(QDataStream &stream)
Unserialize the LineString from a stream.
Definition: GeoDataLineString.cpp:662
Definition: Serializable.h:44
qint64 population() const
Return the population of the placemark.
Definition: GeoDataPlacemark.cpp:249
virtual void pack(QDataStream &stream) const
Serialize the contents of the feature to stream.
Definition: GeoDataGeometry.cpp:127
GeoDataGeometry * geometry()
The geometry of the GeoDataPlacemark is to be rendered to the marble map along with the icon at the c...
Definition: GeoDataPlacemark.cpp:152
virtual void setParent(GeoDataObject *parent)
Sets the parent of the object.
Definition: GeoDataObject.cpp:70
const GeoDataAbstractView * abstractView() const
Get the Abstract view of the feature.
Definition: GeoDataFeature.cpp:610
bool isBalloonVisible() const
Returns whether balloon is visible or not.
Definition: GeoDataPlacemark.cpp:282
void geoCoordinates(qreal &lon, qreal &lat, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
use this function to get the longitude and latitude with one call - use the unit parameter to switch ...
Definition: GeoDataCoordinates.cpp:715
bool operator!=(const GeoDataPlacemark &other) const
Definition: GeoDataPlacemark.cpp:137
QString m_countrycode
Definition: GeoDataPlacemark_p.h:108
Definition: Serializable.h:46
virtual void unpack(QDataStream &stream)
Unserialize the contents of the feature from stream.
Definition: GeoDataPoint.cpp:111
virtual void unpack(QDataStream &stream)
Unserialize the contents of the feature from stream.
Definition: GeoDataFeature.cpp:859
const char * GeoDataMultiTrackType
Definition: GeoDataTypes.cpp:61
const char * GeoDataLineStringType
Definition: GeoDataTypes.cpp:53
virtual QXmlStreamWriter & operator<<(QXmlStreamWriter &stream) const
Definition: GeoDataPlacemark.cpp:319
QVector< GeoDataGeometry * >::ConstIterator constBegin() const
Definition: GeoDataMultiGeometry.cpp:146
A LineString that allows to store a contiguous set of line segments.
Definition: GeoDataLineString.h:75
Definition: Serializable.h:48
qint64 m_population
Definition: GeoDataPlacemark_p.h:110
bool operator==(const GeoDataPlacemark &other) const
Equality operators.
Definition: GeoDataPlacemark.cpp:55
virtual GeoDataCoordinates center() const
returns the center of this box
Definition: GeoDataLatLonAltBox.cpp:151
void setPopulation(qint64 population)
Sets the population of the placemark.
Definition: GeoDataPlacemark.cpp:254
virtual void unpack(QDataStream &stream)
Unserialize the Polygon from a stream.
Definition: GeoDataPolygon.cpp:174
GeoDataCoordinates coordinatesAt(const QDateTime &when) const
If interpolate() is true, return the coordinates interpolated from the time values before and after w...
Definition: GeoDataTrack.cpp:124
Definition: GeoDataLookAt.h:23
QDateTime firstWhen() const
Return the time value of the first point in the track, or an invalid QDateTime if the track is empty...
Definition: GeoDataTrack.cpp:96
const QString countryCode() const
Return the country code of the placemark.
Definition: GeoDataPlacemark.cpp:271
virtual void unpack(QDataStream &stream)
Deserialize the Placemark from a data stream.
Definition: GeoDataPlacemark.cpp:325
QVector< GeoDataGeometry * >::ConstIterator constEnd() const
Definition: GeoDataMultiGeometry.cpp:151
qreal area() const
Return the area size of the feature in square km.
Definition: GeoDataPlacemark.cpp:238
void setArea(qreal area)
Set the area size of the feature in square km.
Definition: GeoDataPlacemark.cpp:243
void setBalloonVisible(bool visible)
Set visibility of the balloon.
Definition: GeoDataPlacemark.cpp:287
virtual const GeoDataLatLonAltBox & latLonAltBox() const
Definition: GeoDataGeometry.cpp:122
Definition: Serializable.h:43
void setCountryCode(const QString &code)
Set the country code of the placemark.
Definition: GeoDataPlacemark.cpp:276
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
void writeEndElement()
void writeStartElement(const QString &qualifiedName)
Definition: Serializable.h:45
Definition: Serializable.h:41
GeoDataGeometry * m_geometry
Definition: GeoDataPlacemark_p.h:107
virtual EnumGeometryId geometryId() const
Definition: GeoDataGeometry.cpp:82
void setGeometry(GeoDataGeometry *entry)
Sets the current Geometry of this Placemark.
Definition: GeoDataPlacemark.cpp:230
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.