$extrastylesheet
#include <mln/win/octagon2d.hh>
Public Member Functions | |
octagon2d (unsigned length) | |
unsigned | area () const |
unsigned | delta () const |
unsigned | delta_ () const |
const dpoint2d & | dp (unsigned i) const |
bool | has (const dpoint2d &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< dpoint2d > & | std_vector () const |
void | sym () |
const std::vector< dpoint2d > & | vect () const |
Protected Member Functions | |
void | insert (const dpoint2d &d) |
Protected Attributes | |
unsigned | length_ |
mln::window< dpoint2d > | win_ |
Public Types | |
typedef dpsites_fwd_piter < octagon2d > | bkd_qiter |
typedef Window< void > | category |
typedef psite | center_t |
typedef dpoint2d | dpsite |
typedef octagon2d | exact_t |
typedef dpsites_fwd_piter < octagon2d > | fwd_qiter |
typedef dpoint2d::psite | psite |
typedef fwd_qiter | qiter |
typedef window< dpoint2d > | regular |
typedef dpoint2d::site | site |
Octagon window defined on the 2D square grid.
An octagon2d is centered and symmetric.
The length L of the octagon is such as L = 6 * l + 1 where l >= 0.
For instance:
* o o o * o o o o o * o o o o o o o * o o o x o o o * o o o o o o o * o o o o o * o o o *
is defined with L = 7 (l = 1).
Definition at line 67 of file octagon2d.hh.
mln::win::octagon2d::octagon2d | ( | unsigned | length | ) |
Constructor.
[in] | length | Length, of the octagon. |
length
is such as length = 6*x + 1 where x >= 0. unsigned mln::win::octagon2d::area | ( | ) | const |
Give the area.
|
inherited |
Give the maximum coordinate gap between the window center and a window point.
unsigned mln::win::octagon2d::delta_ | ( | ) | const |
Give the maximum coordinate gap between the window center and a window point.
Reimplemented from mln::internal::classical_window_base< dpoint2d, octagon2d >.
|
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::octagon2d::length | ( | ) | const |
Give the octagon length, that is, its width.
|
inherited |
Print into ostr
the window definition.
void mln::win::octagon2d::print_ | ( | std::ostream & | ostr | ) | const |
Reimplemented from mln::internal::classical_window_base< dpoint2d, octagon2d >.
|
inherited |
Give the number of delta-points.
|
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 93 of file octagon2d.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.
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.
Site associated type.
Definition at line 61 of file window_base.hh.