# HG changeset patch # User Felix Wolfsteller # Date 1336642081 0 # Node ID 22c8a9b4de3187573ad645efa045eef978d5b660 # Parent d35e37b6a2111abe31e431877642b21ca81aed75 Minimal doc, TODO. flys-artifacts/trunk@4377 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r d35e37b6a211 -r 22c8a9b4de31 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Thu May 10 09:13:33 2012 +0000 +++ b/flys-artifacts/ChangeLog Thu May 10 09:28:01 2012 +0000 @@ -1,3 +1,8 @@ +2012-05-10 Felix Wolfsteller + + * src/main/java/de/intevation/flys/artifacts/geom/Lines.java: + Minimal doc, TODO. + 2012-05-10 Felix Wolfsteller Fix issue620: synchron navigation at impossible kms. diff -r d35e37b6a211 -r 22c8a9b4de31 flys-artifacts/src/main/java/de/intevation/flys/artifacts/geom/Lines.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/geom/Lines.java Thu May 10 09:13:33 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/geom/Lines.java Thu May 10 09:28:01 2012 +0000 @@ -70,6 +70,15 @@ } + /** + * For a cross section given as points and a waterlevel (in meters), + * create a set of lines that represent the water surface, assuming it + * is distributed horizontally equally. + * @param points the points describing the river bed. + * @param waterLevel the height of the horizontal water line. + * @return A list of Lines representing the water surface and the + * calculated area between water surface and river bed. + */ public static ListWithArea fillWater(List points, double waterLevel) { boolean debug = log.isDebugEnabled(); @@ -95,6 +104,7 @@ p.getX(), waterLevel, p.getX(), waterLevel)); } + // TODO continue calculating area. return new ListWithArea(result, 0d); }