GEOS
3.8.0
|
Constructs MonotoneChains for sequences of Coordinates. More...
#include <MonotoneChainBuilder.h>
Public Member Functions | |
MonotoneChainBuilder (const MonotoneChainBuilder &)=delete | |
MonotoneChainBuilder & | operator= (const MonotoneChainBuilder &)=delete |
Static Public Member Functions | |
static std::unique_ptr< std::vector< std::unique_ptr< MonotoneChain > > > | getChains (const geom::CoordinateSequence *pts, void *context) |
Return a newly-allocated vector of newly-allocated MonotoneChain objects for the given CoordinateSequence. | |
static void | getChains (const geom::CoordinateSequence *pts, void *context, std::vector< std::unique_ptr< MonotoneChain >> &mcList) |
Computes a list of the MonotoneChains for a list of coordinates, attaching a context data object to each. More... | |
static std::unique_ptr< std::vector< std::unique_ptr< MonotoneChain > > > | getChains (const geom::CoordinateSequence *pts) |
Constructs MonotoneChains for sequences of Coordinates.
TODO: use vector<const Coordinate*> instead ?
|
delete |
Disable copy construction and assignment. Apparently needed to make this class compile under MSVC. (See https://stackoverflow.com/q/29565299)
|
static |
Computes a list of the MonotoneChains for a list of coordinates, attaching a context data object to each.
pts | the list of points to compute chains for | |
context | a data object to attach to each chain | |
[out] | mcList | a list of the monotone chains for the points |