|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openstreetmap.josm.data.validation.util.ValUtil
public class ValUtil
Utility class
| Constructor Summary | |
|---|---|
ValUtil()
|
|
| Method Summary | |
|---|---|
static java.util.List<java.awt.geom.Point2D> |
getSegmentCells(Node n1,
Node n2,
double gridDetail)
Returns the coordinates of all cells in a grid that a line between 2 nodes intersects with. |
static java.util.List<java.util.List<Way>> |
getWaysInCell(Way w,
java.util.Map<java.awt.geom.Point2D,java.util.List<Way>> cellWays)
Returns the start and end cells of a way. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValUtil()
| Method Detail |
|---|
public static java.util.List<java.util.List<Way>> getWaysInCell(Way w,
java.util.Map<java.awt.geom.Point2D,java.util.List<Way>> cellWays)
w - The waycellWays - The map with all cells
public static java.util.List<java.awt.geom.Point2D> getSegmentCells(Node n1,
Node n2,
double gridDetail)
n1 - The first node.n2 - The second node.gridDetail - The detail of the grid. Bigger values give smaller
cells, but a bigger number of them.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||