anl.aida.viz3d
Class VLabel
java.lang.Object
anl.aida.viz3d.VSpatial
anl.aida.viz3d.VLabel
public class VLabel
- extends VSpatial
VNode that draws a label.This renders at 0, 0, 0 and so
a translation should be used to place it.
Field Summary |
private javax.vecmath.Color4f |
color
|
private java.lang.String |
label
|
private float |
scale
|
Fields inherited from class anl.aida.viz3d.VSpatial |
appearence, boundingSphere, clientMap, dirty, id, localRotation, localScale, localTrans, parent, visible, worldRotation, worldScale, worldTrans |
Constructor Summary |
VLabel(java.lang.String label)
|
Method Summary |
protected void |
doDraw(javax.media.opengl.GL gl)
Does the actual drawing. |
javax.vecmath.Color4f |
getColor()
|
void |
intersects(javax.vecmath.Point3f rayOrigin,
javax.vecmath.Vector3f rayDirection,
Accumulator accumulator)
Unimplemented for a label as a label cannot be picked. |
void |
setColor(java.awt.Color color)
|
Methods inherited from class anl.aida.viz3d.VSpatial |
doGetBoundingSphere, draw, getBoundingSphere, getLocalBoundingSphere, getMaterialAppearence, getParent, getProperty, getTranslation, getWorldToLocalTransform, isVisible, markAsDirty, percolateDirtyUp, putProperty, rotate, rotate, scale, setMaterialAppearence, setParent, setVisible, transform, translate, translate, updateWorldTransformation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
label
private java.lang.String label
color
private javax.vecmath.Color4f color
scale
private float scale
VLabel
public VLabel(java.lang.String label)
- Parameters:
render
- label
-
setColor
public void setColor(java.awt.Color color)
getColor
public javax.vecmath.Color4f getColor()
doDraw
protected void doDraw(javax.media.opengl.GL gl)
- Description copied from class:
VSpatial
- Does the actual drawing.
- Specified by:
doDraw
in class VSpatial
intersects
public final void intersects(javax.vecmath.Point3f rayOrigin,
javax.vecmath.Vector3f rayDirection,
Accumulator accumulator)
- Unimplemented for a label as a label cannot be picked.
- Specified by:
intersects
in class VSpatial
- Parameters:
rayOrigin
- the ray's originrayDirection
- the ray's directionaccumulator
- the accumulator to add the VSpatial to