public class SnakeKeeper
extends java.lang.Object
implements icy.roi.ROIListener, java.util.Observer
| Constructor and Description |
|---|
SnakeKeeper(icy.sequence.Sequence sequence,
FlySnake snake,
Flicy mainPlugin)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activateSnake() |
void |
addLegsToSnake()
Add 6 parametric legs to a snake.
|
void |
alignSnakeToFly() |
void |
changeFrame(int time)
Update the screen when moving in the video.
|
java.awt.geom.Point2D[] |
computeLegs(java.awt.geom.Point2D[] initpoints) |
void |
deactivateSnake() |
FlySnakeParameters |
getESnakeParameters() |
java.lang.String |
getID() |
plugins.big.bigsnakeutils.icy.snake2D.Snake2DNode[] |
getNodesCopy() |
plugins.fab.trackmanager.TrackSegment |
getTrackSegment() |
void |
optimize()
Optimize a snake without using thread.
|
void |
optimizeLegs() |
void |
removeFromSequence() |
void |
roiChanged(icy.roi.ROIEvent event) |
void |
setID(java.lang.String id) |
void |
setSelected(boolean selected) |
void |
setSnakeEditMode(SnakeEditMode editingMode) |
void |
setSnakeParameters(FlySnakeParameters snakeParameters)
Updates the parameters of the snake.
|
void |
setTimePosition(int time)
Sets internally the time frame where the snake is focused.
|
void |
shiftSnake(int dx,
int dy)
Applies a shift on the position of the snake (threaded).
|
void |
shiftSnakeL(int dx,
int dy)
Applies a shift on the position of the snake (non-threaded).
|
void |
startOptimization()
Launches the optimization procedure in a new thread.
|
void |
startTrackingOptimization()
Launches the optimization procedure for all frames in a new thread.
|
void |
stopOptimization()
Stops the optimization procedure.
|
void |
stopTrackingOptimization()
Stops the optimization procedure at this position in the video.
|
void |
update(java.util.Observable observable,
java.lang.Object object)
Update the ROIs from the scales.
|
void |
updateLegs() |
public void activateSnake()
public void addLegsToSnake()
public java.awt.geom.Point2D[] computeLegs(java.awt.geom.Point2D[] initpoints)
public void updateLegs()
public void alignSnakeToFly()
public void changeFrame(int time)
public void deactivateSnake()
public FlySnakeParameters getESnakeParameters()
public java.lang.String getID()
public plugins.big.bigsnakeutils.icy.snake2D.Snake2DNode[] getNodesCopy()
public plugins.fab.trackmanager.TrackSegment getTrackSegment()
public void optimize()
public void optimizeLegs()
public void removeFromSequence()
public void roiChanged(icy.roi.ROIEvent event)
roiChanged in interface icy.roi.ROIListenerpublic void setID(java.lang.String id)
public void setSelected(boolean selected)
public void setSnakeEditMode(SnakeEditMode editingMode)
public void setSnakeParameters(FlySnakeParameters snakeParameters)
public void setTimePosition(int time)
public void shiftSnake(int dx,
int dy)
public void shiftSnakeL(int dx,
int dy)
public void startOptimization()
public void startTrackingOptimization()
public void stopOptimization()
public void stopTrackingOptimization()
public void update(java.util.Observable observable,
java.lang.Object object)
update in interface java.util.Observer