$extrastylesheet
#include <mln/core/site_set/p_line2d.hh>
Public Member Functions | |
p_line2d () | |
p_line2d (const point2d &beg, const point2d &end, bool is_end_excluded=false) | |
const box2d & | bbox () const |
const point2d & | begin () const |
const point2d & | end () const |
bool | has (const psite &p) const |
bool | has (const util::index &i) const |
bool | is_empty () const |
bool | is_valid () const |
std::size_t | memory_size () const |
unsigned | nsites () const |
const point2d & | operator[] (unsigned i) const |
const std::vector< point2d > & | std_vector () const |
algebra::vec< 2, float > | to_vec () const |
Protected Member Functions | |
void | compute_ (const point2d &beg, const point2d &end, bool is_end_excluded) |
Protected Attributes | |
p_array< point2d > | arr_ |
box2d | bb_ |
Public Types | |
typedef p_indexed_bkd_piter < self_ > | bkd_piter |
typedef Site_Set< void > | category |
typedef point2d | element |
typedef p_line2d | exact_t |
typedef p_indexed_fwd_piter < self_ > | fwd_piter |
typedef p_indexed_fwd_piter < self_ > | piter |
typedef p_indexed_psite< self_ > | psite |
typedef const box2d & | q_box |
typedef subject< point2d >::ret | site |
mln::p_line2d::p_line2d | ( | ) |
Constructor without argument.
Constructor from point beg
to point end
.
const box2d& mln::p_line2d::bbox | ( | ) | const |
Give the exact bounding box.
const point2d& mln::p_line2d::begin | ( | ) | const |
Give the point that begins the line.
|
protected |
const point2d& mln::p_line2d::end | ( | ) | const |
Give the point that ends the line.
bool mln::p_line2d::has | ( | const util::index & | i | ) | const |
Test if index i
belongs to this point set.
|
inherited |
Test if the site set is empty.
This final method dispatches to is_empty_ whose default implementation relies on the 'nsites' method.
bool mln::p_line2d::is_valid | ( | ) | const |
Test if this line is valid, i.e., initialized.
std::size_t mln::p_line2d::memory_size | ( | ) | const |
Return the size of this site set in memory.
unsigned mln::p_line2d::nsites | ( | ) | const |
Give the number of points.
const std::vector<point2d>& mln::p_line2d::std_vector | ( | ) | const |
Return the corresponding std::vector of points.
algebra::vec<2, float> mln::p_line2d::to_vec | ( | ) | const |
Definition at line 150 of file p_line2d.hh.
|
protected |
Definition at line 151 of file p_line2d.hh.
Backward Site_Iterator associated type.
Definition at line 98 of file p_line2d.hh.
|
inherited |
Definition at line 74 of file core/concept/site_set.hh.
typedef point2d mln::p_line2d::element |
Element associated type.
Definition at line 86 of file p_line2d.hh.
|
inherited |
Forward Site_Iterator associated type.
Definition at line 95 of file p_line2d.hh.
typedef p_indexed_fwd_piter<self_> mln::p_line2d::piter |
Site_Iterator associated type.
Definition at line 92 of file p_line2d.hh.
typedef p_indexed_psite<self_> mln::p_line2d::psite |
Psite associated type.
Definition at line 89 of file p_line2d.hh.
typedef const box2d& mln::p_line2d::q_box |
Box (qualified) associated type.
Definition at line 133 of file p_line2d.hh.
Site associated type.
Definition at line 58 of file site_set_base.hh.