Changeset 24934 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionGrabPlanImage.java
- Timestamp:
- 2011-01-02T00:36:28+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionGrabPlanImage.java
r23190 r24934 106 106 if (loadedFromCache) { 107 107 Main.map.repaint(); 108 } else if (wmsLayer. images.size() == 0) {108 } else if (wmsLayer.getImages().size() == 0) { 109 109 // action cancelled or image loaded from cache (and already georeferenced) 110 110 actionInterrupted(); … … 149 149 countMouseClicked++; 150 150 // ignore clicks outside the image 151 if (ea.east() < wmsLayer. images.get(0).min.east() || ea.east() > wmsLayer.images.get(0).max.east()152 || ea.north() < wmsLayer. images.get(0).min.north() || ea.north() > wmsLayer.images.get(0).max.north())151 if (ea.east() < wmsLayer.getImage(0).min.east() || ea.east() > wmsLayer.getImage(0).max.east() 152 || ea.north() < wmsLayer.getImage(0).min.north() || ea.north() > wmsLayer.getImage(0).max.north()) 153 153 return; 154 154 if (mode == cGetCorners) { … … 259 259 Main.map.mapView.removeMouseListener(this); 260 260 affineTransform(ea1, ea2, georefpoint1, georefpoint2); 261 wmsLayer.saveNewCache(); 261 wmsLayer.grabThread.saveNewCache(); 262 262 Main.map.mapView.repaint(); 263 263 actionCompleted(); … … 378 378 double dx = dst1.getX() - org1.getX(); 379 379 double dy = dst1.getY() - org1.getY(); 380 wmsLayer. images.get(0).shear(dx, dy);380 wmsLayer.getImage(0).shear(dx, dy); 381 381 org1 = org1.add(dx, dy); // org1=dst1 now 382 382 org2 = org2.add(dx, dy); 383 383 // rotate : org1(=dst1 now) is anchor for rotation and scale 384 wmsLayer. images.get(0).rotate(dst1, angle);384 wmsLayer.getImage(0).rotate(dst1, angle); 385 385 org2 = org2.rotate(dst1, angle); 386 386 // scale image from anchor org1(=dst1 now) 387 wmsLayer. images.get(0).scale(dst1, proportion);387 wmsLayer.getImage(0).scale(dst1, proportion); 388 388 } 389 389 … … 392 392 georefpoint2 = new EastNorth(wmsLayer.X0+wmsLayer.fX*wmsLayer.communeBBox.max.getX(), 393 393 wmsLayer.Y0+wmsLayer.fY*wmsLayer.communeBBox.max.getX()); 394 ea1 = new EastNorth(wmsLayer. images.get(0).min.east(), wmsLayer.images.get(0).max.north());395 EastNorth ea2 = wmsLayer. images.get(0).max;394 ea1 = new EastNorth(wmsLayer.getImage(0).min.east(), wmsLayer.getImage(0).max.north()); 395 EastNorth ea2 = wmsLayer.getImage(0).max; 396 396 affineTransform(ea1, ea2, georefpoint1, georefpoint2); 397 wmsLayer.saveNewCache(); 397 wmsLayer.grabThread.saveNewCache(); 398 398 Main.map.mapView.repaint(); 399 399 }
Note:
See TracChangeset
for help on using the changeset viewer.