changeset 7152:8c169743f4d0

Noted insights.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 26 Sep 2013 08:38:12 +0200
parents 491b645123b6
children fdf2d31b8955
files artifacts/src/main/java/org/dive4elements/river/artifacts/model/ZoomScale.java artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDiffYearFilterFacet.java
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/ZoomScale.java	Wed Sep 25 16:28:23 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/ZoomScale.java	Thu Sep 26 08:38:12 2013 +0200
@@ -18,6 +18,7 @@
 import org.dive4elements.river.artifacts.math.Linear;
 
 
+/** Has to do with adaptive smoothing based on current diagram extent. */
 public class ZoomScale
 {
     private static Logger logger = Logger.getLogger(ZoomScale.class);
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDiffYearFilterFacet.java	Wed Sep 25 16:28:23 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDiffYearFilterFacet.java	Thu Sep 26 08:38:12 2013 +0200
@@ -50,6 +50,7 @@
         Double end = (Double)context.getContextValue("endkm");
         if(start != null && end != null) {
             RiverContext fc = (RiverContext)context.globalContext();
+            // Adaptive smoothing, based on zoom factor/diagram extents.
             ZoomScale scales = (ZoomScale)fc.get("zoomscale");
             RiverAccess access = new RiverAccess((D4EArtifact)artifact);
             String river = access.getRiver();

http://dive4elements.wald.intevation.org