marble
#include <GeoDataPoint.h>
Public Types | |
typedef GeoDataCoordinates::Notation | Notation |
typedef GeoDataCoordinates::Unit | Unit |
typedef QVector< GeoDataPoint > | Vector |
Additional Inherited Members | |
Protected Member Functions inherited from Marble::GeoDataGeometry | |
bool | equals (const GeoDataGeometry &other) const |
Protected Member Functions inherited from Marble::GeoDataObject | |
virtual bool | equals (const GeoDataObject &other) const |
Detailed Description
A Geometry object representing a 3d point.
GeoDataPoint is the GeoDataGeometry class representing a single three dimensional point. It reflects the Point tag of KML spec and can be contained in objects holding GeoDataGeometry objects. Nevertheless GeoDataPoint shouldn't be used if you just want to store 3d coordinates of a point that doesn't need to be inherited from GeoDataGeometry In that case use GeoDataCoordinates instead which has nearly the same features and is much more light weight. Please consider this especially if you expect to have a high amount of points e.g. for line strings, linear rings and polygons.
- See also
- GeoDataCoordinates
- GeoDataGeometry
Definition at line 47 of file GeoDataPoint.h.
Member Typedef Documentation
Definition at line 50 of file GeoDataPoint.h.
Definition at line 51 of file GeoDataPoint.h.
Definition at line 81 of file GeoDataPoint.h.
Constructor & Destructor Documentation
Marble::GeoDataPoint::GeoDataPoint | ( | const GeoDataPoint & | other | ) |
Definition at line 40 of file GeoDataPoint.cpp.
|
explicit |
Definition at line 48 of file GeoDataPoint.cpp.
Marble::GeoDataPoint::GeoDataPoint | ( | ) |
Definition at line 55 of file GeoDataPoint.cpp.
Marble::GeoDataPoint::GeoDataPoint | ( | qreal | lon, |
qreal | lat, | ||
qreal | alt = 0 , |
||
GeoDataPoint::Unit | _unit = GeoDataCoordinates::Radian |
||
) |
create a geopoint from longitude and latitude
- Parameters
-
_lon longitude _lat latitude alt altitude (default: 0) _unit units that lon and lat get measured in (default for Radian: north pole at pi/2, southpole at -pi/2)
Definition at line 32 of file GeoDataPoint.cpp.
Marble::GeoDataPoint::~GeoDataPoint | ( | ) |
Definition at line 60 of file GeoDataPoint.cpp.
Member Function Documentation
const GeoDataCoordinates & Marble::GeoDataPoint::coordinates | ( | ) | const |
Definition at line 81 of file GeoDataPoint.cpp.
|
virtual |
Definition at line 101 of file GeoDataPoint.cpp.
|
virtual |
Provides type information for downcasting a GeoData.
Reimplemented from Marble::GeoDataGeometry.
Definition at line 96 of file GeoDataPoint.cpp.
bool Marble::GeoDataPoint::operator!= | ( | const GeoDataPoint & | other | ) | const |
Definition at line 70 of file GeoDataPoint.cpp.
bool Marble::GeoDataPoint::operator== | ( | const GeoDataPoint & | other | ) | const |
Definition at line 64 of file GeoDataPoint.cpp.
|
virtual |
Serialize the contents of the feature to stream
.
Reimplemented from Marble::GeoDataGeometry.
Definition at line 106 of file GeoDataPoint.cpp.
void Marble::GeoDataPoint::setCoordinates | ( | const GeoDataCoordinates & | coordinates | ) |
Definition at line 75 of file GeoDataPoint.cpp.
|
virtual |
Unserialize the contents of the feature from stream
.
Reimplemented from Marble::GeoDataGeometry.
Definition at line 111 of file GeoDataPoint.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.