public static enum LabelMapToPolygons.Direction extends Enum<LabelMapToPolygons.Direction>
| Modifier and Type | Method and Description |
|---|---|
abstract int[][] |
coordsShifts()
Returns a 2-by-2 array corresponding to a pair of coordinates shifts,
that will be used to access coordinates of next pixels within
configuration.
|
abstract LabelMapToPolygons.Position |
forward(LabelMapToPolygons.Position pos)
Updates the specified position by iterating by one step in the
current direction.
|
abstract Point |
getVertex(LabelMapToPolygons.Position pos) |
abstract LabelMapToPolygons.Position |
turnLeft(LabelMapToPolygons.Position pos)
Keeps current reference pixel and turn direction by +90 degrees in
counter-clockwise direction.
|
abstract LabelMapToPolygons.Position |
turnRight(LabelMapToPolygons.Position pos)
Keeps current reference pixel and turn direction by -90 degrees in
counter-clockwise direction.
|
static LabelMapToPolygons.Direction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LabelMapToPolygons.Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LabelMapToPolygons.Direction RIGHT
public static final LabelMapToPolygons.Direction UP
public static final LabelMapToPolygons.Direction LEFT
public static final LabelMapToPolygons.Direction DOWN
public static LabelMapToPolygons.Direction[] values()
for (LabelMapToPolygons.Direction c : LabelMapToPolygons.Direction.values()) System.out.println(c);
public static LabelMapToPolygons.Direction valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract int[][] coordsShifts()
public abstract Point getVertex(LabelMapToPolygons.Position pos)
public abstract LabelMapToPolygons.Position turnLeft(LabelMapToPolygons.Position pos)
pos - the position to updatepublic abstract LabelMapToPolygons.Position forward(LabelMapToPolygons.Position pos)
pos - the position to updatepublic abstract LabelMapToPolygons.Position turnRight(LabelMapToPolygons.Position pos)
pos - the position to updateCopyright © 2014–2024 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.