- Timestamp:
- 2018-06-15T21:59:50+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java
r13810 r13936 19 19 import org.openstreetmap.josm.data.osm.IRelationMember; 20 20 import org.openstreetmap.josm.data.osm.IWay; 21 import org.openstreetmap.josm.data.osm.Node;22 21 import org.openstreetmap.josm.data.osm.OsmPrimitive; 23 22 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 24 23 import org.openstreetmap.josm.data.osm.OsmUtils; 25 24 import org.openstreetmap.josm.data.osm.Relation; 26 import org.openstreetmap.josm.data.osm.Way;27 25 import org.openstreetmap.josm.data.osm.visitor.PrimitiveVisitor; 28 26 import org.openstreetmap.josm.data.osm.visitor.paint.relations.MultipolygonCache; … … 251 249 public void visit(IRelation<?> r) { 252 250 if (r instanceof Relation && left.matches(e.withPrimitive(r))) { 253 final List< Node> openEnds = MultipolygonCache.getInstance().get((Relation) r).getOpenEnds();251 final List<?> openEnds = MultipolygonCache.getInstance().get((Relation) r).getOpenEnds(); 254 252 final int openEndIndex = openEnds.indexOf(e.osm); 255 253 if (openEndIndex >= 0) { … … 278 276 && left.matches(new Environment(w).withParent(e.osm)) 279 277 && e.osm instanceof IWay && Geometry.PolygonIntersection.CROSSING.equals( 280 Geometry.polygonIntersection(w.getNodes(), (( Way) e.osm).getNodes()))) {278 Geometry.polygonIntersection(w.getNodes(), ((IWay<?>) e.osm).getNodes()))) { 281 279 e.child = w; 282 280 } … … 293 291 public void visit(INode n) { 294 292 if (e.child == null && left.matches(new Environment(n).withParent(e.osm)) 295 && ((e.osm instanceof IWay && Geometry.nodeInsidePolygon(n, (( Way) e.osm).getNodes()))293 && ((e.osm instanceof IWay && Geometry.nodeInsidePolygon(n, ((IWay<?>) e.osm).getNodes())) 296 294 || (e.osm instanceof Relation && ( 297 295 (Relation) e.osm).isMultipolygon() && Geometry.isNodeInsideMultiPolygon(n, (Relation) e.osm, null)))) { … … 304 302 if (e.child == null && left.matches(new Environment(w).withParent(e.osm)) 305 303 && ((e.osm instanceof IWay && Geometry.PolygonIntersection.FIRST_INSIDE_SECOND.equals( 306 Geometry.polygonIntersection(w.getNodes(), (( Way) e.osm).getNodes())))304 Geometry.polygonIntersection(w.getNodes(), ((IWay<?>) e.osm).getNodes()))) 307 305 || (e.osm instanceof Relation && ( 308 306 (Relation) e.osm).isMultipolygon()
Note:
See TracChangeset
for help on using the changeset viewer.