$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::canvas::browsing::snake_vert_t Struct Reference

#include <mln/canvas/browsing/snake_vert.hh>

Public Member Functions

 snake_vert_t ()
void final ()
void init ()
template<typename F >
void operator() (F &f) const

Public Types

typedef Browsing< void > category
typedef snake_vert_t exact_t

Detailed Description

Browsing in a snake-way, forward.

This canvas browse all the point of an image 'input' like this :

|  /\ |
|  |  |
\/ |  \/

The fonctor should provide (In addition to 'input') four methods :

  • init() : Will be called at the beginning.
  • down() : Will be called after each moving down.
  • up() : Will ba called after each moving up.
  • fwd() : Will be called after each moving right. (will also be called once at the first point).

This methods should acces to the current working point 'p' also provided by the functor.

Warning: This canvas works only on 2D.

F shall feature:
{
— as attributes:
input;
p;
— as methods:
void init();
void down();
void up();
void fwd();
}

modcanvasbrowsing

Definition at line 86 of file snake_vert.hh.

Constructor & Destructor Documentation

mln::canvas::browsing::snake_vert_t::snake_vert_t ( )

Member Function Documentation

void mln::Browsing< snake_vert_t >::final ( )
inherited
void mln::Browsing< snake_vert_t >::init ( )
inherited
template<typename F >
void mln::canvas::browsing::snake_vert_t::operator() ( F &  f) const

Member Typedef Documentation

typedef Browsing<void> mln::Browsing< snake_vert_t >::category
inherited

Definition at line 60 of file browsing.hh.

Definition at line 105 of file object.hh.