#include <envelope.hpp>
Public Types | |
typedef Envelope< T > | EnvelopeType |
Public Member Functions | |
Envelope () | |
Envelope (T minx, T miny, T maxx, T maxy) | |
Envelope (const coord< T, 2 > &c0, const coord< T, 2 > &c1) | |
Envelope (const EnvelopeType &rhs) | |
T | minx () const |
T | miny () const |
T | maxx () const |
T | maxy () const |
T | width () const |
T | height () const |
void | width (T w) |
void | height (T h) |
coord< T, 2 > | center () const |
void | expand_to_include (T x, T y) |
void | expand_to_include (const coord< T, 2 > &c) |
void | expand_to_include (const EnvelopeType &other) |
bool | contains (const coord< T, 2 > &c) const |
bool | contains (T x, T y) const |
bool | contains (const EnvelopeType &other) const |
bool | intersects (const coord< T, 2 > &c) const |
bool | intersects (T x, T y) const |
bool | intersects (const EnvelopeType &other) const |
EnvelopeType | intersect (const EnvelopeType &other) const |
bool | operator== (const EnvelopeType &other) const |
void | re_center (T cx, T cy) |
void | init (T x0, T y0, T x1, T y1) |
EnvelopeType & | operator+= (EnvelopeType const &other) |
EnvelopeType & | operator-= (EnvelopeType const &other) |
EnvelopeType & | operator*= (T) |
EnvelopeType & | operator/= (T) |
typedef Envelope<T> mapnik::Envelope< T >::EnvelopeType |
mapnik::Envelope< T >::Envelope | ( | ) | [inline] |
mapnik::Envelope< T >::Envelope | ( | T | minx, | |
T | miny, | |||
T | maxx, | |||
T | maxy | |||
) | [inline] |
References mapnik::Envelope< T >::init().
mapnik::Envelope< T >::Envelope | ( | const coord< T, 2 > & | c0, | |
const coord< T, 2 > & | c1 | |||
) | [inline] |
References mapnik::Envelope< T >::init(), mapnik::coord< T, 2 >::x, and mapnik::coord< T, 2 >::y.
mapnik::Envelope< T >::Envelope | ( | const EnvelopeType & | rhs | ) |
coord< T, 2 > mapnik::Envelope< T >::center | ( | ) | const [inline] |
bool mapnik::Envelope< T >::contains | ( | const EnvelopeType & | other | ) | const |
bool mapnik::Envelope< T >::contains | ( | T | x, | |
T | y | |||
) | const [inline] |
bool mapnik::Envelope< T >::contains | ( | const coord< T, 2 > & | c | ) | const [inline] |
void mapnik::Envelope< T >::expand_to_include | ( | const EnvelopeType & | other | ) |
void mapnik::Envelope< T >::expand_to_include | ( | const coord< T, 2 > & | c | ) | [inline] |
void mapnik::Envelope< T >::expand_to_include | ( | T | x, | |
T | y | |||
) | [inline] |
void mapnik::Envelope< T >::height | ( | T | h | ) | [inline] |
References mapnik::Envelope< T >::center(), and mapnik::coord< T, 2 >::y.
T mapnik::Envelope< T >::height | ( | ) | const [inline] |
void mapnik::Envelope< T >::init | ( | T | x0, | |
T | y0, | |||
T | x1, | |||
T | y1 | |||
) | [inline] |
Envelope< T > mapnik::Envelope< T >::intersect | ( | const EnvelopeType & | other | ) | const [inline] |
bool mapnik::Envelope< T >::intersects | ( | const EnvelopeType & | other | ) | const |
bool mapnik::Envelope< T >::intersects | ( | T | x, | |
T | y | |||
) | const [inline] |
bool mapnik::Envelope< T >::intersects | ( | const coord< T, 2 > & | c | ) | const [inline] |
References mapnik::coord< T, 2 >::x, and mapnik::coord< T, 2 >::y.
Referenced by mapnik::placement_finder< DetectorT >::find_point_placement(), mapnik::label_collision_detector4::has_placement(), mapnik::filter_in_box::pass(), mapnik::Image32::set_rectangle(), mapnik::Image32::set_rectangle_alpha(), and mapnik::Image32::set_rectangle_alpha2().
T mapnik::Envelope< T >::maxx | ( | ) | const [inline] |
Referenced by mapnik::CoordTransform::backward(), mapnik::CoordTransform::forward(), mapnik::label_collision_detector4::has_placement(), mapnik::Map::pan(), mapnik::Map::query_map_point(), mapnik::Map::query_point(), mapnik::Image32::set_rectangle(), mapnik::Image32::set_rectangle_alpha(), mapnik::Image32::set_rectangle_alpha2(), mapnik::cairo_renderer< T >::start_map_processing(), and mapnik::Map::zoom_all().
T mapnik::Envelope< T >::maxy | ( | ) | const [inline] |
Referenced by mapnik::CoordTransform::backward(), mapnik::CoordTransform::forward(), mapnik::label_collision_detector4::has_placement(), mapnik::Map::pan(), mapnik::Map::query_map_point(), mapnik::Map::query_point(), mapnik::Image32::set_rectangle(), mapnik::Image32::set_rectangle_alpha(), mapnik::Image32::set_rectangle_alpha2(), mapnik::cairo_renderer< T >::start_map_processing(), and mapnik::Map::zoom_all().
T mapnik::Envelope< T >::minx | ( | ) | const [inline] |
Referenced by mapnik::CoordTransform::backward(), mapnik::CoordTransform::forward(), mapnik::label_collision_detector4::has_placement(), mapnik::Map::pan(), mapnik::cairo_renderer< T >::process(), mapnik::agg_renderer< T >::process(), mapnik::Map::query_map_point(), mapnik::Map::query_point(), mapnik::Image32::set_rectangle(), mapnik::Image32::set_rectangle_alpha(), mapnik::Image32::set_rectangle_alpha2(), mapnik::cairo_renderer< T >::start_map_processing(), and mapnik::Map::zoom_all().
T mapnik::Envelope< T >::miny | ( | ) | const [inline] |
Referenced by mapnik::CoordTransform::backward(), mapnik::CoordTransform::forward(), mapnik::label_collision_detector4::has_placement(), mapnik::Map::pan(), mapnik::cairo_renderer< T >::process(), mapnik::agg_renderer< T >::process(), mapnik::Map::query_map_point(), mapnik::Map::query_point(), mapnik::Image32::set_rectangle(), mapnik::Image32::set_rectangle_alpha(), mapnik::Image32::set_rectangle_alpha2(), mapnik::cairo_renderer< T >::start_map_processing(), and mapnik::Map::zoom_all().
Envelope< T > & mapnik::Envelope< T >::operator*= | ( | T | t | ) | [inline] |
EnvelopeType& mapnik::Envelope< T >::operator+= | ( | EnvelopeType const & | other | ) |
EnvelopeType& mapnik::Envelope< T >::operator-= | ( | EnvelopeType const & | other | ) |
Envelope< T > & mapnik::Envelope< T >::operator/= | ( | T | t | ) | [inline] |
bool mapnik::Envelope< T >::operator== | ( | const EnvelopeType & | other | ) | const |
void mapnik::Envelope< T >::re_center | ( | T | cx, | |
T | cy | |||
) | [inline] |
References mapnik::Envelope< T >::center(), mapnik::coord< T, 2 >::x, and mapnik::coord< T, 2 >::y.
void mapnik::Envelope< T >::width | ( | T | w | ) | [inline] |
References mapnik::Envelope< T >::center(), and mapnik::coord< T, 2 >::x.
T mapnik::Envelope< T >::width | ( | ) | const [inline] |