boost::geometry::model::polygon
polygon.hpp
typename Point Point
bool ClockWise ClockWise true
bool Closed Closed true
template< typename, typename > class PointList PointList std::vector
template< typename, typename > class RingList RingList std::vector
template< typename > class PointAlloc PointAlloc std::allocator
template< typename > class RingAlloc RingAlloc std::allocator
RingList< ring_type, RingAlloc< ring_type > > typedef RingList<ring_type , RingAlloc<ring_type > > boost::geometry::model::polygon< Point, ClockWise, Closed, PointList, RingList, PointAlloc, RingAlloc >::inner_container_type inner_container_type
Point typedef Point boost::geometry::model::polygon< Point, ClockWise, Closed, PointList, RingList, PointAlloc, RingAlloc >::point_type point_type
ring< Point, ClockWise, Closed, PointList, PointAlloc > typedef ring<Point, ClockWise, Closed, PointList, PointAlloc> boost::geometry::model::polygon< Point, ClockWise, Closed, PointList, RingList, PointAlloc, RingAlloc >::ring_type ring_type
inner_container_type inner_container_type boost::geometry::model::polygon< Point, ClockWise, Closed, PointList, RingList, PointAlloc, RingAlloc >::m_inners m_inners
ring_type ring_type boost::geometry::model::polygon< Point, ClockWise, Closed, PointList, RingList, PointAlloc, RingAlloc >::m_outer m_outer
boost::geometry::model::polygon< Point, ClockWise, Closed, PointList, RingList, PointAlloc, RingAlloc >::BOOST_CONCEPT_ASSERT
((concept::Point< Point >))
BOOST_CONCEPT_ASSERT
(concept::Point< Point >)
void void boost::geometry::model::polygon< Point, ClockWise, Closed, PointList, RingList, PointAlloc, RingAlloc >::clear () clear

Utility method, clears outer and inner rings.

inner_container_type const & inner_container_type const& boost::geometry::model::polygon< Point, ClockWise, Closed, PointList, RingList, PointAlloc, RingAlloc >::inners () const inners
inner_container_type & inner_container_type& boost::geometry::model::polygon< Point, ClockWise, Closed, PointList, RingList, PointAlloc, RingAlloc >::inners () inners
ring_type const & ring_type const& boost::geometry::model::polygon< Point, ClockWise, Closed, PointList, RingList, PointAlloc, RingAlloc >::outer () const outer
ring_type & ring_type& boost::geometry::model::polygon< Point, ClockWise, Closed, PointList, RingList, PointAlloc, RingAlloc >::outer () outer
boost::geometry::model::polygon< Point, ClockWise, Closed, PointList, RingList, PointAlloc, RingAlloc >::polygon
()
polygon

Default constructor, creating an empty \1.

boost::geometry::model::polygon< Point, ClockWise, Closed, PointList, RingList, PointAlloc, RingAlloc >::polygon
(std::initializer_list< ring_type > l)
polygon
std::initializer_list< ring_type > l

Constructor taking std::initializer_list, filling the \1.

The polygon contains an outer ring and zero or more inner rings.

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

The container collecting the points in the rings can be different from the container collecting the inner rings. They all default to vector.

[include reference/geometries/polygon.qbk] [heading Model of] [link geometry.reference.concepts.concept_polygon Polygon Concept]
- boost::geometry::model::polygon
  BOOST_CONCEPT_ASSERT
- boost::geometry::model::polygon
  clear
- boost::geometry::model::polygon
  inner_container_type
- boost::geometry::model::polygon
  inners
- boost::geometry::model::polygon
  inners
- boost::geometry::model::polygon
  m_inners
- boost::geometry::model::polygon
  m_outer
- boost::geometry::model::polygon
  outer
- boost::geometry::model::polygon
  outer
- boost::geometry::model::polygon
  point_type
- boost::geometry::model::polygon
  polygon
- boost::geometry::model::polygon
  polygon
- boost::geometry::model::polygon
  ring_type