digiKam
|
Public Types | |
enum | HasFlag { HasNothing = 0 , HasLatitude = 1 , HasLongitude = 2 , HasCoordinates = 3 , HasAltitude = 4 } |
typedef QList< GeoCoordinates > | List |
typedef QPair< GeoCoordinates, GeoCoordinates > | Pair |
typedef QList< GeoCoordinates::Pair > | PairList |
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) |
typedef QPair<GeoCoordinates, GeoCoordinates> Digikam::GeoCoordinates::Pair |
Digikam::GeoCoordinates::GeoCoordinates | ( | ) |
Referenced by fromGeoUrl(), fromMarbleCoordinates(), and makePair().
Digikam::GeoCoordinates::GeoCoordinates | ( | const double | inLat, |
const double | inLon | ||
) |
Digikam::GeoCoordinates::GeoCoordinates | ( | const double | inLat, |
const double | inLon, | ||
const double | inAlt | ||
) |
Digikam::GeoCoordinates::~GeoCoordinates | ( | ) |
double Digikam::GeoCoordinates::alt | ( | ) | const |
QString Digikam::GeoCoordinates::altString | ( | ) | const |
References HasAltitude.
Referenced by Digikam::coordinatesToClipboard(), and geoUrl().
void Digikam::GeoCoordinates::clear | ( | ) |
References HasNothing.
Referenced by Digikam::GPSDataContainer::clear().
void Digikam::GeoCoordinates::clearAlt | ( | ) |
References HasAltitude.
Referenced by Digikam::GPSDataContainer::clearAltitude().
|
static |
References GeoCoordinates(), and hasAltitude().
Referenced by Digikam::MapWidget::readSettingsFromGroup().
|
static |
@TODO looks like Marble does not differentiate between having and not having altitude..
References GeoCoordinates().
QString Digikam::GeoCoordinates::geoUrl | ( | ) | const |
References altString(), HasAltitude, hasCoordinates(), latString(), and lonString().
Referenced by Digikam::coordinatesToClipboard(), operator<<(), and Digikam::MapWidget::readSettingsFromGroup().
bool Digikam::GeoCoordinates::hasAltitude | ( | ) | const |
References HasAltitude.
Referenced by Digikam::coordinatesToClipboard(), Digikam::GPSItemContainer::data(), Digikam::GPSItemListContextMenu::eventFilter(), fromGeoUrl(), operator==(), Digikam::TrackCorrelatorThread::run(), Digikam::GPSDataContainer::setCoordinates(), Digikam::ItemPropertiesGPSTab::setGPSInfoList(), and toMarbleCoordinates().
bool Digikam::GeoCoordinates::hasCoordinates | ( | ) | const |
GeoCoordinates::HasFlags Digikam::GeoCoordinates::hasFlags | ( | ) | const |
bool Digikam::GeoCoordinates::hasLatitude | ( | ) | const |
References HasLatitude.
Referenced by Digikam::GPSItemContainer::data().
bool Digikam::GeoCoordinates::hasLongitude | ( | ) | const |
References HasLongitude.
Referenced by Digikam::GPSItemContainer::data().
double Digikam::GeoCoordinates::lat | ( | ) | const |
Referenced by Digikam::MapWidget::adjustBoundariesToGroupedMarkers(), Digikam::GPSItemContainer::data(), Digikam::BackendMarble::drawSearchRectangle(), Digikam::BackendMarble::eventFilter(), Digikam::TileIndex::fromCoordinates(), Digikam::GPSItemContainer::lessThan(), operator==(), Digikam::GPSMarkerTiler::prepareTiles(), Digikam::TrackCorrelatorThread::run(), Digikam::GPSItemContainer::saveProperties(), Digikam::BackendMarble::screenCoordinates(), Digikam::BackendMarble::setCenter(), Digikam::ItemPropertiesGPSTab::setGPSInfoList(), Digikam::MapWidget::slotClustersClicked(), and toMarbleCoordinates().
QString Digikam::GeoCoordinates::latString | ( | ) | const |
double Digikam::GeoCoordinates::lon | ( | ) | const |
Referenced by Digikam::MapWidget::adjustBoundariesToGroupedMarkers(), Digikam::GPSItemContainer::data(), Digikam::BackendMarble::drawSearchRectangle(), Digikam::BackendMarble::eventFilter(), Digikam::TileIndex::fromCoordinates(), Digikam::GPSItemContainer::lessThan(), operator==(), Digikam::GPSMarkerTiler::prepareTiles(), Digikam::TrackCorrelatorThread::run(), Digikam::GPSItemContainer::saveProperties(), Digikam::BackendMarble::screenCoordinates(), Digikam::BackendMarble::setCenter(), Digikam::ItemPropertiesGPSTab::setGPSInfoList(), Digikam::MapWidget::slotClustersClicked(), and toMarbleCoordinates().
QString Digikam::GeoCoordinates::lonString | ( | ) | const |
|
static |
References GeoCoordinates().
Referenced by Digikam::BackendMarble::getNormalizedBounds().
bool Digikam::GeoCoordinates::operator== | ( | const GeoCoordinates & | other | ) | const |
References alt(), hasAltitude(), hasCoordinates(), lat(), and lon().
bool Digikam::GeoCoordinates::sameLonLatAs | ( | const GeoCoordinates & | other | ) | const |
References HasCoordinates.
void Digikam::GeoCoordinates::setAlt | ( | const double | inAlt | ) |
References HasAltitude.
Referenced by Digikam::MapViewModelHelper::bestRepresentativeIndexFromList(), Digikam::MapViewModelHelper::itemCoordinates(), Digikam::GPSItemContainer::loadImageData(), Digikam::TrackCorrelatorThread::run(), Digikam::GPSDataContainer::setAltitude(), and Digikam::ItemPropertiesGPSTab::setMetadata().
void Digikam::GeoCoordinates::setLatLon | ( | const double | inLat, |
const double | inLon | ||
) |
References HasCoordinates.
Referenced by Digikam::TrackCorrelatorThread::run(), and Digikam::GPSDataContainer::setLatLon().
Marble::GeoDataCoordinates Digikam::GeoCoordinates::toMarbleCoordinates | ( | ) | const |
References alt(), hasAltitude(), lat(), and lon().
Referenced by Digikam::BackendMarble::GeoPainter_drawPixmapAtCoordinates(), and Digikam::BackendMarble::marbleCustomPaint().