|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.scene.CloneCreator
Started Date: Sep 16, 2004
This class controlls how a Spatial should be cloned. Users add properties to
a CloneCreator object, along with the Spatial they want to clone. Then, calls
to createCopy() return a spatial that is the clone of the spatial passed to
this object's Constructor. Spatial objects must define Spatial.putClone() in
order to be cloned.
| Field Summary | |
java.util.HashMap |
originalToCopy
Maps original Spatials to their Copy. |
| Constructor Summary | |
CloneCreator(Spatial toCopy)
Creates a new CloneCreator that will make clones of the given spatial. |
|
| Method Summary | |
void |
addProperty(java.lang.String property)
Adds a Clone property that the method createCopy() should watch for when making copies of the original spatial and its children. |
boolean |
CloneIDExist(Geometry geometry)
Returns true if a CloneID exist for the given geometry. |
void |
createCloneID(Geometry geometry)
Creates a Clone ID for the given geometry object. |
Spatial |
createCopy()
Creates a copy of the original and returns the copy. |
int |
getCloneID(Geometry geometry)
Returns the Clone ID of a geometry original. |
boolean |
isSet(java.lang.String prop)
Returns true if the given property is set. |
void |
queueJointController(JointController jc)
Signals that a JointController needs to be processed after the clone happens. |
void |
queueKeyframeController(KeyframeController kc)
Signals that a KeyframeController needs to be processed after the clone happens. |
void |
queueSpatialTransformer(SpatialTransformer st)
Signals that a SpatialTransformer needs to be processed after the clone happens. |
void |
removeProperty(java.lang.String property)
Removes a set Clone property for this CloneCreator. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.util.HashMap originalToCopy
| Constructor Detail |
public CloneCreator(Spatial toCopy)
toCopy - The Spatial to copy.| Method Detail |
public void addProperty(java.lang.String property)
property - The property to watch for.public void removeProperty(java.lang.String property)
property - The property to remove.public boolean isSet(java.lang.String prop)
prop - The property to check for.
public Spatial createCopy()
public void queueJointController(JointController jc)
jc - The JointController that will later be processed.public void queueSpatialTransformer(SpatialTransformer st)
st - The SpatialTransformer that will later be processed.public void queueKeyframeController(KeyframeController kc)
kc - The KeyframeController that will later be processed.public void createCloneID(Geometry geometry)
geometry - The geometry object that needs to be cloned.public int getCloneID(Geometry geometry)
geometry - The original.
public boolean CloneIDExist(Geometry geometry)
geometry - The geometry original to check.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||