snakeprogram3d.display3d
Class VariableTextured3dSurface
java.lang.Object
snakeprogram3d.display3d.VariableTextured3dSurface
- All Implemented Interfaces:
- DataObject
public class VariableTextured3dSurface
- extends java.lang.Object
- implements DataObject
VariableTextured3dSurface uses a Texture3d and the texture appears to change as the
surface moves accordingly. Essentially it shows a slice of the volume.
Constructor Summary |
VariableTextured3dSurface(javax.media.j3d.Texture3D texture,
javax.media.j3d.TexCoordGeneration tg,
double[][] points)
Creats a surface composed of 2 triangle arrays at the four points specefied in points. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VariableTextured3dSurface
public VariableTextured3dSurface(javax.media.j3d.Texture3D texture,
javax.media.j3d.TexCoordGeneration tg,
double[][] points)
- Creats a surface composed of 2 triangle arrays at the four points specefied in points.
- Parameters:
texture
- if this is a top surface or a bottom surface where true is top and false is bottom
points are the x,y,z values
setPosition
public void setPosition(double[] xyz)
setOffset
public void setOffset(double x,
double y,
double z)
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
getPlaneNode
public javax.media.j3d.Node getPlaneNode()
setTexture
public void setTexture(javax.media.j3d.Texture3D tex)