Class ParallelWays.RawPolyline

java.lang.Object
org.openstreetmap.josm.actions.mapmode.ParallelWays.RawPolyline
Enclosing class:
ParallelWays

private static final class ParallelWays.RawPolyline extends 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[]
    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, or ParallelWays.NO_NODE
    (package private) int[]
    source segment index of the segment ending at this point, or ParallelWays.CAP
    (package private) int
     
    (package private) double[]
     
    (package private) double[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RawPolyline(int nodeCount)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
    add(double px, double py, int srcNode, int srcSeg, int arc)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • x

      double[] x
    • y

      double[] y
    • node

      int[] node
      index of the source node a point was derived from, or ParallelWays.NO_NODE
    • seg

      int[] seg
      source segment index of the segment ending at this point, or ParallelWays.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 Details

  • Method Details

    • add

      void add(double px, double py, int srcNode, int srcSeg, int arc)