A 2D locator over a virtual image. More...
#include <virtual_locator.hpp>
Classes | |
struct | add_deref |
Public Types | |
typedef pixel_2d_locator_base < virtual_2d_locator< Deref, IsTransposed > , position_iterator< Deref, IsTransposed > , position_iterator< Deref, 1-IsTransposed > > | parent_t |
typedef virtual_2d_locator < typename Deref::const_t, IsTransposed > | const_t |
typedef Deref | deref_fn_t |
typedef parent_t::point_t | point_t |
typedef parent_t::coord_t | coord_t |
typedef parent_t::x_coord_t | x_coord_t |
typedef parent_t::y_coord_t | y_coord_t |
typedef parent_t::x_iterator | x_iterator |
typedef parent_t::y_iterator | y_iterator |
typedef std::iterator_traits < x_iterator >::value_type | value_type |
typedef std::iterator_traits < x_iterator >::reference | reference |
typedef point2< coord_t > | difference_type |
typedef difference_type | cached_location_t |
Public Member Functions | |
virtual_2d_locator (const point_t &p=point_t(0, 0), const point_t &step=point_t(1, 1), const deref_fn_t &d=deref_fn_t()) | |
template<typename D , bool TR> | |
virtual_2d_locator (const virtual_2d_locator< D, TR > &loc, coord_t y_step) | |
template<typename D , bool TR> | |
virtual_2d_locator (const virtual_2d_locator< D, TR > &loc, coord_t x_step, coord_t y_step, bool transpose=false) | |
template<typename D , bool TR> | |
virtual_2d_locator (const virtual_2d_locator< D, TR > &pl) | |
virtual_2d_locator (const virtual_2d_locator &pl) | |
bool | operator== (const this_t &p) const |
x_iterator & | x () |
y_iterator & | y () |
x_iterator const & | x () const |
y_iterator const & | y () const |
y_coord_t | y_distance_to (const this_t &it2, x_coord_t xDiff) const |
bool | is_1d_traversable (x_coord_t) const |
const point_t & | pos () const |
const point_t & | step () const |
const deref_fn_t & | deref_fn () const |
bool | operator!= (const virtual_2d_locator< Deref, IsTransposed > &p) const |
x_iterator | x_at (x_coord_t dx, y_coord_t dy) const |
x_iterator | x_at (const difference_type &d) const |
y_iterator | y_at (x_coord_t dx, y_coord_t dy) const |
y_iterator | y_at (const difference_type &d) const |
virtual_2d_locator< Deref, IsTransposed > | xy_at (x_coord_t dx, y_coord_t dy) const |
virtual_2d_locator< Deref, IsTransposed > | xy_at (const difference_type &d) const |
axis< D >::iterator & | axis_iterator () |
axis< D >::iterator const & | axis_iterator () const |
axis< D >::iterator | axis_iterator (const point_t &p) const |
reference | operator() (x_coord_t dx, y_coord_t dy) const |
reference | operator[] (const difference_type &d) const |
reference | operator* () const |
virtual_2d_locator< Deref, IsTransposed > & | operator+= (const difference_type &d) |
virtual_2d_locator< Deref, IsTransposed > & | operator-= (const difference_type &d) |
virtual_2d_locator< Deref, IsTransposed > | operator+ (const difference_type &d) const |
virtual_2d_locator< Deref, IsTransposed > | operator- (const difference_type &d) const |
cached_location_t | cache_location (const difference_type &d) const |
cached_location_t | cache_location (x_coord_t dx, y_coord_t dy) const |
Static Public Attributes | |
static const std::size_t | num_dimensions |
Friends | |
template<typename D , bool TR> | |
class | virtual_2d_locator |
A 2D locator over a virtual image.
Upon dereferencing, invokes a given function object passing it its coordinates. Models: PixelLocatorConcept, HasDynamicXStepTypeConcept, HasDynamicYStepTypeConcept, HasTransposedTypeConcept
|
inherited |
typedef virtual_2d_locator<typename Deref::const_t,IsTransposed> boost::gil::virtual_2d_locator< Deref, IsTransposed >::const_t |
typedef parent_t::coord_t boost::gil::virtual_2d_locator< Deref, IsTransposed >::coord_t |
typedef Deref boost::gil::virtual_2d_locator< Deref, IsTransposed >::deref_fn_t |
|
inherited |
typedef pixel_2d_locator_base<virtual_2d_locator<Deref,IsTransposed>, position_iterator<Deref,IsTransposed>, position_iterator<Deref,1-IsTransposed> > boost::gil::virtual_2d_locator< Deref, IsTransposed >::parent_t |
typedef parent_t::point_t boost::gil::virtual_2d_locator< Deref, IsTransposed >::point_t |
|
inherited |
|
inherited |
typedef parent_t::x_coord_t boost::gil::virtual_2d_locator< Deref, IsTransposed >::x_coord_t |
typedef parent_t::x_iterator boost::gil::virtual_2d_locator< Deref, IsTransposed >::x_iterator |
typedef parent_t::y_coord_t boost::gil::virtual_2d_locator< Deref, IsTransposed >::y_coord_t |
typedef parent_t::y_iterator boost::gil::virtual_2d_locator< Deref, IsTransposed >::y_iterator |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inlineinherited |
|
inline |
|
inline |
|
inline |
References boost::gil::gil_reinterpret_cast().
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inline |
|
friend |
|
staticinherited |