Class ParallelWays.RawPolyline
java.lang.Object
org.openstreetmap.josm.actions.mapmode.ParallelWays.RawPolyline
- Enclosing class:
- ParallelWays
The raw (untrimmed) offset polyline. Segment k runs from point k to point k+1 (or to point 0 for the last
segment of a closed polyline). The attributes of a segment are stored at its end point.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int[]if the segment ending at this point is an arc chord: the source node the arc is centered on, else NO_NODE(package private) final int[]number of chords of the arc at each source node(package private) final boolean[]whether the arc can be replaced by a mitre when it is not affected by the trimming(package private) final int[]for each source node with an arc: raw index of the first arc point, else -1(package private) final double[](package private) final double[](package private) int[]index of the source node a point was derived from, orParallelWays.NO_NODE(package private) int[]source segment index of the segment ending at this point, orParallelWays.CAP(package private) int(package private) double[](package private) double[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidadd(double px, double py, int srcNode, int srcSeg, int arc)
-
Field Details
-
x
double[] x -
y
double[] y -
node
int[] nodeindex of the source node a point was derived from, orParallelWays.NO_NODE -
seg
int[] segsource segment index of the segment ending at this point, orParallelWays.CAP -
arcCenter
int[] arcCenterif the segment ending at this point is an arc chord: the source node the arc is centered on, else NO_NODE -
size
int size -
arcStart
for each source node with an arc: raw index of the first arc point, else -1 -
arcChords
number of chords of the arc at each source node -
arcMitre
whether the arc can be replaced by a mitre when it is not affected by the trimming -
mitreX
-
mitreY
-
-
Constructor Details
-
RawPolyline
RawPolyline(int nodeCount)
-
-
Method Details
-
add
-