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 doublemaxAngleDeltaMaximum angle difference from right angle that is considered as invalid.protected doubleminAngleDeltaMinimum 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 newRightAngleBuildingTesttest.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleancheckAngle(double angle)voidstartTest(ProgressMonitor monitor)Start the test using a given progress monitorvoidvisit(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 newRightAngleBuildingTesttest.
-
-
Method Detail
-
visit
public void visit(Way w)
Description copied from interface:OsmPrimitiveVisitorVisiting call for lines.- Specified by:
visitin interfaceOsmPrimitiveVisitor- Overrides:
visitin classTest- Parameters:
w- The way to inspect.
-
startTest
public void startTest(ProgressMonitor monitor)
Description copied from class:TestStart the test using a given progress monitor
-
checkAngle
private boolean checkAngle(double angle)
-
-