24 #ifndef LSST_AFW_GEOM_ELLIPSES_PixelRegion_h_INCLUDED
25 #define LSST_AFW_GEOM_ELLIPSES_PixelRegion_h_INCLUDED
27 #include "boost/iterator/iterator_facade.hpp"
60 boost::random_access_traversal_tag> {
63 : _s(s), _region(region) {}
68 Span const& dereference()
const {
return _s; }
74 void advance(
int n) { _s = _region->
getSpanAt(_s.
getY() + n); }
76 bool equal(
Iterator const& other)
const {
return _s == other._s; }
78 int distance_to(
Iterator const& other)
const {
return other._s.
getY() - _s.
getY(); }
93 #endif // !LSST_AFW_GEOM_ELLIPSES_PixelRegion_h_INCLUDED
A range of pixels within one row of an Image.
An integer coordinate rectangle.
Span const getSpanAt(int y) const
int getY() const
Return the y-value.
An ellipse defined by an arbitrary BaseCore and a center point.
geom::Box2I const & _bbox
PixelRegion(Ellipse const &ellipse)
Box2I const & getBBox() const
Iterator(Span const &s=Span(0, 0, 0), PixelRegion const *region=NULL)
friend class boost::iterator_core_access