/** return the maximum resolution in the list of images */ float GeoImageList::maxResolution() { if (!minMaxResUptodate_) { minRes_ = -1; maxRes_ = 500; qDebug("GeoImageList::maxResolution"); Iterator it = begin(); for (; it!=end(); ++it) { GeoImage *img = it.value(); qDebug("%s: xres: %f yres: %f", img->filename().toLatin1().constData(), img->resolutionX(), img->resolutionY()); float res = img->resolutionX(); if (res > minRes_) minRes_ = res; if (res < maxRes_) maxRes_ = res; res = img->resolutionY(); if (res > minRes_) minRes_ = res; if (res < maxRes_) maxRes_ = res; } minMaxResUptodate_ = true; } return maxRes_; }
/** return the maximum resolution in the list of images */ float GeoImageList::maxResolution() { if (!minMaxResUptodate_) { minRes_ = -1; maxRes_ = 500; qDebug("GeoImageList::maxResolution"); QDictIterator < GeoImage > it = QDictIterator < GeoImage > (*this); for (; it.current(); ++it) { GeoImage *img = it.current(); qDebug("%s: xres: %f yres: %f", (img->filename()).latin1(), img->resolutionX(), img->resolutionY()); float res = it.current()->resolutionX(); if (res > minRes_) minRes_ = res; if (res < maxRes_) maxRes_ = res; res = it.current()->resolutionY(); if (res > minRes_) minRes_ = res; if (res < maxRes_) maxRes_ = res; } minMaxResUptodate_ = true; } return maxRes_; }