digiKam
Digikam::GeoCoordinates Class Reference

Public Types

enum  HasFlag {
  HasNothing = 0 , HasLatitude = 1 , HasLongitude = 2 , HasCoordinates = 3 ,
  HasAltitude = 4
}
 
typedef QList< GeoCoordinatesList
 
typedef QPair< GeoCoordinates, GeoCoordinatesPair
 
typedef QList< GeoCoordinates::PairPairList
 

Public Member Functions

double alt () const
 
QString altString () const
 
void clear ()
 
void clearAlt ()
 
 GeoCoordinates ()
 
 GeoCoordinates (const double inLat, const double inLon)
 
 GeoCoordinates (const double inLat, const double inLon, const double inAlt)
 
QString geoUrl () const
 
bool hasAltitude () const
 
bool hasCoordinates () const
 
HasFlags hasFlags () const
 
bool hasLatitude () const
 
bool hasLongitude () const
 
double lat () const
 
QString latString () const
 
double lon () const
 
QString lonString () const
 
bool operator== (const GeoCoordinates &other) const
 
bool sameLonLatAs (const GeoCoordinates &other) const
 
void setAlt (const double inAlt)
 
void setLatLon (const double inLat, const double inLon)
 
Marble::GeoDataCoordinates toMarbleCoordinates () const
 
 ~GeoCoordinates ()
 

Static Public Member Functions

static GeoCoordinates fromGeoUrl (const QString &url, bool *const parsedOkay=nullptr)
 
static GeoCoordinates fromMarbleCoordinates (const Marble::GeoDataCoordinates &marbleCoordinates)
 
static Pair makePair (const qreal lat1, const qreal lon1, const qreal lat2, const qreal lon2)
 

Member Typedef Documentation

◆ List

◆ Pair

◆ PairList

Member Enumeration Documentation

◆ HasFlag

Enumerator
HasNothing 
HasLatitude 
HasLongitude 
HasCoordinates 
HasAltitude 

Constructor & Destructor Documentation

◆ GeoCoordinates() [1/3]

Digikam::GeoCoordinates::GeoCoordinates ( )

◆ GeoCoordinates() [2/3]

Digikam::GeoCoordinates::GeoCoordinates ( const double  inLat,
const double  inLon 
)

◆ GeoCoordinates() [3/3]

Digikam::GeoCoordinates::GeoCoordinates ( const double  inLat,
const double  inLon,
const double  inAlt 
)

◆ ~GeoCoordinates()

Digikam::GeoCoordinates::~GeoCoordinates ( )

Member Function Documentation

◆ alt()

◆ altString()

QString Digikam::GeoCoordinates::altString ( ) const

References HasAltitude.

Referenced by Digikam::coordinatesToClipboard(), and geoUrl().

◆ clear()

void Digikam::GeoCoordinates::clear ( )

References HasNothing.

Referenced by Digikam::GPSDataContainer::clear().

◆ clearAlt()

void Digikam::GeoCoordinates::clearAlt ( )

◆ fromGeoUrl()

GeoCoordinates Digikam::GeoCoordinates::fromGeoUrl ( const QString &  url,
bool *const  parsedOkay = nullptr 
)
static

◆ fromMarbleCoordinates()

GeoCoordinates Digikam::GeoCoordinates::fromMarbleCoordinates ( const Marble::GeoDataCoordinates &  marbleCoordinates)
static

@TODO looks like Marble does not differentiate between having and not having altitude..

References GeoCoordinates().

◆ geoUrl()

QString Digikam::GeoCoordinates::geoUrl ( ) const

◆ hasAltitude()

◆ hasCoordinates()

◆ hasFlags()

GeoCoordinates::HasFlags Digikam::GeoCoordinates::hasFlags ( ) const

◆ hasLatitude()

bool Digikam::GeoCoordinates::hasLatitude ( ) const

References HasLatitude.

Referenced by Digikam::GPSItemContainer::data().

◆ hasLongitude()

bool Digikam::GeoCoordinates::hasLongitude ( ) const

References HasLongitude.

Referenced by Digikam::GPSItemContainer::data().

◆ lat()

◆ latString()

◆ lon()

◆ lonString()

◆ makePair()

GeoCoordinates::Pair Digikam::GeoCoordinates::makePair ( const qreal  lat1,
const qreal  lon1,
const qreal  lat2,
const qreal  lon2 
)
static

◆ operator==()

bool Digikam::GeoCoordinates::operator== ( const GeoCoordinates other) const

◆ sameLonLatAs()

bool Digikam::GeoCoordinates::sameLonLatAs ( const GeoCoordinates other) const

References HasCoordinates.

◆ setAlt()

◆ setLatLon()

void Digikam::GeoCoordinates::setLatLon ( const double  inLat,
const double  inLon 
)

◆ toMarbleCoordinates()

Marble::GeoDataCoordinates Digikam::GeoCoordinates::toMarbleCoordinates ( ) const

The documentation for this class was generated from the following files: