Changeset 2603 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-12-10T18:32:05+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r2591 r2603 360 360 } 361 361 362 public boolean isDrawable() 363 { 364 return !isDeleted() && !isIncomplete() && !isFiltered(); 365 } 366 362 367 /** 363 368 * Replies true if this primitive is either unknown to the server (i.e. its id -
trunk/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java
r2594 r2603 518 518 for (RelationMember m : r.getMembers()) 519 519 { 520 if (m.isWay() && drawable(m.getMember()))520 if (m.isWay() && m.getMember().isDrawable()) 521 521 { 522 522 drawSelectedMember(m.getMember(), styles != null ? getPrimitiveStyle(m.getMember()) … … 1312 1312 } 1313 1313 1314 boolean drawable(OsmPrimitive osm)1315 {1316 return !osm.isDeleted() && !osm.isIncomplete() && !osm.isFiltered();1317 }1318 1319 1314 @Override 1320 1315 public void getColors() … … 1384 1379 /*** RELATIONS ***/ 1385 1380 for (final Relation osm: data.getRelations()) { 1386 if ( drawable(osm)) {1381 if (osm.isDrawable()) { 1387 1382 paintUnselectedRelation(osm); 1388 1383 } … … 1391 1386 /*** AREAS ***/ 1392 1387 for (final Way osm : selectedLast(data, data.searchWays(bbox))) { 1393 if ( drawable(osm) && osm.mappaintDrawnCode != paintid) {1388 if (osm.isDrawable() && osm.mappaintDrawnCode != paintid) { 1394 1389 if (isPrimitiveArea(osm) && osm.mappaintDrawnAreaCode != paintid) { 1395 1390 drawWay(osm, fillAreas); … … 1405 1400 } 1406 1401 } else { 1402 drawMultipolygon = false; 1403 1404 /*** RELATIONS ***/ 1405 for (final Relation osm: data.getRelations()) { 1406 if (osm.isDrawable()) { 1407 paintUnselectedRelation(osm); 1408 } 1409 } 1410 1407 1411 /*** WAYS (filling disabled) ***/ 1408 1412 for (final Way way: data.getWays()) { 1409 if ( drawable(way) && !data.isSelected(way)) {1413 if (way.isDrawable() && !data.isSelected(way)) { 1410 1414 drawWay(way, 0); 1411 1415 } … … 1429 1433 /* TODO: is it possible to do this like the nodes/ways code? */ 1430 1434 for (RelationMember m : r.getMembers()) { 1431 if (m.isNode() && drawable(m.getMember())) {1435 if (m.isNode() && m.getMember().isDrawable()) { 1432 1436 drawSelectedMember(m.getMember(), styles != null ? getPrimitiveStyle(m.getMember()) : null, true, true); 1433 1437 }
Note:
See TracChangeset
for help on using the changeset viewer.