public abstract class SoftwareHumanoid extends AVHumanoid implements NodeUpdateListener
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<Geometry> |
bufferGeometry
Geometry instances that implement BufferGeometry
|
protected float[] |
coordsArray
An array for coordinates to be splatted to if the contained geometry
is an instance of VertexGeometry.
|
protected FloatBuffer |
coordsBuffer
An array for coordinates to be splatted to if the contained geometry
is an instance of VertexGeometry.
|
protected boolean[] |
dirtyCoordinates
A list of per-vertex flags to indicate which ones have changed since the
last update.
|
protected float[] |
normalsArray
An array for coordinates to be splatted to if the contained geometry
is an instance of VertexGeometry.
|
protected FloatBuffer |
normalsBuffer
An array for coordinates to be splatted to if the contained geometry
is an instance of VertexGeometry.
|
protected int |
numSkin
The number of valid items in the skin list
|
protected Node[] |
skin
Collection of nodes that is the skin
|
protected Group |
skinGroup
Group for containing the skin Shape nodes
|
protected ArrayList<Geometry> |
vertexGeometry
Geometry instances that implement VertexGeometry
|
bboxCenter, bboxSize, hasChildUpdates, localMatrix, matrixChanged, numSkeleton, numSkinCoords, numSkinNormals, numViewpoints, objectCount, outputCoords, outputNormals, rootJoint, skeleton, skeletonChanged, skinCoords, skinNormals, viewpoints| Modifier and Type | Method and Description |
|---|---|
abstract Object |
getUpdatedSkinCoords()
Get the internal representation of the updated mesh skin coordinates.
|
abstract Object |
getUpdatedSkinNormals()
Get the internal representation of the updated mesh skin normals.
|
void |
setSkeleton(org.j3d.geom.hanim.HAnimObject[] kids,
int numValid)
Replace the existing viewpoints with the new set of viewpoints.
|
void |
setSkin(Node[] skins,
int numSkins)
Set the list of geometry that should be used by this humanoid.
|
void |
setSkinCoord(float[] val,
int numElements)
Set a new value for the skinCoord of this joint.
|
void |
setSkinNormal(float[] val,
int numElements)
Set a new value for the skinNormal of this joint.
|
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.
|
createBuffer, getSceneGraphObject, setBboxCenter, setBboxSize, setViewpointschildUpdateRequired, 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, setTranslation, setVersionprotected Group skinGroup
protected ArrayList<Geometry> bufferGeometry
protected ArrayList<Geometry> vertexGeometry
protected Node[] skin
protected int numSkin
protected float[] coordsArray
protected float[] normalsArray
protected FloatBuffer coordsBuffer
protected FloatBuffer normalsBuffer
protected boolean[] dirtyCoordinates
public void updateNodeBoundsChanges(Object src)
updateNodeBoundsChanges in interface NodeUpdateListenerupdateNodeBoundsChanges in class AVHumanoidsrc - The node or Node Component that is to be updated.public void updateNodeDataChanges(Object src)
updateNodeDataChanges in interface NodeUpdateListenerupdateNodeDataChanges in class AVHumanoidsrc - The node or Node Component that is to be updated.public void setSkinCoord(float[] val,
int numElements)
setSkinCoord in class org.j3d.geom.hanim.HAnimHumanoidval - The new skinCoord value to usenumElements - The number of 3d-vectors in the arrayIllegalArgumentException - The array is null or not long enough.public void setSkinNormal(float[] val,
int numElements)
setSkinNormal in class org.j3d.geom.hanim.HAnimHumanoidval - The new skinNormal value to usenumElements - The number of 3d-vectors in the arrayIllegalArgumentException - The array is null or not long enough.public void setSkeleton(org.j3d.geom.hanim.HAnimObject[] kids,
int numValid)
setSkeleton in class AVHumanoidkids - The collection of child objects to now usenumValid - The number kids to copy from the given arraypublic void updateSkeleton()
updateSkeleton in class AVHumanoidpublic void setSkin(Node[] skins, int numSkins)
BufferGeometry class.setSkin in class AVHumanoidskins - List of representative shapes to usenumSkins - The number of valid items to use from the skins arraypublic abstract Object getUpdatedSkinCoords()
public abstract Object getUpdatedSkinNormals()
Copyright © 2001 - 2015 j3d.org