Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/NormalizedReferenceCurveFacet.java @ 2199:7bac5afb9892
Skip 'inactive' points in output generation.
flys-artifacts/trunk@3815 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 30 Jan 2012 08:37:01 +0000 |
parents | 672a41efe222 |
children |
line wrap: on
line source
package de.intevation.flys.artifacts.model; import de.intevation.artifactdatabase.state.Facet; import de.intevation.flys.artifacts.states.DefaultState.ComputeType; import de.intevation.flys.artifacts.math.Sub; public class NormalizedReferenceCurveFacet extends ReferenceCurveFacet { public NormalizedReferenceCurveFacet() { } public NormalizedReferenceCurveFacet( int index, String name, String description ) { super(index, name, description, ComputeType.ADVANCE, null, null); } public NormalizedReferenceCurveFacet( int index, String name, String description, ComputeType type, String stateID, String hash ) { super(index, name, description, type, hash, stateID); } @Override protected Object getInternalData(WW [] wws) { return new WW.ApplyFunctionIterator(wws[index]) { { function1 = new Sub(ww.minWs()); function2 = new Sub(ww.minWs2()); } }; } /** Copy deeply. */ @Override public Facet deepCopy() { NormalizedReferenceCurveFacet copy = new NormalizedReferenceCurveFacet(); copy.set(this); return copy; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :