[PATCH] Noted insights

Wald Commits scm-commit at wald.intevation.org
Thu Sep 26 09:12:54 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1380177492 -7200
# Node ID 8c169743f4d0c75f30247062cc98a518b9830f14
# Parent  491b645123b6a4126110962f476c03dd3151a025
Noted insights.

diff -r 491b645123b6 -r 8c169743f4d0 artifacts/src/main/java/org/dive4elements/river/artifacts/model/ZoomScale.java
--- 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);
diff -r 491b645123b6 -r 8c169743f4d0 artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDiffYearFilterFacet.java
--- 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();


More information about the Dive4elements-commits mailing list