|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Order2D
Abstract 2D rectangle passing algorithm. From mathematical point of view it is a mapping "<0,M*N-1> -> <0,M-1> x <0,N-1>".
Field Summary | |
---|---|
static java.lang.String |
ORDER_TYPE
Order type property (int). |
Fields inherited from interface cz.cuni.jagrlib.iface.Property |
---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
Method Summary | |
---|---|
void |
init()
Re-initializes the pass algorithm. |
boolean |
isNext()
Anything to pass? |
int[] |
next(int[] coords)
Returns the next 2D point. |
void |
pass()
Executes the whole rectangle pass. |
void |
setSize(int _m,
int _n)
Sets the source rectangle size. |
Methods inherited from interface cz.cuni.jagrlib.iface.Property |
---|
commit, get, set |
Field Detail |
---|
static final java.lang.String ORDER_TYPE
Method Detail |
---|
void setSize(int _m, int _n)
_m
- Horizontal rectangle size (width)._n
- Vertical rectangle size (height).init()
void init()
setSize(int, int)
int[] next(int[] coords)
coords
- Pre-allocated array of size 2 (for [X,Y] coordinates).
Can be null
.
init()
boolean isNext()
true
if there is at least one pixel to pass.init()
,
next(int[])
void pass()
setSize(int, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |