public class BasicWorldNode extends java.lang.Object implements IBasicWorldNode, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
long |
cid |
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 cid
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.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
protected void setupTransient()
public OID getInstanceOid()
getInstanceOid
in interface IBasicWorldNode
public void setInstanceOid(OID oid)
setInstanceOid
in interface IBasicWorldNode
public Point getLoc()
getLoc
in interface IBasicWorldNode
public void setLoc(Point loc)
setLoc
in interface IBasicWorldNode
loc
- The new location.public Quaternion getOrientation()
getOrientation
in interface IBasicWorldNode
public void setOrientation(Quaternion orient)
setOrientation
in interface IBasicWorldNode
orient
- The current 0rientation.public AOVector getDir()
getDir
in interface IBasicWorldNode
public void setDir(AOVector dir)
setDir
in interface IBasicWorldNode
dir
- The new direction.