GEOS
3.14.0dev
|
#include <OffsetSegmentString.h>
Public Member Functions | |
void | reset () |
void | setPrecisionModel (const geom::PrecisionModel *nPrecisionModel) |
void | setMinimumVertexDistance (double nMinVertexDistance) |
void | addPt (const geom::Coordinate &pt) |
void | addPts (const geom::CoordinateSequence &pts, bool isForward) |
void | closeRing () |
geom::CoordinateSequence * | getCoordinates () |
size_t | size () const |
Friends | |
std::ostream & | operator<< (std::ostream &os, const OffsetSegmentString &node) |
A dynamic list of the vertices in a constructed offset curve.
Automatically removes close vertices which are closer than a given tolerance.
|
inline |
Check that points are a ring
add the startpoint again if they are not
References geos::geom::CoordinateSequence::add(), geos::geom::CoordinateSequence::back(), geos::geom::CoordinateSequence::front(), and geos::geom::CoordinateSequence::size().
Referenced by getCoordinates().
|
inline |
Get coordinates by taking ownership of them
After this call, the coordinates reference in this object are dropped. Calling twice will segfault...
FIXME: refactor memory management of this
References closeRing().