Class ParallelWays.RawPolyline
- java.lang.Object
-
- org.openstreetmap.josm.actions.mapmode.ParallelWays.RawPolyline
-
- Enclosing class:
- ParallelWays
private static final class ParallelWays.RawPolyline extends java.lang.Object
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
Fields Modifier and Type Field Description (package private) int[]arcCenterif the segment ending at this point is an arc chord: the source node the arc is centered on, else NO_NODE(package private) int[]arcChordsnumber of chords of the arc at each source node(package private) boolean[]arcMitrewhether the arc can be replaced by a mitre when it is not affected by the trimming(package private) int[]arcStartfor each source node with an arc: raw index of the first arc point, else -1(package private) double[]mitreX(package private) double[]mitreY(package private) int[]nodeindex of the source node a point was derived from, orParallelWays.NO_NODE(package private) int[]segsource segment index of the segment ending at this point, orParallelWays.CAP(package private) intsize(package private) double[]x(package private) double[]y
-
Constructor Summary
Constructors Constructor Description RawPolyline(int nodeCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidadd(double px, double py, int srcNode, int srcSeg, int arc)
-
-
-
Field Detail
-
x
double[] x
-
y
double[] y
-
node
int[] node
index of the source node a point was derived from, orParallelWays.NO_NODE
-
seg
int[] seg
source segment index of the segment ending at this point, orParallelWays.CAP
-
arcCenter
int[] arcCenter
if 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
final int[] arcStart
for each source node with an arc: raw index of the first arc point, else -1
-
arcChords
final int[] arcChords
number of chords of the arc at each source node
-
arcMitre
final boolean[] arcMitre
whether the arc can be replaced by a mitre when it is not affected by the trimming
-
mitreX
final double[] mitreX
-
mitreY
final double[] mitreY
-
-
Constructor Detail
-
RawPolyline
RawPolyline(int nodeCount)
-
-
Method Detail
-
add
void add(double px, double py, int srcNode, int srcSeg, int arc)
-
-