|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.animation.ObjectRef
public class ObjectRef
This class represents a reference either to an object, or to a joint within an object.
Constructor Summary | |
---|---|
ObjectRef()
Create a "null" reference which does not refer to any object. |
|
ObjectRef(java.io.DataInputStream in,
Scene theScene)
Construct an object reference from its serialized representation. |
|
ObjectRef(int objectID,
int jointID,
Scene sc)
Create a reference to an object/joint which may not have been loaded yet. |
|
ObjectRef(ObjectInfo info)
Create a reference to an existing object. |
|
ObjectRef(ObjectInfo info,
Joint j)
Create a reference to a joint within an existing object. |
Method Summary | |
---|---|
void |
copy(ObjectRef ref)
Make this ObjectRef identical to another one. |
ObjectRef |
duplicate()
Create an exact duplicate of this object reference. |
boolean |
equals(java.lang.Object obj)
Two ObjectRefs are equals if they refer to the same object or joint. |
CoordinateSystem |
getCoords()
Get the coordinate system for the object/joint this refers to. |
Joint |
getJoint()
Get the joint this reference refers to, or null if it does not refer to a joint. |
ObjectInfo |
getObject()
Get the object this reference refers to. |
java.lang.String |
toString()
Get a text string describing the object and joint. |
void |
writeToStream(java.io.DataOutputStream out)
Write a serialized representation of this object reference to a stream. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ObjectRef()
public ObjectRef(ObjectInfo info)
public ObjectRef(ObjectInfo info, Joint j)
public ObjectRef(int objectID, int jointID, Scene sc)
public ObjectRef(java.io.DataInputStream in, Scene theScene) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public ObjectInfo getObject()
public Joint getJoint()
public CoordinateSystem getCoords()
public ObjectRef duplicate()
public void copy(ObjectRef ref)
public void writeToStream(java.io.DataOutputStream out) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |