digiKam
|
Signals | |
void | signalProgressChanged (const int currentProgress) |
Public Member Functions | |
void | addTrack (QDomElement &kmlAlbum) |
void | generate () |
QImage | generateBorderedThumbnail (const QImage &fullImage, int size) const |
Generate a square thumbnail from @fullImage of @size x @size pixels with a white border. More... | |
void | generateImagesthumb (const QUrl &, QDomElement &kmlAlbum) |
generate the kml element for pictures with thumbnails More... | |
QImage | generateSquareThumbnail (const QImage &fullImage, int size) const |
Generate a square thumbnail from @fullImage of @size x @size pixels. More... | |
KmlExport (DInfoInterface *const iface) | |
void | setUrls (const QList< QUrl > &urls) |
QString | webifyFileName (const QString &fileName) const |
Produce a web-friendly file name otherwise, while google earth works fine, maps.google.com may not find pictures and thumbnail thank htmlexport. More... | |
~KmlExport () override | |
|
explicit |
|
override |
void DigikamGenericGeolocationEditPlugin::KmlExport::addTrack | ( | QDomElement & | kmlAlbum | ) |
FIXME is there a way to be sure of the location of the icon?
References DigikamGenericGeolocationEditPlugin::GeoDataParser::clear(), DigikamGenericGeolocationEditPlugin::KMLGeoDataParser::CreateTrackLine(), DigikamGenericGeolocationEditPlugin::KMLGeoDataParser::CreateTrackPoints(), DigikamGenericGeolocationEditPlugin::GeoDataParser::loadGPXFile(), and DigikamGenericGeolocationEditPlugin::GeoDataParser::numPoints().
Referenced by generate().
void DigikamGenericGeolocationEditPlugin::KmlExport::generate | ( | ) |
References addTrack(), Digikam::DItemInfo::altitude(), generateImagesthumb(), Digikam::MetaEngine::getGPSInfo(), Digikam::DItemInfo::hasGeolocationInfo(), Digikam::DInfoInterface::itemInfo(), Digikam::DItemInfo::latitude(), Digikam::DMetadata::load(), Digikam::DItemInfo::longitude(), Digikam::DItemInfo::name(), and signalProgressChanged().
Referenced by DigikamGenericGeolocationEditPlugin::KmlWidget::slotKMLGenerate().
QImage DigikamGenericGeolocationEditPlugin::KmlExport::generateBorderedThumbnail | ( | const QImage & | fullImage, |
int | size | ||
) | const |
Generate a square thumbnail from @fullImage of @size x @size pixels with a white border.
fullImage | the original image |
size | the size of the thumbnail |
Referenced by generateImagesthumb().
void DigikamGenericGeolocationEditPlugin::KmlExport::generateImagesthumb | ( | const QUrl & | imageURL, |
QDomElement & | kmlAlbum | ||
) |
generate the kml element for pictures with thumbnails
QUrl | the URL of the picture |
kmlAlbum | the album used |
we need to take the DateTimeOriginal if we refer to https://www.exif.org/Exif2-2.PDF (standard)DateTime: is The date and time of image creation. In this standard it is the date and time the file was changed DateTimeOriginal: The date and time when the original image data was generated. For a DSC the date and time the picture was taken are recorded. DateTimeDigitized: The date and time when the image was stored as digital data. So for:
References Digikam::DItemInfo::altitude(), Digikam::DItemInfo::comment(), Digikam::DItemInfo::dateTime(), generateBorderedThumbnail(), generateSquareThumbnail(), Digikam::MetaEngine::getGPSInfo(), Digikam::MetaEngine::getItemDateTime(), Digikam::DItemInfo::hasGeolocationInfo(), DigikamGenericTwitterPlugin::imageFormat(), Digikam::DInfoInterface::itemInfo(), Digikam::DItemInfo::latitude(), Digikam::DMetadata::load(), Digikam::DItemInfo::longitude(), Digikam::DItemInfo::name(), Digikam::DItemInfo::orientation(), Digikam::MetaEngine::rotateExifQImage(), and webifyFileName().
Referenced by generate().
QImage DigikamGenericGeolocationEditPlugin::KmlExport::generateSquareThumbnail | ( | const QImage & | fullImage, |
int | size | ||
) | const |
Generate a square thumbnail from @fullImage of @size x @size pixels.
fullImage | the original image |
size | the size of the thumbnail |
Referenced by generateImagesthumb().
void DigikamGenericGeolocationEditPlugin::KmlExport::setUrls | ( | const QList< QUrl > & | urls | ) |
|
signal |
Referenced by generate().
QString DigikamGenericGeolocationEditPlugin::KmlExport::webifyFileName | ( | const QString & | fileName | ) | const |
Produce a web-friendly file name otherwise, while google earth works fine, maps.google.com may not find pictures and thumbnail thank htmlexport.
the | filename |
Referenced by generateImagesthumb().