digiKam
|
Classes | |
class | ComputerVisionScore |
class | INatBrowserDlg |
class | INatPlugin |
class | INatTalker |
class | INatWidget |
class | INatWindow |
class | SuggestTaxonCompletion |
class | Taxon |
class | TaxonEdit |
Typedefs | |
typedef QPair< QString, QList< Taxon > > | AutoCompletions |
typedef QPair< QString, QList< ComputerVisionScore > > | ImageScores |
typedef QPair< QString, QString > | Parameter |
Enumerations | |
enum | { ITEM_PHOTO_IDX = 0 , ITEM_NAME_IDX = 1 } |
enum | { INAT_API_TOKEN_EXPIRATION = 86000 , GEOLOCATION_PRECISION = 8 , RADIUS_PRECISION = 6 , EARTH_RADIUS_KM = 6371 , TIMEOUT_TIMER_RESOLUTION_SECS = 30 , RESPONSE_TIMEOUT_SECS = 300 , MAX_RETRIES = 5 } |
enum | { MAX_OBSERVATION_PHOTOS = 20 , MAX_DIMENSION = 2048 , MAX_EDITED_PLACES = 5 } |
Functions | |
double | distanceBetween (double latitude1, double longitude1, double latitude2, double longitude2) |
QHttpMultiPart * | getMultiPart (const QList< Parameter > ¶meters, const QString &imageName, const QString &imageNameArg, const QString &imagePath) |
QString | localizedDistance (double distMeters, char format, int precision) |
QString | localizedLocation (double latitude, double longitude, int precision) |
QString | localizedTaxonomicRank (const QString &rank) |
QString | localizedTimeDifference (quint64 diffSeconds) |
Variables | |
const bool | isEnglish |
const DItemsListView::ColumnType | ItemDate = DItemsListView::ColumnType::User1 |
const DItemsListView::ColumnType | ItemLocation = DItemsListView::ColumnType::User2 |
const QLocale | locale = QLocale() |
const double | meterInFeet = 3.28084 |
const double | meterInMiles = 0.00062137 |
typedef QPair< QString, QList< Taxon > > DigikamGenericINatPlugin::AutoCompletions |
typedef QPair<QString, QList<ComputerVisionScore> > DigikamGenericINatPlugin::ImageScores |
typedef QPair<QString, QString> DigikamGenericINatPlugin::Parameter |
multi-part message, used to upload pictures
anonymous enum |
anonymous enum |
double DigikamGenericINatPlugin::distanceBetween | ( | double | latitude1, |
double | longitude1, | ||
double | latitude2, | ||
double | longitude2 | ||
) |
returns distance in meters between two coordinates, Haversine formula
distance in meters between two geolocations
QString DigikamGenericINatPlugin::localizedDistance | ( | double | distMeters, |
char | format, | ||
int | precision | ||
) |
distance in local language; for US returns feet or miles instead of meters
References locale, meterInFeet, and meterInMiles.
QString DigikamGenericINatPlugin::localizedLocation | ( | double | latitude, |
double | longitude, | ||
int | precision | ||
) |
geolocation in local language
References locale.
QString DigikamGenericINatPlugin::localizedTaxonomicRank | ( | const QString & | rank | ) |
taxonomic rank (e.g. kingdom, order, genus, species) in local language
Referenced by DigikamGenericINatPlugin::Taxon::htmlName().
QString DigikamGenericINatPlugin::localizedTimeDifference | ( | quint64 | diffSeconds | ) |
time difference (e.g. "5 hours, 7 minutes") in local language
const bool DigikamGenericINatPlugin::isEnglish |
const DItemsListView::ColumnType DigikamGenericINatPlugin::ItemDate = DItemsListView::ColumnType::User1 |
Referenced by DigikamGenericINatPlugin::INatWidget::INatWidget().
const DItemsListView::ColumnType DigikamGenericINatPlugin::ItemLocation = DItemsListView::ColumnType::User2 |
Referenced by DigikamGenericINatPlugin::INatWidget::INatWidget().
const QLocale DigikamGenericINatPlugin::locale = QLocale() |
Referenced by DigikamGenericINatPlugin::INatTalker::closestObservation(), DigikamGenericINatPlugin::INatTalker::computerVision(), Digikam::DDatePicker::dateChangedSlot(), Digikam::DDateTable::dateFromPos(), Digikam::DDatePicker::lineEnterPressed(), Digikam::loadStdQtTranslationFiles(), localizedDistance(), localizedLocation(), Digikam::DDateTable::mousePressEvent(), Digikam::DDateTable::posFromDate(), Digikam::DDatePicker::selectMonthClicked(), Digikam::DDateTable::setFontSize(), Digikam::DDatePicker::setFontSize(), DigikamGenericINatPlugin::INatTalker::taxonAutoCompletions(), Digikam::DatePickerValidator::validate(), Digikam::DSliderSpinBox::valueString(), and Digikam::DDoubleSliderSpinBox::valueString().
const double DigikamGenericINatPlugin::meterInFeet = 3.28084 |
conversion factors for the US, one meter in feet and miles
Referenced by localizedDistance().
const double DigikamGenericINatPlugin::meterInMiles = 0.00062137 |
Referenced by localizedDistance().