public class MultipolygonTest extends Test
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 |
private List<List<Node>> |
nonClosedWays |
protected static int |
NOT_CLOSED |
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 GeneralPath |
createPath(List<Node> nodes) |
private List<GeneralPath> |
createPolygons(List<List<Node>> joinedWays) |
void |
endTest()
Notification of the end of the test.
|
private Multipolygon.PolyData.Intersection |
getPolygonIntersection(GeneralPath outer,
List<Node> inner) |
void |
initialize()
Initializes any global data used this tester.
|
private List<List<Node>> |
joinWays(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, fixError, getErrors, getName, isBuilding, isCanceled, isFixable, isPrimitiveUsable, ok, setBeforeUpload, setPartialSelection, testBeforeUpload, visit, visit
visit
protected 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
private static ElemStyles styles
private final List<List<Node>> nonClosedWays
private final Set<String> keysCheckedByAnotherTest
public MultipolygonTest()
MultipolygonTest
.public void initialize()
Test
initialize
in class Test
public void startTest(ProgressMonitor progressMonitor)
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).
private GeneralPath createPath(List<Node> nodes)
private List<GeneralPath> createPolygons(List<List<Node>> joinedWays)
private Multipolygon.PolyData.Intersection getPolygonIntersection(GeneralPath outer, List<Node> inner)
public void visit(Relation r)
Visitor
private void checkMembersAndRoles(Relation r)
private void addRelationIfNeeded(TestError error, Relation r)