snakeprogram3d.display3d
Class ThreeDSurface
java.lang.Object
snakeprogram3d.display3d.ThreeDSurface
- All Implemented Interfaces:
- DataObject
public class ThreeDSurface
- extends java.lang.Object
- implements DataObject
This uses a 3D texture for 3 sets of orthoganol planes to simulate a volume
texture.
Constructor Summary |
ThreeDSurface(javax.media.j3d.Texture3D texture,
float xDim,
float yDim,
float zDim,
double zresolution)
|
Method Summary |
void |
createSurfaces(float xDim,
float yDim,
float zDim,
float zresolution)
|
javax.media.j3d.BranchGroup |
getBranchGroup()
This is required to add to a group |
javax.vecmath.Vector3f |
getOffset()
|
void |
setTexture(javax.media.j3d.Texture3D tex)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreeDSurface
public ThreeDSurface(javax.media.j3d.Texture3D texture,
float xDim,
float yDim,
float zDim,
double zresolution)
- Parameters:
texture
- texture shownxDim
- for scalingyDim
- for scalingzDim
- for scalingzresolution
- still scaling.
createSurfaces
public void createSurfaces(float xDim,
float yDim,
float zDim,
float zresolution)
getOffset
public javax.vecmath.Vector3f getOffset()
setTexture
public void setTexture(javax.media.j3d.Texture3D tex)
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