1 package org.opentrafficsim.editor.extensions.map;
2
3 import org.djunits.value.vdouble.scalar.Length;
4 import org.djutils.draw.line.PolyLine2d;
5 import org.djutils.draw.line.Polygon2d;
6 import org.opentrafficsim.draw.road.CrossSectionElementAnimation.ShoulderData;
7 import org.opentrafficsim.editor.XsdTreeNode;
8 import org.opentrafficsim.road.network.lane.SliceInfo;
9
10
11
12
13
14
15
16
17
18 public class MapShoulderData extends MapCrossSectionData implements ShoulderData
19 {
20
21
22 private final Length startOffset;
23
24
25
26
27
28
29
30
31
32 public MapShoulderData(final Length startOffset, final XsdTreeNode linkNode, final PolyLine2d centerLine,
33 final Polygon2d contour, final SliceInfo sliceInfo)
34 {
35 super(linkNode, centerLine, contour, sliceInfo);
36 this.startOffset = startOffset;
37 }
38
39
40 @Override
41 public String toString()
42 {
43 return "Shoulder " + getLinkId() + " " + this.startOffset;
44 }
45
46 }