#include <hexa.hh>
Public Types | |
typedef hexa_bkd_piter_< box2d > | bkd_piter |
FIXME : should it be in box2d_h? Backward Site_Iterator associated type. | |
typedef hexa_fwd_piter_< box2d > | fwd_piter |
FIXME : should it be in box2d_h? Forward Site_Iterator associated type. | |
typedef I::lvalue | lvalue |
Lvalue associated type. | |
typedef point2d_h | psite |
Point site type. | |
typedef I::rvalue | rvalue |
Return type of read-only access. | |
typedef hexa< tag::image_< I > > | skeleton |
Skeleton. | |
typedef I::value | value |
Value associated type. | |
Public Member Functions | |
const box2d_h & | domain () const |
Give the definition domain. | |
bool | has (const psite &p) const |
Test if p belongs to the image domain. | |
hexa (I &ima) | |
Constructor with an base image. | |
hexa () | |
Constructor without argument. | |
lvalue | operator() (const point2d_h &p) |
Read-write access of pixel value at hexa point site p . | |
rvalue | operator() (const point2d_h &p) const |
Read-only access of pixel value at hexa point site p . |
The parameter I
is the type of the base image. This image class which handles hexagonal grid.
Ex : 1 3 5 7 9 11 0 2 4 6 8 10 ------------------- 0 XX| | | | | | |XX --------------------- 2 XX| | | | | | |XX --------------------- 4 XX| | | | | | |XX --------------------- 6 XX| | | | | | |XX --------------------- 8 XX| | | | | | |XX -------------------
FIXME : should it be in box2d_h? Backward Site_Iterator associated type.
FIXME : should it be in box2d_h? Forward Site_Iterator associated type.
Give the definition domain.