|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisual.entity.Entity3d
public abstract class Entity3d
Created by IntelliJ IDEA. User: andy Date: Apr 8, 2010 An abstract class for creating and displaying experiment.Entity objects in the 3d canvas. Every Entity object (Node/Link) that is or is going to be displayed, is bound to an Entity3d object and visa versa.
Nested Class Summary | |
---|---|
static class |
Entity3d.SCALE
Defines allowed scale operations. |
Field Summary | |
---|---|
protected Entity |
entity
|
protected static double |
factor
|
protected javax.media.j3d.TransformGroup |
TG
|
Constructor Summary | |
---|---|
Entity3d(Entity entity)
Default Constructor. |
Method Summary | |
---|---|
abstract javax.media.j3d.Appearance |
createAppearance()
Define the appearance of the 3d Entity. |
static Entity3d |
get(Entity entity)
As soon an Entity3d is constructed, it is saved to the entity3dSet. |
Entity |
getEntity()
|
javax.media.j3d.TransformGroup |
getTG()
|
abstract 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. |
abstract void |
move(Position p)
Move the 3d Entity to a new Position. |
protected javax.vecmath.Vector3d |
normalize(javax.vecmath.Vector3d vector3d)
Normalize entity positions to achieve better view of the experiment. |
abstract void |
reden()
Makes the 3d entity object flash red. |
static void |
rewire(ExperimentState state)
Is called during a seeking operation or after a reset operation to update and rewire each Entity, Entity3d correlation. |
abstract void |
scale(Entity3d.SCALE mode)
Either enlarges or shrinks the 3d entity. |
static void |
setFactor(ExperimentState state)
Calculate the normalization factor. |
abstract void |
show()
If during experiment visualization a new Entity is added and the corresponding Entity3d is hidden, show the Entity3d. |
abstract void |
updateStatus()
Makes a 3d Entity appear as enabled or disabled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Entity entity
protected static double factor
protected javax.media.j3d.TransformGroup TG
Constructor Detail |
---|
public Entity3d(Entity entity)
entity
- the corresponding experiment entity.Method Detail |
---|
public abstract javax.media.j3d.Appearance createAppearance()
public static Entity3d get(Entity entity)
entity
- holds the experiment information
public Entity getEntity()
public javax.media.j3d.TransformGroup getTG()
public abstract void hide()
public abstract void move(Position p)
p
- is the new experiment.entity.Position where the 3d Entity is going to be moved.protected javax.vecmath.Vector3d normalize(javax.vecmath.Vector3d vector3d)
vector3d
- the actual position of the entity.
public abstract void reden()
public static void rewire(ExperimentState state)
state
- the new ExperimentState containing all updated Entity instances.public abstract void scale(Entity3d.SCALE mode)
mode
- enlarge or shrink?public static void setFactor(ExperimentState state)
state
- the experiment state conatining all node data.public abstract void show()
public abstract void updateStatus()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |