visual.entity
Class Node3d

java.lang.Object
  extended by visual.entity.Entity3d
      extended by visual.entity.Node3d

public class Node3d
extends Entity3d

Created by IntelliJ IDEA. User: andy Date: Apr 6, 2010 Extends Entity3d abstract class by defining a viewable 3d Node.


Nested Class Summary
 
Nested classes/interfaces inherited from class visual.entity.Entity3d
Entity3d.SCALE
 
Field Summary
 
Fields inherited from class visual.entity.Entity3d
entity, factor, TG
 
Constructor Summary
Node3d(Node node)
          Default Constructor for Node3d objects.
 
Method Summary
 javax.media.j3d.Appearance createAppearance()
          Define the appearance of the 3d Node.
 javax.media.j3d.Appearance createTextAppearance()
          For 3d text.
 javax.vecmath.Point3d getCenter()
           
 void hide()
          If an entity has been constructed during experiment visualization, then in case of seeking or stop, when the rewire() method is called, it may be that even though the entity3d is displayed, it has not yet been constracted.
 void move(Position p)
          Move the 3d Entity to a new Position.
 void reden()
          Makes the 3d Node object flash red.
 void scale(Entity3d.SCALE mode)
          Either enlarges or shrinks the 3d node.
 void show()
          If during experiment visualization a new Entity is added and the corresponding Entity3d is hidden, show the Entity3d.
 void updateStatus()
          Makes a 3d Entity appear as enabled or disabled.
 
Methods inherited from class visual.entity.Entity3d
get, getEntity, getTG, normalize, rewire, setFactor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node3d

public Node3d(Node node)
Default Constructor for Node3d objects.

Parameters:
node - the corresponding experiment.Node.
Method Detail

createAppearance

public javax.media.j3d.Appearance createAppearance()
Define the appearance of the 3d Node.

Specified by:
createAppearance in class Entity3d
Returns:
an Appearance object.

createTextAppearance

public javax.media.j3d.Appearance createTextAppearance()
For 3d text. Currently not used.

Returns:
The Appearance of the 3d text.

getCenter

public javax.vecmath.Point3d getCenter()
Returns:
the sphere's center Position in a Point3d vector.

hide

public void hide()
If an entity has been constructed during experiment visualization, then in case of seeking or stop, when the rewire() method is called, it may be that even though the entity3d is displayed, it has not yet been constracted. In this case the entity3d is hidden until the entity is reconstructed.

Specified by:
hide in class Entity3d

move

public void move(Position p)
Move the 3d Entity to a new Position. NOT TESTED!

Specified by:
move in class Entity3d
Parameters:
p - is the new experiment.entity.Position where the 3d Node is going to be moved.

reden

public void reden()
Makes the 3d Node object flash red. DOESN'T WORK!

Specified by:
reden in class Entity3d

scale

public void scale(Entity3d.SCALE mode)
Either enlarges or shrinks the 3d node. It is used with picking and is called by FrontEnd when the monitored entity changes.

Specified by:
scale in class Entity3d
Parameters:
mode - enlarge or shrink?

show

public void show()
If during experiment visualization a new Entity is added and the corresponding Entity3d is hidden, show the Entity3d.

Specified by:
show in class Entity3d

updateStatus

public void updateStatus()
Makes a 3d Entity appear as enabled or disabled. If the Node is disabled, the Sphere has no fill.

Specified by:
updateStatus in class Entity3d