|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsnakeprogram3d.display3d.ThreeDSnake
public class ThreeDSnake
For display snakes in a Volume view of the image.
Constructor Summary | |
---|---|
ThreeDSnake(java.awt.GraphicsConfiguration gc)
|
Method Summary | |
---|---|
void |
addSnake(Snake s)
|
void |
addSnakeListener(SnakeModel sm)
|
void |
deleteSnake(Snake s)
|
java.awt.Component |
getComponent()
|
void |
refreshImages()
|
void |
reset(SnakeBufferedImages sbi)
Anytime the image might have changed this is called. |
void |
setSelected(Snake s)
|
void |
synchronizeSnakes(MultipleSnakesStore ss)
Removes all snakes and displays the snakes in ss. |
void |
updateCursor(double x,
double y,
double z)
Moves the 'cursor', which is a sphere. |
void |
updatePick(com.sun.j3d.utils.picking.PickResult[] results,
java.awt.event.MouseEvent evt,
boolean clicked)
Find the coordinates of an intersection for a mouse event and a displayed object. |
void |
updateSnakePositions()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreeDSnake(java.awt.GraphicsConfiguration gc)
Method Detail |
---|
public java.awt.Component getComponent()
public void addSnake(Snake s)
public void updateSnakePositions()
public void deleteSnake(Snake s)
public void synchronizeSnakes(MultipleSnakesStore ss)
ss
- the snakes to be display, should be callled by the snake model.public void updateCursor(double x, double y, double z)
x
- positiony
- ''z
- ''public void reset(SnakeBufferedImages sbi)
sbi
- Volume data.public void refreshImages()
public void addSnakeListener(SnakeModel sm)
public void setSelected(Snake s)
public void updatePick(com.sun.j3d.utils.picking.PickResult[] results, java.awt.event.MouseEvent evt, boolean clicked)
results
- all of the intersections with a mouse eventevt
- the event that generated the intersections.clicked
- whether it was generated by a click.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |