Changeset 31400 in osm for applications
- Timestamp:
- 2015-07-24T12:53:18+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryData.java
r31398 r31400 237 237 */ 238 238 public void setSelectedImage(MapillaryAbstractImage image, boolean zoom) { 239 if (image != null) { 240 System.out.println("----------------------------"); 241 for (MapillaryAbstractImage img : getImages()) 242 System.out.println(img.getSequence()); 243 } 239 244 MapillaryAbstractImage oldImage = selectedImage; 240 245 selectedImage = image; -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryLayer.java
r31399 r31400 251 251 } 252 252 253 /**254 * Returns true any of the images from the database has been modified.255 */256 253 @Override 257 254 public boolean isModified() { … … 304 301 } 305 302 306 /**307 * Paints the database in the map.308 */309 303 @Override 310 304 public synchronized void paint(Graphics2D g, MapView mv, Bounds box) { -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/cache/Utils.java
r31398 r31400 8 8 9 9 /** 10 * Downloads and stores pictures incache.10 * Utility methods for working with cache. 11 11 * 12 12 * @author nokutu 13 13 * 14 14 */ 15 public class Utils implements ICachedLoaderListener{15 public class Utils { 16 16 17 static Utils INSTANCE = new Utils(); 18 17 private static IgnoreDownload IGNORE_DOWNLOAD = new IgnoreDownload(); 19 18 20 19 /** 21 * Downloads the picture of the given image. 20 * Downloads the picture of the given image and does nothing when it is downloaded. 22 21 * 23 22 * @param img … … 27 26 throw new IllegalArgumentException(); 28 27 new MapillaryCache(((MapillaryImage) img).getKey(), MapillaryCache.Type.THUMBNAIL).submit( 29 I NSTANCE, false);28 IGNORE_DOWNLOAD, false); 30 29 new MapillaryCache(((MapillaryImage) img).getKey(), MapillaryCache.Type.FULL_IMAGE).submit( 31 I NSTANCE, false);30 IGNORE_DOWNLOAD, false); 32 31 } 33 32 34 @Override 35 public void loadingFinished(CacheEntry arg0, CacheEntryAttributes arg1, 36 LoadResult arg2) { 37 // Nothing 33 private static class IgnoreDownload implements ICachedLoaderListener { 34 35 @Override 36 public void loadingFinished(CacheEntry arg0, CacheEntryAttributes arg1, 37 LoadResult arg2) { 38 // Nothing 39 } 38 40 } 39 40 41 } -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/downloads/MapillarySequenceDownloadThread.java
r31399 r31400 102 102 for (MapillaryImage img : finalImages) { 103 103 if (layer.getMapillaryData().getImages().contains(img)) { 104 // The image in finalImages is substituted by the one in the 105 // database, as they are equal. 106 img = (MapillaryImage) layer.getMapillaryData().getImages() 107 .get(layer.getMapillaryData().getImages().indexOf(img)); 104 108 sequence.add(img); 105 109 ((MapillaryImage) layer.getMapillaryData().getImages() 106 110 .get(layer.getMapillaryData().getImages().indexOf(img))) 107 111 .setSequence(sequence); 108 finalImages.set( 109 finalImages.indexOf(img), 110 (MapillaryImage) layer.getMapillaryData().getImages() 111 .get(layer.getMapillaryData().getImages().indexOf(img))); 112 finalImages.set(finalImages.indexOf(img), img); 112 113 } else { 113 114 img.setSequence(sequence);
Note:
See TracChangeset
for help on using the changeset viewer.