snakeprogram3d.display3d
Class PolyLine

java.lang.Object
  extended by 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)
           
 
Method Summary
 javax.media.j3d.Appearance createAppearance()
           
 javax.media.j3d.BranchGroup getBranchGroup()
          This is required to add to a group
 javax.media.j3d.Node getNode()
           
 Snake getSnake()
           
 void setColor(int v)
           
 void updateGeometry()
          updates the geometry of snakes, not safe if there are zero points.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolyLine

public PolyLine(Snake s,
                double height,
                double width,
                double depth,
                int frame)
Method Detail

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)