snakeprogram3d.display3d
Class PolyLine
java.lang.Object
snakeprogram3d.display3d.PolyLine
- All Implemented Interfaces:
- DataObject
public class PolyLine
- extends java.lang.Object
- implements DataObject
This is a minimal surface type, it can only be deformed by giving it a new dataset, it is also
only visible from 1 side
Constructor Summary |
PolyLine(Snake s,
double height,
double width,
double depth,
int frame)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PolyLine
public PolyLine(Snake s,
double height,
double width,
double depth,
int frame)
getBranchGroup
public javax.media.j3d.BranchGroup getBranchGroup()
- Description copied from interface:
DataObject
- This is required to add to a group
- Specified by:
getBranchGroup
in interface DataObject
createAppearance
public javax.media.j3d.Appearance createAppearance()
updateGeometry
public void updateGeometry()
- updates the geometry of snakes, not safe if there are zero points.
getNode
public javax.media.j3d.Node getNode()
getSnake
public Snake getSnake()
setColor
public void setColor(int v)