com.vividsolutions.jts.noding
Class SegmentString

java.lang.Object
  extended bycom.vividsolutions.jts.noding.SegmentString

public class SegmentString
extends java.lang.Object

Contains a list of consecutive line segments which can be used to node the segments. The line segments are represented by an array of Coordinates.

Version:
1.4.0

Constructor Summary
SegmentString(Coordinate[] pts, java.lang.Object context)
           
 
Method Summary
 void addIntersection(Coordinate intPt, int segmentIndex)
          Add an EdgeIntersection for intersection intIndex.
 void addIntersection(Coordinate intPt, int segmentIndex, double dist)
           
 void addIntersection(LineIntersector li, int segmentIndex, int geomIndex, int intIndex)
          Add an SegmentNode for intersection intIndex.
 void addIntersections(LineIntersector li, int segmentIndex, int geomIndex)
          Adds EdgeIntersections for one or both intersections found for a segment of an edge to the edge intersection list.
 java.lang.Object getContext()
           
 Coordinate getCoordinate(int i)
           
 Coordinate[] getCoordinates()
           
 SegmentNodeList getIntersectionList()
           
 boolean isClosed()
           
 boolean isIsolated()
           
 void OLDaddIntersection(LineIntersector li, int segmentIndex, int geomIndex, int intIndex)
           
 void setIsolated(boolean isIsolated)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SegmentString

public SegmentString(Coordinate[] pts,
                     java.lang.Object context)
Method Detail

getContext

public java.lang.Object getContext()

getIntersectionList

public SegmentNodeList getIntersectionList()

size

public int size()

getCoordinate

public Coordinate getCoordinate(int i)

getCoordinates

public Coordinate[] getCoordinates()

setIsolated

public void setIsolated(boolean isIsolated)

isIsolated

public boolean isIsolated()

isClosed

public boolean isClosed()

addIntersections

public void addIntersections(LineIntersector li,
                             int segmentIndex,
                             int geomIndex)
Adds EdgeIntersections for one or both intersections found for a segment of an edge to the edge intersection list.


addIntersection

public void addIntersection(LineIntersector li,
                            int segmentIndex,
                            int geomIndex,
                            int intIndex)
Add an SegmentNode for intersection intIndex. An intersection that falls exactly on a vertex of the SegmentString is normalized to use the higher of the two possible segmentIndexes


OLDaddIntersection

public void OLDaddIntersection(LineIntersector li,
                               int segmentIndex,
                               int geomIndex,
                               int intIndex)

addIntersection

public void addIntersection(Coordinate intPt,
                            int segmentIndex)
Add an EdgeIntersection for intersection intIndex. An intersection that falls exactly on a vertex of the edge is normalized to use the higher of the two possible segmentIndexes


addIntersection

public void addIntersection(Coordinate intPt,
                            int segmentIndex,
                            double dist)