$extrastylesheet
#include <mln/win/line.hh>
Public Member Functions | |
line (unsigned length) | |
unsigned | delta () const |
unsigned | delta_ () const |
const dpoint< M, C > & | dp (unsigned i) const |
bool | has (const dpoint< M, C > &dp) const |
bool | is_centered () const |
bool | is_empty () const |
bool | is_symmetric () const |
bool | is_valid () const |
unsigned | length () const |
void | print (std::ostream &ostr) const |
void | print_ (std::ostream &ostr) const |
unsigned | size () const |
const std::vector< dpoint< M, C > > & | std_vector () const |
void | sym () |
const std::vector< dpoint< M, C > > & | vect () const |
Protected Member Functions | |
void | insert (const dpoint< M, C > &d) |
Protected Attributes | |
unsigned | length_ |
mln::window< dpoint< M, C > > | win_ |
Public Types | |
enum | { dir = i } |
typedef dpsites_fwd_piter < line< M, i, C > > | bkd_qiter |
typedef Window< void > | category |
typedef psite | center_t |
typedef dpoint< M, C > | dpsite |
typedef line< M, i, C > | exact_t |
typedef dpsites_fwd_piter < line< M, i, C > > | fwd_qiter |
typedef dpoint< M, C >::psite | psite |
typedef fwd_qiter | qiter |
typedef window< dpoint< M, C > > | regular |
typedef dpoint< M, C >::site | site |
Generic line window defined on a given grid in the given dimension.
An line is centered and symmetric; so its length is odd.
M is the given grid on which the line is defined, i is the given dimension of the line end C is the type of the coordinates.
Definition at line 73 of file win/line.hh.
mln::win::line< M, i, C >::line | ( | unsigned | length | ) |
Constructor.
[in] | length | Length of the line. |
length
is odd.
|
inherited |
Give the maximum coordinate gap between the window center and a window point.
unsigned mln::win::line< M, i, C >::delta_ | ( | ) | const |
Give the maximum coordinate gap between the window center and a window point.
Reimplemented from mln::internal::classical_window_base< dpoint< M, C >, line< M, i, C > >.
|
inherited |
Give the i-th
delta-point.
|
inherited |
Test if the delta-point dp
belongs to the window.
|
protectedinherited |
|
inherited |
Test if the window is centered; return true.
|
inherited |
Test if the window is empty (null size; no delta-point).
|
inherited |
Test if the window is symmetric; return true.
|
inherited |
return true by default.
unsigned mln::win::line< M, i, C >::length | ( | ) | const |
Give the line length.
|
inherited |
Print into ostr
the window definition.
void mln::win::line< M, i, C >::print_ | ( | std::ostream & | ostr | ) | const |
Reimplemented from mln::internal::classical_window_base< dpoint< M, C >, line< M, i, C > >.
unsigned mln::win::line< M, i, C >::size | ( | ) | const |
Give the line size, that is, its length.
Reimplemented from mln::internal::classical_window_base< dpoint< M, C >, line< M, i, C > >.
|
inherited |
Give the vector of delta-points.
|
inherited |
Apply a central symmetry to the target window; a no-op here.
|
inherited |
Give the vector of delta-points.
|
protected |
Definition at line 96 of file win/line.hh.
|
protectedinherited |
Definition at line 119 of file classical_window_base.hh.
|
inherited |
Backward site iterator associated type.
Definition at line 68 of file classical_window_base.hh.
|
inherited |
Definition at line 95 of file concept/window.hh.
|
inherited |
Type of the window center.
Definition at line 64 of file window_base.hh.
|
inherited |
DPsite associated type.
Definition at line 55 of file window_base.hh.
|
inherited |
|
inherited |
Forward site iterator associated type.
Definition at line 65 of file classical_window_base.hh.
|
inherited |
Psite associated type.
Definition at line 58 of file window_base.hh.
|
inherited |
Site iterator associated type.
Definition at line 71 of file classical_window_base.hh.
|
inherited |
Regular window associated type.
Definition at line 61 of file classical_window_base.hh.
|
inherited |
Site associated type.
Definition at line 61 of file window_base.hh.
anonymous enum |