|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.viz3d.VSpatial
anl.aida.viz3d.StackItem2
public class StackItem2
An item in a StackDisplay.
Field Summary | |
---|---|
private StackDrawable2 |
drawable
|
private long |
index
|
private static float |
MAX_ROT
|
private static float |
MAX_X
|
private static float |
MAX_Z
|
private float |
rotation
|
private float |
x
|
private float |
xOff
|
private float |
z
|
private float |
zOff
|
Fields inherited from class anl.aida.viz3d.VSpatial |
---|
appearence, boundingSphere, clientMap, dirty, id, localRotation, localScale, localTrans, parent, visible, worldRotation, worldScale, worldTrans |
Constructor Summary | |
---|---|
StackItem2(StackDrawable2 drawable,
long index)
|
Method Summary | |
---|---|
int |
compareTo(StackItem2 o)
|
protected void |
doDraw(javax.media.opengl.GL gl)
Does the actual drawing. |
protected BoundingSphere |
doGetBoundingSphere()
Gets the actual bounding sphere. |
void |
draw(javax.media.opengl.GL gl)
Draws this StackItem. |
BoundingSphere |
getBoundingSphere()
Gets this VSpatial's BoundingSphere in the world frame. |
BoundingSphere |
getLocalBoundingSphere()
Gets this VSpatial's BoundingSphere in its local frame. |
long |
getSortingIndex()
Gets an index for this StackItem that can be used to sort this item with respect to other items. |
void |
intersects(javax.vecmath.Point3f rayOrigin,
javax.vecmath.Vector3f rayDirection,
Accumulator accumulator)
Performs an intersection these on this VSpatial with the specified ray. |
boolean |
isMoving()
Gets whether or not this slice is currently moving. |
protected void |
markAsDirty()
|
boolean |
moveOff()
Moves this StackItem off the stack. |
boolean |
moveOn()
Moves this StackItem onto the stack. |
void |
putOffStack()
Puts this StackItem completely off the stack. |
void |
putOnStack()
Puts this StackItem completely on the stack. |
void |
setOffsets(float xOff,
float zOff)
Sets the offsets for this StackItem. |
void |
stackPosition(int index,
int stackSize)
Notifies this StackItem of its position in the stack prior to drawing. |
java.lang.String |
toString()
|
void |
updateWorldTransformation()
|
Methods inherited from class anl.aida.viz3d.VSpatial |
---|
getMaterialAppearence, getParent, getProperty, getTranslation, getWorldToLocalTransform, isVisible, percolateDirtyUp, putProperty, rotate, rotate, scale, setMaterialAppearence, setParent, setVisible, transform, translate, translate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static float MAX_X
private static float MAX_Z
private static float MAX_ROT
private float rotation
private float x
private float z
private float xOff
private float zOff
private StackDrawable2 drawable
private long index
Constructor Detail |
---|
public StackItem2(StackDrawable2 drawable, long index)
item
- Method Detail |
---|
public void stackPosition(int index, int stackSize)
index
- the index of this StackItem in the stackstackSize
- the current size of the stackpublic long getSortingIndex()
public void putOffStack()
public void putOnStack()
public boolean isMoving()
public boolean moveOff()
public void setOffsets(float xOff, float zOff)
xOff
- the x offsetzOff
- the y offsetpublic boolean moveOn()
public java.lang.String toString()
toString
in class java.lang.Object
public void draw(javax.media.opengl.GL gl)
draw
in class VSpatial
gl
- zOff
- the z offset for this StackItemxOff
- the x offset for this StackItempublic void updateWorldTransformation()
updateWorldTransformation
in class VSpatial
protected void doDraw(javax.media.opengl.GL gl)
VSpatial
doDraw
in class VSpatial
protected void markAsDirty()
markAsDirty
in class VSpatial
public BoundingSphere getBoundingSphere()
VSpatial
getBoundingSphere
in class VSpatial
protected BoundingSphere doGetBoundingSphere()
VSpatial
doGetBoundingSphere
in class VSpatial
public BoundingSphere getLocalBoundingSphere()
VSpatial
getLocalBoundingSphere
in class VSpatial
public void intersects(javax.vecmath.Point3f rayOrigin, javax.vecmath.Vector3f rayDirection, Accumulator accumulator)
VSpatial
intersects
in class VSpatial
rayOrigin
- the ray's originrayDirection
- the ray's directionaccumulator
- the accumulator to add the VSpatial topublic int compareTo(StackItem2 o)
compareTo
in interface java.lang.Comparable<StackItem2>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |