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.