GEOS 3.6.2
geos::noding::BasicSegmentString Class Reference

#include <BasicSegmentString.h>

Inheritance diagram for geos::noding::BasicSegmentString:
geos::noding::SegmentString

Public Member Functions

 BasicSegmentString (geom::CoordinateSequence *newPts, const void *newContext)
 Construct a BasicSegmentString.
virtual unsigned int size () const
 see dox in SegmentString.h
virtual const geom::CoordinategetCoordinate (unsigned int i) const
 see dox in SegmentString.h
virtual geom::CoordinateSequencegetCoordinates () const
 see dox in SegmentString.h
virtual bool isClosed () const
 see dox in SegmentString.h
virtual std::ostream & print (std::ostream &os) const
 see dox in SegmentString.h
int getSegmentOctant (unsigned int index) const
 Gets the octant of the segment starting at vertex index.
Public Member Functions inherited from geos::noding::SegmentString
 SegmentString (const void *newContext)
 Construct a SegmentString.
const void * getData () const
void setData (const void *data)

Additional Inherited Members

Public Types inherited from geos::noding::SegmentString
typedef std::vector< const SegmentString * > ConstVect
typedef std::vector< SegmentString * > NonConstVect

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.

Constructor & Destructor Documentation

◆ BasicSegmentString()

geos::noding::BasicSegmentString::BasicSegmentString ( geom::CoordinateSequence * newPts,
const void * newContext )
inline

Construct a BasicSegmentString.

Parameters
newPtsCoordinateSequence representing the string, externally owned
newContextthe context associated to this SegmentString

References geos::noding::SegmentString::SegmentString().

Member Function Documentation

◆ getCoordinate()

virtual const geom::Coordinate & geos::noding::BasicSegmentString::getCoordinate ( unsigned int i) const
virtual

◆ getCoordinates()

virtual geom::CoordinateSequence * geos::noding::BasicSegmentString::getCoordinates ( ) const
virtual

◆ getSegmentOctant()

int geos::noding::BasicSegmentString::getSegmentOctant ( unsigned int index) const

Gets the octant of the segment starting at vertex index.

Parameters
indexthe index of the vertex starting the segment. Must not be the last index in the vertex list
Returns
the octant of the segment at the vertex

◆ isClosed()

virtual bool geos::noding::BasicSegmentString::isClosed ( ) const
virtual

◆ print()

virtual std::ostream & geos::noding::BasicSegmentString::print ( std::ostream & os) const
virtual

see dox in SegmentString.h

Reimplemented from geos::noding::SegmentString.

◆ size()

virtual unsigned int geos::noding::BasicSegmentString::size ( ) const
inlinevirtual

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