public class UnconnectedWays extends Test
Modifier and Type | Class and Description |
---|---|
private class |
UnconnectedWays.MyWaySegment |
Modifier and Type | Field and Description |
---|---|
private Area |
dsArea |
private QuadBuckets<Node> |
endnodes |
private QuadBuckets<Node> |
endnodes_highway |
private QuadBuckets<Node> |
middlenodes |
private double |
mindist |
private double |
minmiddledist |
private Set<Node> |
othernodes |
protected static String |
PREFIX |
protected static int |
UNCONNECTED_WAYS |
private Set<UnconnectedWays.MyWaySegment> |
ways |
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, startTime, testBeforeUpload
Constructor and Description |
---|
UnconnectedWays()
Constructor
|
Modifier and Type | Method and Description |
---|---|
private void |
addNode(Node n,
QuadBuckets<Node> s) |
void |
endTest()
Notification of the end of the test.
|
(package private) List<UnconnectedWays.MyWaySegment> |
getWaySegments(Way w) |
void |
startTest(ProgressMonitor monitor)
Start the test using a given progress monitor
|
void |
visit(Node n)
Visiting call for points.
|
void |
visit(Way w)
Visiting call for lines.
|
addGui, deletePrimitivesIfNeeded, fixError, getErrors, getName, initialize, isBuilding, isCanceled, isFixable, isPrimitiveUsable, ok, setBeforeUpload, setPartialSelection, testBeforeUpload, visit, visit
visit
protected static final int UNCONNECTED_WAYS
private Set<UnconnectedWays.MyWaySegment> ways
private QuadBuckets<Node> endnodes
private QuadBuckets<Node> endnodes_highway
private QuadBuckets<Node> middlenodes
private Set<Node> othernodes
private double mindist
private double minmiddledist
public UnconnectedWays()
public void startTest(ProgressMonitor monitor)
Test
public void endTest()
Test
If you override this method, don't forget to cleanup Test.progressMonitor
(most overrides call super.endTest()
to do this).
List<UnconnectedWays.MyWaySegment> getWaySegments(Way w)
public void visit(Node n)
Visitor
private void addNode(Node n, QuadBuckets<Node> s)