template<typename Point, bool ClockWise = true, bool Closed = true, template< typename, typename > class PointList = std::vector, template< typename, typename > class RingList = std::vector, template< typename > class PointAlloc = std::allocator, template< typename > class RingAlloc = std::allocator>
class boost::geometry::model::polygon< Point, ClockWise, Closed, PointList, RingList, PointAlloc, RingAlloc >
The polygon contains an outer ring and zero or more inner rings.
- Template Parameters
-
Point | point type |
ClockWise | true for clockwise direction, false for CounterClockWise direction |
Closed | true for closed polygons (last point == first point), false open points |
PointList | container type for points, for example std::vector, std::list, std::deque |
RingList | container type for inner rings, for example std::vector, std::list, std::deque |
PointAlloc | container-allocator-type, for the points |
RingAlloc | container-allocator-type, for the rings |
- Note
- The container collecting the points in the rings can be different from the container collecting the inner rings. They all default to vector.
{before.synopsis, [heading Model of] [link geometry.reference.concepts.concept_polygon Polygon Concept] }
template<typename Point, bool ClockWise = true, bool Closed = true, template< typename, typename > class PointList = std::vector, template< typename, typename > class RingList = std::vector, template< typename > class PointAlloc = std::allocator, template< typename > class RingAlloc = std::allocator>
template<typename Point, bool ClockWise = true, bool Closed = true, template< typename, typename > class PointList = std::vector, template< typename, typename > class RingList = std::vector, template< typename > class PointAlloc = std::allocator, template< typename > class RingAlloc = std::allocator>
typedef ring<Point, ClockWise, Closed, PointList, PointAlloc> boost::geometry::model::polygon< Point, ClockWise, Closed, PointList, RingList, PointAlloc, RingAlloc >::ring_type |
template<typename Point, bool ClockWise = true, bool Closed = true, template< typename, typename > class PointList = std::vector, template< typename, typename > class RingList = std::vector, template< typename > class PointAlloc = std::allocator, template< typename > class RingAlloc = std::allocator>
Utility method, clears outer and inner rings.
template<typename Point, bool ClockWise = true, bool Closed = true, template< typename, typename > class PointList = std::vector, template< typename, typename > class RingList = std::vector, template< typename > class PointAlloc = std::allocator, template< typename > class RingAlloc = std::allocator>
template<typename Point, bool ClockWise = true, bool Closed = true, template< typename, typename > class PointList = std::vector, template< typename, typename > class RingList = std::vector, template< typename > class PointAlloc = std::allocator, template< typename > class RingAlloc = std::allocator>
template<typename Point, bool ClockWise = true, bool Closed = true, template< typename, typename > class PointList = std::vector, template< typename, typename > class RingList = std::vector, template< typename > class PointAlloc = std::allocator, template< typename > class RingAlloc = std::allocator>
template<typename Point, bool ClockWise = true, bool Closed = true, template< typename, typename > class PointList = std::vector, template< typename, typename > class RingList = std::vector, template< typename > class PointAlloc = std::allocator, template< typename > class RingAlloc = std::allocator>