|
GEOS 3.15.0dev
|
Represents a list of contiguous line segments, and supports noding the segments. More...
#include <BasicSegmentString.h>
Public Member Functions | |
| BasicSegmentString (const std::shared_ptr< const geom::CoordinateSequence > &newPts, const void *newContext) | |
| Construct a BasicSegmentString. | |
| 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. | |
Public Member Functions inherited from geos::noding::SegmentString | |
| SegmentString (const void *newContext, const std::shared_ptr< const geom::CoordinateSequence > &newSeq) | |
| Construct a SegmentString. | |
| 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. | |
| 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 |
Additional Inherited Members | |
Public Types inherited from geos::noding::SegmentString | |
| typedef std::vector< const SegmentString * > | ConstVect |
| typedef std::vector< SegmentString * > | NonConstVect |
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) |
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 |
Construct a BasicSegmentString.
| newPts | CoordinateSequence representing the string, externally owned |
| newContext | the context associated to this 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 |
Reimplemented from geos::noding::SegmentString.