# HG changeset patch # User Felix Wolfsteller # Date 1328700727 0 # Node ID 094b4abde10eb6bbc45b3ed6bceb199c2c85c8be # Parent 177921b9e8bbe11a0a30b66983efa552a7785a7e fix flys/issue474 (manual points in reference curves). flys-artifacts/trunk@3965 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 177921b9e8bb -r 094b4abde10e flys-artifacts/doc/conf/artifacts/manualpoints.xml --- a/flys-artifacts/doc/conf/artifacts/manualpoints.xml Wed Feb 08 11:16:39 2012 +0000 +++ b/flys-artifacts/doc/conf/artifacts/manualpoints.xml Wed Feb 08 11:32:07 2012 +0000 @@ -14,6 +14,8 @@ + + diff -r 177921b9e8bb -r 094b4abde10e flys-artifacts/doc/conf/artifacts/winfo.xml --- a/flys-artifacts/doc/conf/artifacts/winfo.xml Wed Feb 08 11:16:39 2012 +0000 +++ b/flys-artifacts/doc/conf/artifacts/winfo.xml Wed Feb 08 11:32:07 2012 +0000 @@ -196,11 +196,13 @@ + + diff -r 177921b9e8bb -r 094b4abde10e flys-artifacts/doc/conf/themes.xml --- a/flys-artifacts/doc/conf/themes.xml Wed Feb 08 11:16:39 2012 +0000 +++ b/flys-artifacts/doc/conf/themes.xml Wed Feb 08 11:32:07 2012 +0000 @@ -984,6 +984,8 @@ + + diff -r 177921b9e8bb -r 094b4abde10e flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FacetTypes.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FacetTypes.java Wed Feb 08 11:16:39 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FacetTypes.java Wed Feb 08 11:32:07 2012 +0000 @@ -43,6 +43,8 @@ CDC("computed_discharge_curve"), DUC("duration_curve"), DIC("discharge_curve"), + RC("reference_curve"), + RCN("reference_curve_normalized"), WD("wdifferences"); private String chartTypeString; diff -r 177921b9e8bb -r 094b4abde10e flys-artifacts/src/main/java/de/intevation/flys/exports/NormalizedReferenceCurveGenerator.java --- a/flys-artifacts/src/main/java/de/intevation/flys/exports/NormalizedReferenceCurveGenerator.java Wed Feb 08 11:16:39 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/NormalizedReferenceCurveGenerator.java Wed Feb 08 11:32:07 2012 +0000 @@ -185,6 +185,11 @@ if (name.equals(REFERENCE_CURVE_NORMALIZED)) { doReferenceOut(artifactFacet.getData(context), theme, visible); } + else if (FacetTypes.IS.MANUALPOINTS(name)) { + doPoints(artifactFacet.getData(context), + artifactFacet.getFacetDescription(), + theme, visible, YAXIS.W_M.idx); + } else { logger.warn("Unknown facet name: " + name); return; diff -r 177921b9e8bb -r 094b4abde10e flys-artifacts/src/main/java/de/intevation/flys/exports/ReferenceCurveGenerator.java --- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ReferenceCurveGenerator.java Wed Feb 08 11:16:39 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ReferenceCurveGenerator.java Wed Feb 08 11:32:07 2012 +0000 @@ -16,6 +16,7 @@ import de.intevation.flys.artifacts.model.FacetTypes; import de.intevation.flys.artifacts.model.WW; +import de.intevation.flys.artifacts.model.WWQQ; import de.intevation.flys.artifacts.model.WW.ApplyFunctionIterator; import de.intevation.flys.artifacts.model.WWAxisTypes; @@ -185,6 +186,11 @@ if (name.equals(REFERENCE_CURVE)) { doReferenceOut(artifactFacet.getData(context), theme, visible); } + else if (FacetTypes.IS.MANUALPOINTS(name)) { + doPoints(artifactFacet.getData(context), + artifactFacet.getFacetDescription(), + theme, visible, YAXIS.W_M.idx); + } else { logger.warn("Unknown facet name: " + name); return;