mln::win::backdiag2d Struct Reference
[2D windows]

Diagonal line window defined on the 2D square grid. More...

#include <backdiag2d.hh>

Inherits classical_window_base< dpoint2d, backdiag2d >.

List of all members.

Public Member Functions

 backdiag2d (unsigned length)
 Constructor.
unsigned length () const
 Give the diagonal length, that is, its width.


Detailed Description

Diagonal line window defined on the 2D square grid.

An backdiag2d is centered and symmetric. its width (length) is odd.

For instance:

     *  o
     *    o
     *      x
     *        o
     *          o
     * 
is defined with length = 5.

Constructor & Destructor Documentation

mln::win::backdiag2d::backdiag2d ( unsigned  length  )  [inline]

Constructor.

Parameters:
[in] length Length, thus width, of the diagonal line.
Precondition:
length is odd.


Member Function Documentation

unsigned mln::win::backdiag2d::length (  )  const [inline]

Give the diagonal length, that is, its width.


Generated on Tue Jul 14 16:33:22 2009 for Milena (Olena) by  doxygen 1.5.9