comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/StaticWKmsArtifact.java @ 4478:6153c50f78cf

WaterLineArtifact: Added callcontext-parameter to interfaces getWaterLine. Update all implementations. The change was done to be able to compute the extreme values during getWaterLine to access data needed in CrossSectionProfile Diagrams.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 13 Nov 2012 14:46:44 +0100
parents 58864f4f6e3b
children a2735a4bf75e
comparison
equal deleted inserted replaced
4477:79bb64f66c74 4478:6153c50f78cf
5 import de.intevation.artifactdatabase.state.FacetActivity; 5 import de.intevation.artifactdatabase.state.FacetActivity;
6 import de.intevation.artifactdatabase.state.State; 6 import de.intevation.artifactdatabase.state.State;
7 7
8 import de.intevation.artifacts.Artifact; 8 import de.intevation.artifacts.Artifact;
9 import de.intevation.artifacts.ArtifactFactory; 9 import de.intevation.artifacts.ArtifactFactory;
10 import de.intevation.artifacts.CallContext;
10 import de.intevation.artifacts.CallMeta; 11 import de.intevation.artifacts.CallMeta;
11 12
12 import de.intevation.artifacts.common.utils.XMLUtils; 13 import de.intevation.artifacts.common.utils.XMLUtils;
13 14
14 import de.intevation.flys.artifacts.geom.Lines; 15 import de.intevation.flys.artifacts.geom.Lines;
384 * 385 *
385 * @param idx Index of facet and in wkms array. 386 * @param idx Index of facet and in wkms array.
386 * @param csl FastCrossSectionLine to compute water surface agains. 387 * @param csl FastCrossSectionLine to compute water surface agains.
387 * @param next The km of the next crosssectionline. 388 * @param next The km of the next crosssectionline.
388 * @param prev The km of the previous crosssectionline. 389 * @param prev The km of the previous crosssectionline.
390 * @param context Ignored in this implementation.
389 * 391 *
390 * @return an array holding coordinates of points of surface of water ( 392 * @return an array holding coordinates of points of surface of water (
391 * in the form {{x1, x2}, {y1, y2}} ). 393 * in the form {{x1, x2}, {y1, y2}} ).
392 */ 394 */
393 @Override 395 @Override
394 public Lines.LineData getWaterLines(int idx, FastCrossSectionLine csl, 396 public Lines.LineData getWaterLines(int idx, FastCrossSectionLine csl,
395 double next, double prev 397 double next, double prev, CallContext context
396 ) { 398 ) {
397 logger.debug("getWaterLines(" + idx + ")/" + identifier()); 399 logger.debug("getWaterLines(" + idx + ")/" + identifier());
398 400
399 List<Point2D> points = csl.getPoints(); 401 List<Point2D> points = csl.getPoints();
400 402

http://dive4elements.wald.intevation.org