...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
A ring (aka linear ring) is a closed line which should not be selfintersecting.
template<typename Point, bool ClockWise, bool Closed, template< typename, typename > class Container, template< typename > class Allocator> class model::ring : public Container< Point, Allocator< Point > > { // ... };
Parameter |
Default |
Description |
---|---|---|
typename Point |
point type |
|
bool ClockWise |
true |
true for clockwise direction, false for CounterClockWise direction |
bool Closed |
true |
true for closed polygons (last point == first point), false open points |
template< typename, typename > class Container |
std::vector |
container type, for example std::vector, std::deque |
template< typename > class Allocator |
std::allocator |
container-allocator-type |
Function |
Description |
Parameters |
---|---|---|
ring()
|
Default constructor, creating an empty ring. |
|
template<typename Iterator> ring(Iterator begin, Iterator end)
|
Constructor with begin and end, filling the ring. |
Iterator: begin: Iterator: end: |
Either
#include <boost/geometry/geometries/geometries.hpp>
Or
#include <boost/geometry/geometries/ring.hpp>