|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.geom.hanim.HAnimObject org.j3d.geom.hanim.HAnimSite
public class HAnimSite
Representation of a H-Anim Site object.
The site object is defined by 6.5 Site. Internationalisation Resource Names
Field Summary | |
---|---|
protected java.lang.Object[] |
children
The current collection of children nodes registered to this object. |
protected javax.vecmath.Matrix4f |
globalMatrix
Matrix that contains the global transformation down to this site |
protected javax.vecmath.Matrix4f |
localMatrix
Local matrix value that combines all the fields together |
protected boolean |
matrixChanged
Flag to indicate the root matrix values have changed, thus needing to regenerate the entire skeleton and vertices. |
protected int |
numChildren
The number of valid children of this object |
Fields inherited from class org.j3d.geom.hanim.HAnimObject |
---|
errorReporter, name |
Constructor Summary | |
---|---|
HAnimSite()
Create a new, default instance of the site. |
Method Summary | |
---|---|
void |
addChild(java.lang.Object kid)
Add a child node to the existing collection. |
void |
getCenter(float[] val)
Get the current value of the center. |
void |
getChildren(java.lang.Object[] vals)
Get the current collection of children. |
void |
getRotation(float[] val)
Get the current value of the rotation. |
void |
getScale(float[] val)
Get the current value of the scale. |
void |
getScaleOrientation(float[] val)
Get the current value of the scaleOrientation. |
void |
getTranslation(float[] val)
Get the current value of the translation. |
int |
numChildren()
Get the number of currently valid children. |
void |
removeChild(java.lang.Object kid)
Remove a child node from the existing collection. |
void |
setCenter(float[] val)
Set a new value for the center of this site. |
void |
setChildren(java.lang.Object[] kids,
int numValid)
Replace the existing children with the new set of children. |
protected void |
setParent(HAnimObjectParent parent)
Set the parent of this node to the given reference. |
void |
setRotation(float[] val)
Set a new value for the rotation of this site. |
void |
setScale(float[] val)
Set a new value for the scale of this site. |
void |
setScaleOrientation(float[] val)
Set a new value for the scaleOrientation of this site. |
void |
setTranslation(float[] val)
Set a new value for the translation of this site. |
protected void |
updateLocation(javax.vecmath.Matrix4f parentTransform,
boolean parentChanged)
All the skeletal changes are in for this frame, so update the matrix values now. |
Methods inherited from class org.j3d.geom.hanim.HAnimObject |
---|
getName, setErrorReporter, setName, updateMatrix |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Object[] children
protected int numChildren
protected javax.vecmath.Matrix4f localMatrix
protected javax.vecmath.Matrix4f globalMatrix
protected boolean matrixChanged
Constructor Detail |
---|
public HAnimSite()
Method Detail |
---|
public void getCenter(float[] val)
val
- An array of at least length 3 to copy the value topublic void setCenter(float[] val)
val
- The new center value to use
java.lang.IllegalArgumentException
- The array is null or not long enough.public void getScale(float[] val)
val
- An array of at least length 3 to copy the value topublic void setScale(float[] val)
val
- The new scale value to use
java.lang.IllegalArgumentException
- The array is null or not long enough.public void getTranslation(float[] val)
val
- An array of at least length 3 to copy the value topublic void setTranslation(float[] val)
val
- The new translation value to use
java.lang.IllegalArgumentException
- The array is null or not long enough.public void getScaleOrientation(float[] val)
val
- An array of at least length 4 to copy the value topublic void setScaleOrientation(float[] val)
val
- The new scaleOrientation value to use
java.lang.IllegalArgumentException
- The array is null or not long enough.public void getRotation(float[] val)
val
- An array of at least length 4 to copy the value topublic void setRotation(float[] val)
val
- The new rotation value to use
java.lang.IllegalArgumentException
- The array is null or not long enough.public int numChildren()
public void getChildren(java.lang.Object[] vals)
vals
- An array of at least length numChildren() to copy the values topublic void setChildren(java.lang.Object[] kids, int numValid)
kids
- The collection of child objects to now usenumValid
- The number kids to copy from the given arraypublic void addChild(java.lang.Object kid)
kid
- The new child instance to addpublic void removeChild(java.lang.Object kid)
kid
- The child instance to removeprotected void setParent(HAnimObjectParent parent)
parent
- The new parent instance to useprotected void updateLocation(javax.vecmath.Matrix4f parentTransform, boolean parentChanged)
parentTransform
- The transformation into global coordinates of
the parent of this jointparentChanged
- Flag to indicate that the parent transformation
matrix has changed or is still the same as last call
|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |