public class BasicWorldNode extends java.lang.Object implements IBasicWorldNode, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected AOVector |
dir
The node direction.
|
protected OID |
instanceOid |
protected Point |
loc
The node location.
|
int |
mid |
protected Quaternion |
orient
The node orientation.
|
long |
time |
| Constructor and Description |
|---|
BasicWorldNode()
The no-args constructor required by marshalling.
|
BasicWorldNode(InterpolatedWorldNode inode)
Build a BasicWorldNode from an InterpolatedWorldNode.
|
BasicWorldNode(OID instanceOid,
AOVector dir,
Point loc,
Quaternion orient) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
AOVector |
getDir()
Getter for the node direction.
|
OID |
getInstanceOid() |
Point |
getLoc()
Getter for the node location.
|
Quaternion |
getOrientation()
Getter for the node orientation.
|
void |
setDir(AOVector dir)
Setter for the node direction.
|
void |
setInstanceOid(OID oid) |
void |
setLoc(Point loc)
Setter for the node location.
|
void |
setOrientation(Quaternion orient)
Setter for the node orientation.
|
protected void |
setupTransient()
There is no lock associated with a BasicWorldNode, so there is
nothing for setupTransient to do.
|
java.lang.String |
toString()
Create a human-readable representation of the node.
|
public int mid
public long time
protected OID instanceOid
protected Point loc
protected AOVector dir
protected Quaternion orient
public BasicWorldNode()
public BasicWorldNode(InterpolatedWorldNode inode)
public BasicWorldNode(OID instanceOid, AOVector dir, Point loc, Quaternion orient)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectprotected void setupTransient()
public OID getInstanceOid()
getInstanceOid in interface IBasicWorldNodepublic void setInstanceOid(OID oid)
setInstanceOid in interface IBasicWorldNodepublic Point getLoc()
getLoc in interface IBasicWorldNodepublic void setLoc(Point loc)
setLoc in interface IBasicWorldNodeloc - The new location.public Quaternion getOrientation()
getOrientation in interface IBasicWorldNodepublic void setOrientation(Quaternion orient)
setOrientation in interface IBasicWorldNodeorient - The current 0rientation.public AOVector getDir()
getDir in interface IBasicWorldNodepublic void setDir(AOVector dir)
setDir in interface IBasicWorldNodedir - The new direction.