#include <NodedSegmentString.h>
Public Member Functions | |
NodedSegmentString (geom::CoordinateSequence *newPts, const void *newContext) | |
SegmentNode * | addIntersectionNode (geom::Coordinate *intPt, int segmentIndex) |
Static Public Member Functions | |
static void | getNodedSubstrings (SegmentString::ConstVect *segStrings, SegmentString::NonConstVect *resultEdgelist) |
The line segments are represented by an array of Coordinates. Intended to optimize the noding of contiguous segments by reducing the number of allocated objects. SegmentStrings can carry a context object, which is useful for preserving topological or parentage information. All noded substrings are initialized with the same context object.
geos::noding::NodedSegmentString::NodedSegmentString | ( | geom::CoordinateSequence * | newPts, | |
const void * | newContext | |||
) | [inline] |
Creates a new segment string from a list of vertices.
pts | the vertices of the segment string | |
data | the user-defined data of this segment string (may be null) |
SegmentNode* geos::noding::NodedSegmentString::addIntersectionNode | ( | geom::Coordinate * | intPt, | |
int | segmentIndex | |||
) | [inline] |
Adds an intersection node for a given point and segment to this segment string. If an intersection already exists for this exact location, the existing node will be returned.
intPt | the location of the intersection | |
segmentIndex | the index of the segment containing the intersection |
References geos::noding::SegmentNodeList::add().