GEOS
3.9.1dev
|
Represents a list of contiguous line segments, and supports noding the segments. More...
#include <BasicSegmentString.h>
Public Member Functions | |
BasicSegmentString (geom::CoordinateSequence *newPts, const void *newContext) | |
Construct a BasicSegmentString. More... | |
~BasicSegmentString () override | |
size_t | size () const override |
const geom::Coordinate & | getCoordinate (size_t i) const override |
geom::CoordinateSequence * | getCoordinates () const override |
bool | isClosed () const override |
std::ostream & | print (std::ostream &os) const override |
int | getSegmentOctant (size_t index) const |
Gets the octant of the segment starting at vertex index. More... | |
Public Member Functions inherited from geos::noding::SegmentString | |
SegmentString (const void *newContext) | |
Construct a SegmentString. More... | |
virtual | ~SegmentString () |
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... | |
Private Attributes | |
geom::CoordinateSequence * | pts |
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.
Definition at line 44 of file BasicSegmentString.h.
|
inline |
Construct a BasicSegmentString.
newPts | CoordinateSequence representing the string, externally owned |
newContext | the context associated to this SegmentString |
Definition at line 53 of file BasicSegmentString.h.
|
inlineoverride |
Definition at line 60 of file BasicSegmentString.h.
|
overridevirtual |
Implements geos::noding::SegmentString.
|
overridevirtual |
Implements geos::noding::SegmentString.
int geos::noding::BasicSegmentString::getSegmentOctant | ( | size_t | index | ) | const |
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.
Definition at line 65 of file BasicSegmentString.h.
|
private |
Definition at line 93 of file BasicSegmentString.h.