|
||||||||||
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.LabeledShape
public class LabeledShape
Field Summary | |
---|---|
private VLabel |
label
|
private VSpatial |
node
|
private float[] |
offset
|
Fields inherited from class anl.aida.viz3d.VSpatial |
---|
appearence, boundingSphere, clientMap, dirty, id, localRotation, localScale, localTrans, parent, visible, worldRotation, worldScale, worldTrans |
Constructor Summary | |
---|---|
LabeledShape(VSpatial node,
java.lang.String label,
float[] offset)
|
Method Summary | |
---|---|
protected void |
doDraw(javax.media.opengl.GL gl)
Does the actual drawing. |
protected BoundingSphere |
doGetBoundingSphere()
Gets the actual bounding sphere. |
javax.vecmath.Color4f |
getLabelColor()
Gets the color of this LabeledNode's label. |
MaterialAppearence |
getMaterialAppearence()
Gets the MaterialAppearence of this VSpatial. |
BoundingSphere |
getNodeBoundingSphere()
Gets the node (non-label) bounding Sphere. |
void |
intersects(javax.vecmath.Point3f rayOrigin,
javax.vecmath.Vector3f rayDirection,
Accumulator accumulator)
Performs an intersection these on this VSpatial with the specified ray. |
boolean |
isLabelVisible()
Gets whether or not this LabeledNode's label. |
boolean |
isNodeVisible()
Gets whether or not this LabeledNode's node is visible. |
protected void |
markAsDirty()
|
private void |
resetLabelLocation()
|
void |
scaleNode(float scale)
Scales the node part of this node label, leaving the label as is. |
void |
setLabelColor(java.awt.Color color)
Sets the color of this LabeledNode's label. |
void |
setLabelVisible(boolean visible)
Sets the visibility of this LabeledNode's label. |
void |
setMaterialAppearence(MaterialAppearence app)
Sets the MaterialAppearence of this VSpatial. |
void |
setNodeMaterialAppearence(MaterialAppearence app)
|
void |
setNodeVisible(boolean visible)
Sets the visibility of this LabeledNode's node. |
void |
updateWorldTransformation()
|
Methods inherited from class anl.aida.viz3d.VSpatial |
---|
draw, getBoundingSphere, getLocalBoundingSphere, getParent, getProperty, getTranslation, getWorldToLocalTransform, isVisible, percolateDirtyUp, putProperty, rotate, rotate, scale, 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 VSpatial node
private VLabel label
private float[] offset
Constructor Detail |
---|
public LabeledShape(VSpatial node, java.lang.String label, float[] offset)
Method Detail |
---|
protected void markAsDirty()
markAsDirty
in class VSpatial
public void updateWorldTransformation()
updateWorldTransformation
in class VSpatial
public void scaleNode(float scale)
scale
- the amount to scalepublic void setNodeMaterialAppearence(MaterialAppearence app)
public MaterialAppearence getMaterialAppearence()
VSpatial
MaterialAppearence
of this VSpatial.
getMaterialAppearence
in class VSpatial
MaterialAppearence
of this VSpatial.public void setMaterialAppearence(MaterialAppearence app)
VSpatial
MaterialAppearence
of this VSpatial.
setMaterialAppearence
in class VSpatial
app
- the new appearencepublic void setLabelColor(java.awt.Color color)
color
- the new colorpublic javax.vecmath.Color4f getLabelColor()
public void setNodeVisible(boolean visible)
visible
- the new visibility propertypublic boolean isNodeVisible()
public void setLabelVisible(boolean visible)
visible
- the new visibility propertypublic boolean isLabelVisible()
protected void doDraw(javax.media.opengl.GL gl)
VSpatial
doDraw
in class VSpatial
public BoundingSphere getNodeBoundingSphere()
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 toprivate void resetLabelLocation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |