Marble::GeoDataPoint

Search for usage in LXR

Marble::GeoDataPoint Class Reference

#include <GeoDataPoint.h>

Inheritance diagram for Marble::GeoDataPoint:

Public Types

using Notation = GeoDataCoordinates::Notation
 
using Unit = GeoDataCoordinates::Unit
 
using Vector = QList<GeoDataPoint>
 

Public Member Functions

 GeoDataPoint (const GeoDataCoordinates &other)
 
 GeoDataPoint (const GeoDataPoint &other)
 
 GeoDataPoint (qreal lon, qreal lat, qreal alt=0, GeoDataPoint::Unit _unit=GeoDataCoordinates::Radian)
 
const GeoDataCoordinatescoordinates () const
 
GeoDataGeometrycopy () const override
 
virtual void detach ()
 
EnumGeometryId geometryId () const override
 
const char * nodeType () const override
 
bool operator!= (const GeoDataPoint &other) const
 
bool operator== (const GeoDataPoint &other) const
 
void pack (QDataStream &stream) const override
 
void setCoordinates (const GeoDataCoordinates &coordinates)
 
void unpack (QDataStream &stream) override
 
- Public Member Functions inherited from Marble::GeoDataGeometry
AltitudeMode altitudeMode () const
 
void detach ()
 
bool extrude () const
 
virtual const GeoDataLatLonAltBoxlatLonAltBox () const
 
bool operator!= (const GeoDataGeometry &other) const
 
bool operator== (const GeoDataGeometry &other) const
 
void pack (QDataStream &stream) const override
 
void setAltitudeMode (const AltitudeMode altitudeMode)
 
void setExtrude (bool extrude)
 
void unpack (QDataStream &stream) override
 
- 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

Additional Inherited Members

- Protected Member Functions inherited from Marble::GeoDataGeometry
 GeoDataGeometry (const GeoDataGeometry &other)
 
 GeoDataGeometry (GeoDataGeometryPrivate *priv)
 
bool equals (const GeoDataGeometry &other) const
 
virtual bool equals (const GeoDataObject &other) const
 
GeoDataGeometryoperator= (const GeoDataGeometry &other)
 
- Protected Member Functions inherited from Marble::GeoDataObject
- Protected Attributes inherited from Marble::GeoDataGeometry
GeoDataGeometryPrivate * d_ptr
 

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 41 of file GeoDataPoint.h.

Member Typedef Documentation

◆ Notation

◆ Unit

◆ Vector

Definition at line 78 of file GeoDataPoint.h.

Constructor & Destructor Documentation

◆ GeoDataPoint() [1/4]

Marble::GeoDataPoint::GeoDataPoint ( const GeoDataPoint & other)

Definition at line 28 of file GeoDataPoint.cpp.

◆ GeoDataPoint() [2/4]

Marble::GeoDataPoint::GeoDataPoint ( const GeoDataCoordinates & other)
explicit

Definition at line 38 of file GeoDataPoint.cpp.

◆ GeoDataPoint() [3/4]

Marble::GeoDataPoint::GeoDataPoint ( )

Definition at line 46 of file GeoDataPoint.cpp.

◆ GeoDataPoint() [4/4]

Marble::GeoDataPoint::GeoDataPoint ( qreal lon,
qreal lat,
qreal alt = 0,
GeoDataPoint::Unit _unit = GeoDataCoordinates::Radian )

create a geopoint from longitude and latitude

Parameters
lonlongitude
latlatitude
altaltitude (default: 0)
_unitunits that lon and lat get measured in (default for Radian: north pole at pi/2, southpole at -pi/2)

Definition at line 20 of file GeoDataPoint.cpp.

◆ ~GeoDataPoint()

Marble::GeoDataPoint::~GeoDataPoint ( )
override

Definition at line 52 of file GeoDataPoint.cpp.

Member Function Documentation

◆ coordinates()

const GeoDataCoordinates & Marble::GeoDataPoint::coordinates ( ) const

Definition at line 86 of file GeoDataPoint.cpp.

◆ copy()

GeoDataGeometry * Marble::GeoDataPoint::copy ( ) const
overridevirtual

Implements Marble::GeoDataGeometry.

Definition at line 62 of file GeoDataPoint.cpp.

◆ detach()

void Marble::GeoDataPoint::detach ( )
virtual

Definition at line 97 of file GeoDataPoint.cpp.

◆ geometryId()

EnumGeometryId Marble::GeoDataPoint::geometryId ( ) const
overridevirtual

Implements Marble::GeoDataGeometry.

Definition at line 57 of file GeoDataPoint.cpp.

◆ nodeType()

const char * Marble::GeoDataPoint::nodeType ( ) const
overridevirtual

Provides type information for downcasting a GeoData.

Implements Marble::GeoNode.

Definition at line 92 of file GeoDataPoint.cpp.

◆ operator!=()

bool Marble::GeoDataPoint::operator!= ( const GeoDataPoint & other) const

Definition at line 72 of file GeoDataPoint.cpp.

◆ operator==()

bool Marble::GeoDataPoint::operator== ( const GeoDataPoint & other) const

Definition at line 67 of file GeoDataPoint.cpp.

◆ pack()

void Marble::GeoDataPoint::pack ( QDataStream & stream) const
override

Definition at line 102 of file GeoDataPoint.cpp.

◆ setCoordinates()

void Marble::GeoDataPoint::setCoordinates ( const GeoDataCoordinates & coordinates)

Definition at line 77 of file GeoDataPoint.cpp.

◆ unpack()

void Marble::GeoDataPoint::unpack ( QDataStream & stream)
override

Definition at line 109 of file GeoDataPoint.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.