public class MultipolygonTest extends Test
Test.TagTest| Modifier and Type | Field and Description |
|---|---|
protected static int |
CROSSING_WAYS |
protected static int |
INNER_STYLE_MISMATCH |
protected static int |
INNER_WAY_OUTSIDE |
private java.util.Set<java.lang.String> |
keysCheckedByAnotherTest |
protected static int |
MISSING_OUTER_WAY |
protected static int |
NO_STYLE |
protected static int |
NO_STYLE_POLYGON |
protected static int |
NON_CLOSED_WAY |
private java.util.List<java.util.List<Node>> |
nonClosedWays |
protected static int |
NOT_CLOSED |
protected static int |
OUTER_STYLE |
protected static int |
OUTER_STYLE_MISMATCH |
private static ElemStyles |
styles |
protected static int |
WRONG_MEMBER_ROLE |
protected static int |
WRONG_MEMBER_TYPE |
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, startTime, testBeforeUpload| Constructor and Description |
|---|
MultipolygonTest()
Constructs a new
MultipolygonTest. |
| Modifier and Type | Method and Description |
|---|---|
private void |
addError(Relation r,
TestError error) |
private void |
addRelationIfNeeded(TestError error,
Relation r) |
private void |
checkMembersAndRoles(Relation r) |
private java.awt.geom.GeneralPath |
createPath(java.util.List<Node> nodes) |
private java.util.List<java.awt.geom.GeneralPath> |
createPolygons(java.util.List<java.util.List<Node>> joinedWays) |
void |
endTest()
Notification of the end of the test.
|
private Multipolygon.PolyData.Intersection |
getPolygonIntersection(java.awt.geom.GeneralPath outer,
java.util.List<Node> inner) |
void |
initialize()
Initializes any global data used this tester.
|
private java.util.List<java.util.List<Node>> |
joinWays(java.util.Collection<Way> ways) |
void |
startTest(ProgressMonitor progressMonitor)
Start the test using a given progress monitor
|
void |
visit(Relation r)
Visiting call for relations.
|
void |
visit(Way w)
Visiting call for lines.
|
addGui, deletePrimitivesIfNeeded, equals, fixError, getErrors, getName, hashCode, isBuilding, isCanceled, isFixable, isPrimitiveUsable, ok, setBeforeUpload, setPartialSelection, testBeforeUpload, visit, visitvisitprotected static final int WRONG_MEMBER_TYPE
protected static final int WRONG_MEMBER_ROLE
protected static final int NON_CLOSED_WAY
protected static final int MISSING_OUTER_WAY
protected static final int INNER_WAY_OUTSIDE
protected static final int CROSSING_WAYS
protected static final int OUTER_STYLE_MISMATCH
protected static final int INNER_STYLE_MISMATCH
protected static final int NOT_CLOSED
protected static final int NO_STYLE
protected static final int NO_STYLE_POLYGON
protected static final int OUTER_STYLE
private static ElemStyles styles
private final java.util.List<java.util.List<Node>> nonClosedWays
private final java.util.Set<java.lang.String> keysCheckedByAnotherTest
public MultipolygonTest()
MultipolygonTest.public void initialize()
Testinitialize in class Testpublic void startTest(ProgressMonitor progressMonitor)
Testpublic void endTest()
Test
If you override this method, don't forget to cleanup progressMonitor
(most overrides call super.endTest() to do this).
private java.awt.geom.GeneralPath createPath(java.util.List<Node> nodes)
private java.util.List<java.awt.geom.GeneralPath> createPolygons(java.util.List<java.util.List<Node>> joinedWays)
private Multipolygon.PolyData.Intersection getPolygonIntersection(java.awt.geom.GeneralPath outer, java.util.List<Node> inner)
public void visit(Relation r)
Visitorprivate void checkMembersAndRoles(Relation r)
private void addRelationIfNeeded(TestError error, Relation r)