|
||||||||||
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.StackRenderer2
public class StackRenderer2
Renders items in a stack.
Field Summary | |
---|---|
private boolean |
atBottom
|
private boolean |
atTop
|
private Axis |
axis
|
private javax.media.opengl.GLAutoDrawable |
drawable
|
private boolean |
initialized
|
private StackItemTextFormatter |
itemFormatter
|
private java.util.List<StackItem2> |
items
|
private StackSorter |
sorter
|
private int |
stackIndex
|
private static float |
X_INTERVAL
|
private static float |
Z_INTERVAL
|
Fields inherited from class anl.aida.viz3d.VSpatial |
---|
appearence, boundingSphere, clientMap, dirty, id, localRotation, localScale, localTrans, parent, visible, worldRotation, worldScale, worldTrans |
Constructor Summary | |
---|---|
StackRenderer2(javax.media.opengl.GLAutoDrawable drawable)
|
|
StackRenderer2(javax.media.opengl.GLAutoDrawable drawable,
StackItemTextFormatter itemFormatter)
|
Method Summary | |
---|---|
void |
addStackItem(StackItem2 item)
Adds a StackItem to this StackRenderer. |
protected void |
doDraw(javax.media.opengl.GL gl)
Does the actual drawing. |
protected BoundingSphere |
doGetBoundingSphere()
Gets the actual bounding sphere. |
javax.media.opengl.GLAutoDrawable |
getDrawable()
Gets the drawable used by this StackRenderer. |
void |
intersects(javax.vecmath.Point3f rayOrigin,
javax.vecmath.Vector3f rayDirection,
Accumulator accumulator)
Performs an intersection these on this VSpatial with the specified ray. |
void |
jumpTo(int index,
boolean updateDisplay)
Jumps the top of the stack to the specified index. |
void |
jumpTo(StackItem2 item,
boolean updateDisplay)
Jumps the top of the stack to the StackItem |
protected void |
markAsDirty()
|
void |
moveOff()
Moves the current stack item incrementaly off the stack. |
void |
moveOn()
Moves the current stack item incrementaly on to the stack. |
void |
next()
Pops the current stack item completely off the stack and make the current stack item the next one. |
void |
prev()
If the current stack item is current moving onto / off the stack, then this pushes it completely onto the stack. |
private void |
resetItems()
|
void |
updateWorldTransformation()
|
Methods inherited from class anl.aida.viz3d.VSpatial |
---|
draw, getBoundingSphere, getLocalBoundingSphere, 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, toString, wait, wait, wait |
Field Detail |
---|
private static float Z_INTERVAL
private static float X_INTERVAL
private java.util.List<StackItem2> items
private int stackIndex
private boolean atTop
private boolean atBottom
private javax.media.opengl.GLAutoDrawable drawable
private boolean initialized
private StackItemTextFormatter itemFormatter
private StackSorter sorter
private Axis axis
Constructor Detail |
---|
public StackRenderer2(javax.media.opengl.GLAutoDrawable drawable)
public StackRenderer2(javax.media.opengl.GLAutoDrawable drawable, StackItemTextFormatter itemFormatter)
Method Detail |
---|
public javax.media.opengl.GLAutoDrawable getDrawable()
public void addStackItem(StackItem2 item)
item
- the item to addprivate void resetItems()
protected void markAsDirty()
markAsDirty
in class VSpatial
public void updateWorldTransformation()
updateWorldTransformation
in class VSpatial
public void next()
public void prev()
public void moveOff()
public void moveOn()
public void jumpTo(StackItem2 item, boolean updateDisplay)
item
- the item to jump toupdateDisplay
- whether or not to update the display as the stack
pops / pushes to the specified indexpublic void jumpTo(int index, boolean updateDisplay)
index
- the index to jump to.updateDisplay
- whether or not to update the display as the stack
pops / pushes to the specified indexprotected void doDraw(javax.media.opengl.GL gl)
VSpatial
doDraw
in class VSpatial
protected BoundingSphere doGetBoundingSphere()
VSpatial
doGetBoundingSphere
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 to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |