|
GEOS 3.15.0beta1
|
Represents a list of contiguous line segments, and supports noding the segments. More...
#include <NodedSegmentString.h>
Public Member Functions | |
| std::unique_ptr< geom::CoordinateSequence > | getNodedCoordinates () |
| bool | hasNodes () const |
| NodedSegmentString (const std::shared_ptr< const geom::CoordinateSequence > &newPts, bool constructZ, bool constructM, const void *newContext) | |
| Creates a new segment string from a list of vertices. | |
| NodedSegmentString (SegmentString *ss, bool constructZ, bool constructM) | |
| SegmentNodeList & | getNodeList () |
| const SegmentNodeList & | getNodeList () const |
| std::ostream & | print (std::ostream &os) const override |
| void | addIntersections (algorithm::LineIntersector *li, std::size_t segmentIndex, std::size_t geomIndex) |
Add SegmentNodes 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. | |
| template<typename CoordType> | |
| void | addIntersection (const CoordType &intPt, std::size_t segmentIndex) |
| Add an SegmentNode for intersection intIndex. | |
| Public Member Functions inherited from geos::noding::NodableSegmentString | |
| NodableSegmentString (const void *newContext, const std::shared_ptr< const geom::CoordinateSequence > &newSeq) | |
| Public Member Functions inherited from geos::noding::SegmentString | |
| SegmentString (const void *newContext, const std::shared_ptr< const geom::CoordinateSequence > &newSeq) | |
| Construct a SegmentString. | |
| std::size_t | size () const |
| std::size_t | getSize () const override |
| template<typename CoordType = geom::Coordinate> | |
| const CoordType & | getCoordinate (std::size_t i) const |
| double | getLength () const override |
| const std::shared_ptr< const geom::CoordinateSequence > & | getCoordinates () const override |
| Return a pointer to the CoordinateSequence associated with this SegmentString. | |
| void | setCoordinates (const std::shared_ptr< const geom::CoordinateSequence > &newSeq) |
| int | getSegmentOctant (std::size_t index) const |
| Gets the octant of the segment starting at vertex index. | |
| const geom::CoordinateXY & | nextInRing (std::size_t index) const |
| const geom::CoordinateXY & | prevInRing (std::size_t index) const |
| bool | isClosed () const |
| Public Member Functions inherited from geos::noding::PathString | |
| PathString (const void *p_context=nullptr) | |
| const void * | getData () const |
| Gets the user-defined data for this segment string. | |
| void | setData (const void *data) |
| Sets the user-defined data for this segment string. | |
Static Public Member Functions | |
| template<class II> | |
| static void | getNodedSubstrings (II from, II too_far, std::vector< std::unique_ptr< SegmentString > > &resultEdgelist) |
| template<class C> | |
| static void | getNodedSubstrings (const C &segStrings, std::vector< std::unique_ptr< SegmentString > > &resultEdgelist) |
| static void | getNodedSubstrings (const SegmentString::NonConstVect &segStrings, std::vector< std::unique_ptr< SegmentString > > &resultEdgeList) |
| static std::vector< std::unique_ptr< SegmentString > > | getNodedSubstrings (const std::vector< SegmentString * > &segStrings) |
| Static Public Member Functions inherited from geos::noding::SegmentString | |
| static int | getSegmentOctant (const SegmentString &ss, std::size_t index) |
| static std::vector< SegmentString * > | toRawPointerVector (const std::vector< std::unique_ptr< SegmentString > > &segStrings) |
| static std::vector< SegmentString * > | toRawPointerVector (const std::vector< std::unique_ptr< PathString > > &segStrings) |
| Static Public Member Functions inherited from geos::noding::PathString | |
| static std::vector< PathString * > | toRawPointerVector (const std::vector< std::unique_ptr< PathString > > &segStrings) |
Additional Inherited Members | |
| Public Types inherited from geos::noding::SegmentString | |
| typedef std::vector< const SegmentString * > | ConstVect |
| typedef std::vector< SegmentString * > | NonConstVect |
| Protected Attributes inherited from geos::noding::SegmentString | |
| std::shared_ptr< const geom::CoordinateSequence > | seq |
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. |
| constructZ | should newly-constructed coordinates store Z values? |
| constructM | should newly-constructed coordinates store M values? |
| 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 addIntersection(), and geos::algorithm::LineIntersector::getIntersection().
Referenced by addIntersection(), and addIntersections().
|
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 |
Reimplemented from geos::noding::SegmentString.