GEOS 3.11.1
|
Represents a list of contiguous line segments, and supports noding the segments. More...
#include <NodedSegmentString.h>
Public Member Functions | |
std::vector< geom::Coordinate > | getNodedCoordinates () |
NodedSegmentString (geom::CoordinateSequence *newPts, const void *newContext) | |
Creates a new segment string from a list of vertices. More... | |
NodedSegmentString (SegmentString *ss) | |
SegmentNodeList & | getNodeList () |
const SegmentNodeList & | getNodeList () const |
size_t | size () const override |
const geom::Coordinate & | getCoordinate (std::size_t i) const override |
geom::CoordinateSequence * | getCoordinates () const override |
Return a pointer to the CoordinateSequence associated with this SegmentString. More... | |
geom::CoordinateSequence * | releaseCoordinates () |
bool | isClosed () const override |
std::ostream & | print (std::ostream &os) const override |
int | getSegmentOctant (std::size_t index) const |
Gets the octant of the segment starting at vertex index. More... | |
void | addIntersections (algorithm::LineIntersector *li, std::size_t segmentIndex, std::size_t geomIndex) |
Add SegmentNode s for one or both intersections found for a segment of an edge to the edge intersection list. | |
void | addIntersection (algorithm::LineIntersector *li, std::size_t segmentIndex, std::size_t geomIndex, std::size_t intIndex) |
Add an SegmentNode for intersection intIndex. More... | |
void | addIntersection (const geom::Coordinate &intPt, std::size_t segmentIndex) |
Add an SegmentNode for intersection intIndex. More... | |
Public Member Functions inherited from geos::noding::NodableSegmentString | |
NodableSegmentString (const void *newContext) | |
Public Member Functions inherited from geos::noding::SegmentString | |
SegmentString (const void *newContext) | |
Construct a SegmentString. More... | |
const void * | getData () const |
Gets the user-defined data for this segment string. More... | |
void | setData (const void *data) |
Sets the user-defined data for this segment string. More... | |
virtual std::size_t | size () const =0 |
virtual const geom::Coordinate & | getCoordinate (std::size_t i) const =0 |
virtual geom::CoordinateSequence * | getCoordinates () const =0 |
Return a pointer to the CoordinateSequence associated with this SegmentString. More... | |
virtual bool | isClosed () const =0 |
virtual std::ostream & | print (std::ostream &os) const |
Additional Inherited Members | |
Public Types inherited from geos::noding::SegmentString | |
typedef std::vector< const SegmentString * > | ConstVect |
typedef std::vector< SegmentString * > | NonConstVect |
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.
|
inline |
Creates a new segment string from a list of vertices.
newPts | CoordinateSequence representing the string, ownership transferred. |
newContext | the user-defined data of this segment string (may be null) |
|
inline |
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
References geos::algorithm::LineIntersector::getIntersection().
|
inline |
Add an SegmentNode 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
|
overridevirtual |
Implements geos::noding::SegmentString.
|
overridevirtual |
Return a pointer to the CoordinateSequence associated with this SegmentString.
Implements geos::noding::SegmentString.
|
inline |
Gets the octant of the segment starting at vertex index.
index | the index of the vertex starting the segment. Must not be the last index in the vertex list |
|
overridevirtual |
Implements geos::noding::SegmentString.
|
overridevirtual |
Reimplemented from geos::noding::SegmentString.
|
inlineoverridevirtual |
Implements geos::noding::SegmentString.