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 Set<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 |
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 static void |
addRelationIfNeeded(TestError error,
Relation r) |
private void |
checkMembersAndRoles(Relation r) |
private static GeneralPath |
createPath(List<Node> nodes) |
private List<GeneralPath> |
createPolygons(List<Multipolygon.PolyData> joinedWays) |
void |
endTest()
Notification of the end of the test.
|
private static Multipolygon.PolyData.Intersection |
getPolygonIntersection(GeneralPath outer,
List<Node> inner) |
void |
initialize()
Initializes any global data used this tester.
|
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 volatile ElemStyles styles
private final Set<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 static GeneralPath createPath(List<Node> nodes)
private List<GeneralPath> createPolygons(List<Multipolygon.PolyData> joinedWays)
private static Multipolygon.PolyData.Intersection getPolygonIntersection(GeneralPath outer, List<Node> inner)
public void visit(Relation r)
Visitorprivate void checkMembersAndRoles(Relation r)
private static void addRelationIfNeeded(TestError error, Relation r)