marble
#include <GeoDataPoint.h>
![Inheritance graph](classMarble_1_1GeoDataPoint__inherit__graph.png)
Public Types | |
typedef GeoDataCoordinates::Notation | Notation |
typedef GeoDataCoordinates::Unit | Unit |
typedef QVector< GeoDataPoint > | Vector |
Public Member Functions | |
GeoDataPoint (const GeoDataPoint &other) | |
GeoDataPoint (const GeoDataCoordinates &other) | |
GeoDataPoint (const GeoDataGeometry &other) | |
GeoDataPoint () | |
GeoDataPoint (qreal lon, qreal lat, qreal alt=0, GeoDataPoint::Unit _unit=GeoDataCoordinates::Radian) | |
~GeoDataPoint () | |
const GeoDataCoordinates & | coordinates () const |
virtual void | detach () |
virtual const char * | nodeType () const |
virtual void | pack (QDataStream &stream) const |
void | setCoordinates (const GeoDataCoordinates &coordinates) |
virtual void | unpack (QDataStream &stream) |
![]() | |
GeoDataGeometry () | |
GeoDataGeometry (const GeoDataGeometry &other) | |
virtual | ~GeoDataGeometry () |
AltitudeMode | altitudeMode () const |
void | detach () |
bool | extrude () const |
virtual EnumGeometryId | geometryId () const |
virtual const GeoDataLatLonAltBox & | latLonAltBox () const |
GeoDataGeometry & | operator= (const GeoDataGeometry &other) |
void | setAltitudeMode (const AltitudeMode altitudeMode) |
void | setExtrude (bool extrude) |
![]() | |
GeoDataObject () | |
GeoDataObject (const GeoDataObject &) | |
virtual | ~GeoDataObject () |
int | id () const |
GeoDataObject & | operator= (const GeoDataObject &) |
virtual GeoDataObject * | parent () const |
QString | resolvePath (const QString &relativePath) const |
void | setId (int value) |
virtual void | setParent (GeoDataObject *parent) |
void | setTargetId (int value) |
int | targetId () const |
![]() | |
GeoNode () | |
virtual | ~GeoNode () |
![]() | |
virtual | ~Serializable () |
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.
typedef QVector<GeoDataPoint> Marble::GeoDataPoint::Vector |
Definition at line 79 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.
|
explicit |
Definition at line 55 of file GeoDataPoint.cpp.
Marble::GeoDataPoint::GeoDataPoint | ( | ) |
Definition at line 60 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 65 of file GeoDataPoint.cpp.
Member Function Documentation
const GeoDataCoordinates & Marble::GeoDataPoint::coordinates | ( | ) | const |
Definition at line 75 of file GeoDataPoint.cpp.
|
virtual |
Definition at line 90 of file GeoDataPoint.cpp.
|
virtual |
Provides type information for downcasting a GeoData.
Reimplemented from Marble::GeoDataGeometry.
Definition at line 85 of file GeoDataPoint.cpp.
|
virtual |
Serialize the contents of the feature to stream
.
Reimplemented from Marble::GeoDataGeometry.
Definition at line 95 of file GeoDataPoint.cpp.
void Marble::GeoDataPoint::setCoordinates | ( | const GeoDataCoordinates & | coordinates | ) |
Definition at line 69 of file GeoDataPoint.cpp.
|
virtual |
Unserialize the contents of the feature from stream
.
Reimplemented from Marble::GeoDataGeometry.
Definition at line 100 of file GeoDataPoint.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.