Class RightAngleBuildingTest
- java.lang.Object
-
- org.openstreetmap.josm.data.validation.Test
-
- org.openstreetmap.josm.data.validation.tests.RightAngleBuildingTest
-
- All Implemented Interfaces:
OsmPrimitiveVisitor
public class RightAngleBuildingTest extends Test
Checks for buildings with angles close to right angle.- Since:
- 13670
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.data.validation.Test
Test.TagTest
-
-
Field Summary
Fields Modifier and Type Field Description protected double
maxAngleDelta
Maximum angle difference from right angle that is considered as invalid.protected double
minAngleDelta
Minimum angle difference from right angle that is considered as invalid.-
Fields inherited from class org.openstreetmap.josm.data.validation.Test
checkBeforeUpload, checkEnabled, description, enabled, errors, IN_DOWNLOADED_AREA, IN_DOWNLOADED_AREA_STRICT, isBeforeUpload, name, partialSelection, progressMonitor, stopwatch, testBeforeUpload
-
-
Constructor Summary
Constructors Constructor Description RightAngleBuildingTest()
Constructs a newRightAngleBuildingTest
test.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
checkAngle(double angle)
void
startTest(ProgressMonitor monitor)
Start the test using a given progress monitorvoid
visit(Way w)
Visiting call for lines.-
Methods inherited from class org.openstreetmap.josm.data.validation.Test
addGui, clear, deletePrimitivesIfNeeded, endTest, fixError, getErrors, getName, getSource, initialize, isBuilding, isCanceled, isFixable, isPrimitiveUsable, isResidentialArea, ok, removeIrrelevantErrors, setBeforeUpload, setPartialSelection, setShowElements, testBeforeUpload, visit, visit, visit
-
-
-
-
Field Detail
-
maxAngleDelta
protected double maxAngleDelta
Maximum angle difference from right angle that is considered as invalid.
-
minAngleDelta
protected double minAngleDelta
Minimum angle difference from right angle that is considered as invalid.
-
-
Constructor Detail
-
RightAngleBuildingTest
public RightAngleBuildingTest()
Constructs a newRightAngleBuildingTest
test.
-
-
Method Detail
-
visit
public void visit(Way w)
Description copied from interface:OsmPrimitiveVisitor
Visiting call for lines.- Specified by:
visit
in interfaceOsmPrimitiveVisitor
- Overrides:
visit
in classTest
- Parameters:
w
- The way to inspect.
-
startTest
public void startTest(ProgressMonitor monitor)
Description copied from class:Test
Start the test using a given progress monitor
-
checkAngle
private boolean checkAngle(double angle)
-
-