geos::noding::NodedSegmentString Class Reference

Represents a list of contiguous line segments, and supports noding the segments. More...

#include <NodedSegmentString.h>

Inheritance diagram for geos::noding::NodedSegmentString:

geos::noding::NodableSegmentString geos::noding::SegmentString

List of all members.

Public Member Functions

 NodedSegmentString (geom::CoordinateSequence *newPts, const void *newContext)
SegmentNodeaddIntersectionNode (geom::Coordinate *intPt, int segmentIndex)

Static Public Member Functions

static void getNodedSubstrings (SegmentString::ConstVect *segStrings, SegmentString::NonConstVect *resultEdgelist)


Detailed Description

Represents a list of contiguous line segments, and supports noding the segments.

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.

Version:
1.7

Constructor & Destructor Documentation

geos::noding::NodedSegmentString::NodedSegmentString ( geom::CoordinateSequence newPts,
const void *  newContext 
) [inline]

Creates a new segment string from a list of vertices.

Parameters:
pts the vertices of the segment string
data the user-defined data of this segment string (may be null)


Member Function Documentation

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.

Parameters:
intPt the location of the intersection
segmentIndex the index of the segment containing the intersection
Returns:
the intersection node for the point

References geos::noding::SegmentNodeList::add().


The documentation for this class was generated from the following file:

Generated on Thu Aug 13 02:50:52 2009 for GEOS by  doxygen 1.5.9