Changeset 29270 in osm for applications/editors/josm/plugins/smed2/src/seamap/Renderer.java
- Timestamp:
- 2013-02-20T20:10:33+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/seamap/Renderer.java
r29266 r29270 173 173 174 174 public static void lineVector (Feature feature, LineStyle style) { 175 if (feature.flag != Fflag.POINT) { 176 ArrayList<Long> ways = new ArrayList<Long>(); 177 // if (map.outers.containsKey(feature.refs)) { 178 // ways.addAll(map.mpolys.get(map.outers.get(feature.refs))); 179 // } else { 180 // if (map.mpolys.containsKey(feature.refs)) { 181 // ways.addAll(map.mpolys.get(feature.refs)); 182 // } else { 183 // ways.add(feature.refs); 184 // } 185 // } 186 Path2D.Double p = new Path2D.Double(); 187 p.setWindingRule(GeneralPath.WIND_EVEN_ODD); 175 Path2D.Double p = new Path2D.Double(); 176 p.setWindingRule(GeneralPath.WIND_EVEN_ODD); 177 switch (feature.flag) { 178 case LINE: 179 break; 180 case AREA: 181 break; 182 /* ArrayList<Long> ways = new ArrayList<Long>(); 183 if (map.outers.containsKey(feature.refs)) { 184 ways.addAll(map.mpolys.get(map.outers.get(feature.refs))); 185 } else { 186 if (map.mpolys.containsKey(feature.refs)) { 187 ways.addAll(map.mpolys.get(feature.refs)); 188 } else { 189 ways.add(feature.refs); 190 } 191 } 188 192 for (long way : ways) { 189 193 boolean first = true; 190 /*for (long node : map.ways.get(way)) {194 for (long node : map.ways.get(way)) { 191 195 Point2D point = helper.getPoint(map.points.get(node)); 192 196 if (first) { … … 215 219 g2.setPaint(style.fill); 216 220 g2.fill(p); 217 */ } 221 }*/ 218 222 } 219 223 }
Note:
See TracChangeset
for help on using the changeset viewer.