anl.aida.viz3d
Class Slice
java.lang.Object
anl.aida.viz3d.Slice
public class Slice
- extends java.lang.Object
Field Summary |
private float |
rotation
|
private com.sun.opengl.util.texture.Texture |
texture
|
private float |
x
|
private float |
z
|
Constructor Summary |
Slice(com.sun.opengl.util.texture.Texture texture)
|
Method Summary |
void |
draw(javax.media.opengl.GL gl,
float zOff,
float xOff)
|
boolean |
isMoving()
Gets whether or not this slice is currently moving. |
boolean |
moveLeft()
|
boolean |
moveRight()
|
void |
reset()
|
void |
setParamters(float rotation,
float x,
float z)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
rotation
private float rotation
x
private float x
z
private float z
texture
private com.sun.opengl.util.texture.Texture texture
Slice
public Slice(com.sun.opengl.util.texture.Texture texture)
setParamters
public void setParamters(float rotation,
float x,
float z)
isMoving
public boolean isMoving()
- Gets whether or not this slice is currently moving.
A slice is moving if its rotation is between 0 and
the maxium rotation.
- Returns:
- whether or not this slice is currently moving.
moveLeft
public boolean moveLeft()
moveRight
public boolean moveRight()
reset
public void reset()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
draw
public void draw(javax.media.opengl.GL gl,
float zOff,
float xOff)