Class 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[] arcCenter
      if the segment ending at this point is an arc chord: the source node the arc is centered on, else NO_NODE
      (package private) int[] arcChords
      number of chords of the arc at each source node
      (package private) boolean[] arcMitre
      whether the arc can be replaced by a mitre when it is not affected by the trimming
      (package private) int[] arcStart
      for 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[] node
      index of the source node a point was derived from, or ParallelWays.NO_NODE
      (package private) int[] seg
      source segment index of the segment ending at this point, or ParallelWays.CAP
      (package private) int size  
      (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) 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 Detail

      • x

        double[] x
      • y

        double[] y
      • 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
      • 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
    • Method Detail

      • add

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