CGAL 5.6 - 2D Arrangements
|
#include <CGAL/Arr_polyline_traits_2.h>
The X_monotone_curve_2
type nested within the traits class respresnts \(x\)-monotone polylines.
Public Types | |
typedef std::vector< X_monotone_segment_2 >::const_iterator | Segment_const_iterator |
Const iterator of subcurves. | |
typedef std::reverse_iterator< Segment_const_iterator > | Segment_const_reverse_iterator |
Reverse const iterator of subcurves. | |
Public Member Functions | |
X_monotone_curve_2 () | |
Construct default. More... | |
X_monotone_curve_2 (X_monotone_segment_2 seg) | |
Construct from a subcurve. More... | |
template<typename InputIterator > | |
X_monotone_curve_2 (InputIterator begin, InputIterator end) | |
Construct from a range. More... | |
Segment_const_iterator | begin_segments () const |
Obtain the first iterator of the polyline subcurves. | |
Segment_const_iterator | end_segments () const |
Obtain the past-the-end iterator of the polyline subcurves. | |
Segment_const_reverse_iterator | rbegin_segments () const |
Obtain the first reverse iterator of the polyline subcurves. | |
Segment_const_reverse_iterator | rend_segments () const |
Obtain the past-the-end reverse iterator for the polyline points. | |
Segments_size_type | number_of_segments () const |
Obtain the number of subcurves that comprise the poyline. More... | |
CGAL::Arr_polyline_traits_2< SegmentTraits_2 >::X_monotone_curve_2::X_monotone_curve_2 | ( | ) |
Construct default.
CGAL::Arr_polyline_traits_2< SegmentTraits_2 >::X_monotone_curve_2::X_monotone_curve_2 | ( | X_monotone_segment_2 | seg | ) |
Construct from a subcurve.
CGAL::Arr_polyline_traits_2< SegmentTraits_2 >::X_monotone_curve_2::X_monotone_curve_2 | ( | InputIterator | begin, |
InputIterator | end | ||
) |
Construct from a range.
Similar to the constructor of a general polycurve. Like in the case of general polycurve, for the sake of backwards compatibility we have to keep an implementation of construction from a range of points. DO NOT USE THIS CONSTRUCTION.
Segments_size_type CGAL::Arr_polyline_traits_2< SegmentTraits_2 >::X_monotone_curve_2::number_of_segments | ( | ) | const |
Obtain the number of subcurves that comprise the poyline.