Ticket #3235: visitor.patch
| File visitor.patch, 1.7 KB (added by , 16 years ago) |
|---|
-
src/org/openstreetmap/josm/data/osm/Way.java
100 100 mappaintDrawnAreaCode = 0; 101 101 } 102 102 103 public void visitNodes(Visitor v) {104 if (incomplete) return;105 for (Node n : this.nodes) {106 v.visit(n);107 }108 }109 110 103 public ArrayList<Pair<Node,Node>> getNodePairs(boolean sort) { 111 104 ArrayList<Pair<Node,Node>> chunkSet = new ArrayList<Pair<Node,Node>>(); 112 105 if (incomplete) return chunkSet; -
src/org/openstreetmap/josm/data/osm/visitor/AllNodesVisitor.java
33 33 * Ways have their way nodes. 34 34 */ 35 35 public void visit(Way w) { 36 w.visitNodes(this); 36 if (w.incomplete) return; 37 for (Node n : w.getNodes()) 38 visit(n); 37 39 } 38 40 39 41 /** -
src/org/openstreetmap/josm/data/osm/visitor/BoundingXYVisitor.java
27 27 } 28 28 29 29 public void visit(Way w) { 30 w.visitNodes(this); 30 if (w.incomplete) return; 31 for (Node n : w.getNodes()) 32 visit(n); 31 33 } 32 34 33 35 public void visit(Relation e) {
