Changeset 3126 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2010-03-12T21:23:58+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/SimplePaintVisitor.java
r3116 r3126 18 18 import org.openstreetmap.josm.Main; 19 19 import org.openstreetmap.josm.data.Bounds; 20 import org.openstreetmap.josm.data.osm.BBox; 20 21 import org.openstreetmap.josm.data.osm.DataSet; 21 22 import org.openstreetmap.josm.data.osm.Node; … … 121 122 DataSet ds; 122 123 public void visitAll(DataSet data, boolean virtual, Bounds bounds) { 124 BBox bbox = new BBox(bounds); 123 125 this.ds = data; 124 126 //boolean profiler = Main.pref.getBoolean("simplepaint.profiler",false); … … 141 143 require changing the colour while painting... */ 142 144 //profilerN = 0; 143 for (final OsmPrimitive osm: data. getRelations()) {145 for (final OsmPrimitive osm: data.searchRelations(bbox)) { 144 146 if (!osm.isDeleted() && !ds.isSelected(osm) && !osm.isFiltered()) { 145 147 osm.visit(this); … … 155 157 156 158 //profilerN = 0; 157 for (final OsmPrimitive osm:data. getWays()){159 for (final OsmPrimitive osm:data.searchWays(bbox)){ 158 160 if (!osm.isDeleted() && !ds.isSelected(osm) && !osm.isFiltered() && osm.isTagged()) { 159 161 osm.visit(this); … … 163 165 displaySegments(); 164 166 165 for (final OsmPrimitive osm:data. getWays()){167 for (final OsmPrimitive osm:data.searchWays(bbox)){ 166 168 if (!osm.isDeleted() && !ds.isSelected(osm) && !osm.isFiltered() && !osm.isTagged()) { 167 169 osm.visit(this); … … 193 195 194 196 //profilerN = 0; 195 for (final OsmPrimitive osm: data. getNodes()) {197 for (final OsmPrimitive osm: data.searchNodes(bbox)) { 196 198 if (!osm.isDeleted() && !ds.isSelected(osm) && !osm.isFiltered()) 197 199 { … … 208 210 //} 209 211 210 drawVirtualNodes(data. getWays());212 drawVirtualNodes(data.searchWays(bbox)); 211 213 212 214 //if(profiler)
Note:
See TracChangeset
for help on using the changeset viewer.