public abstract class AVHumanoid extends org.j3d.geom.hanim.HAnimHumanoid implements NodeUpdateListener
Implements a rootTransform group to hold the geometry and rootTransformation required by the Site object. The output objects are always FloatBuffers for direct passing to OpenGL.
bboxCenter, bboxSize, hasChildUpdates, localMatrix, matrixChanged, numSkeleton, numSkinCoords, numSkinNormals, numViewpoints, objectCount, outputCoords, outputNormals, rootJoint, skeleton, skeletonChanged, skinCoords, skinNormals, viewpoints| Modifier and Type | Method and Description |
|---|---|
protected FloatBuffer |
createBuffer(int size)
Convenience method to allocate a NIO buffer for the vertex handling that
handles floats.
|
Node |
getSceneGraphObject()
Get the implemented scene graph object for this humanoid so that it
can be added directly to the scene.
|
void |
setBboxCenter(float[] val)
Set a new value for the bboxCenter of this segment.
|
void |
setBboxSize(float[] val)
Set a new value for the bboxSize of this segment.
|
void |
setSkeleton(org.j3d.geom.hanim.HAnimObject[] kids,
int numValid)
Replace the existing viewpoints with the new set of viewpoints.
|
abstract void |
setSkin(Node[] skins,
int numSkins)
Set the list of geometry that should be used by this humanoid.
|
void |
setViewpoints(Object[] vps,
int numValid)
Replace the existing skeleton with the new set of sites and joints.
|
void |
updateNodeBoundsChanges(Object src)
Notification that its safe to update the node now with any operations
that could potentially effect the node's bounds.
|
void |
updateNodeDataChanges(Object src)
Notification that its safe to update the node now with any operations
that only change the node's properties, but do not change the bounds.
|
void |
updateSkeleton()
All the skeletal changes are in for this frame, so update the matrix
values now.
|
childUpdateRequired, getBboxCenter, getBboxSize, getCenter, getInfo, getJoints, getRotation, getScale, getScaleOrientation, getSegments, getSites, getSkeleton, getSkinCoord, getSkinNormal, getTranslation, getVersion, getViewpoints, numInfo, numJoints, numSegments, numSites, numSkeleton, numSkinCoord, numSkinNormal, numViewpoints, requestNextObjectIndex, setCenter, setErrorReporter, setInfo, setJoints, setRotation, setScale, setScaleOrientation, setSegments, setSites, setSkinCoord, setSkinNormal, setTranslation, setVersionpublic void updateNodeBoundsChanges(Object src)
updateNodeBoundsChanges in interface NodeUpdateListenersrc - The node or Node Component that is to be updated.public void updateNodeDataChanges(Object src)
updateNodeDataChanges in interface NodeUpdateListenersrc - The node or Node Component that is to be updated.public void setBboxCenter(float[] val)
setBboxCenter in class org.j3d.geom.hanim.HAnimHumanoidval - The new bboxCenter value to useIllegalArgumentException - The array is null or not long enough.public void setBboxSize(float[] val)
setBboxSize in class org.j3d.geom.hanim.HAnimHumanoidval - The new bboxSize value to useIllegalArgumentException - The array is null or not long enough.public void setViewpoints(Object[] vps, int numValid)
setViewpoints in class org.j3d.geom.hanim.HAnimHumanoidvps - The collection of viewpoints objects to now usenumValid - The number kids to copy from the given arraypublic void setSkeleton(org.j3d.geom.hanim.HAnimObject[] kids,
int numValid)
setSkeleton in class org.j3d.geom.hanim.HAnimHumanoidkids - The collection of child objects to now usenumValid - The number kids to copy from the given arraypublic void updateSkeleton()
updateSkeleton in class org.j3d.geom.hanim.HAnimHumanoidpublic Node getSceneGraphObject()
public abstract void setSkin(Node[] skins, int numSkins)
BufferGeometry geometry
representation.skins - List of representative shapes to useprotected FloatBuffer createBuffer(int size)
size - The number of floats to have in the array
Copyright © 2001 - 2015 j3d.org