|
Aviatrix3D 2.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.j3d.geom.hanim.HAnimObject
org.j3d.geom.hanim.HAnimHumanoid
org.j3d.renderer.aviatrix3d.geom.hanim.AVHumanoid
org.j3d.renderer.aviatrix3d.geom.hanim.SoftwareHumanoid
public abstract class SoftwareHumanoid
Common AV3D implementation of the Humanoid object that uses software to implement the mesh skinning algorithm.
| Field Summary | |
|---|---|
protected java.util.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 java.nio.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 java.nio.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 java.util.ArrayList<Geometry> |
vertexGeometry
Geometry instances that implement VertexGeometry |
| Fields inherited from class org.j3d.geom.hanim.HAnimHumanoid |
|---|
bboxCenter, bboxSize, hasChildUpdates, localMatrix, matrixChanged, numSkeleton, numSkinCoords, numSkinNormals, numViewpoints, objectCount, outputCoords, outputNormals, rootJoint, skeleton, skeletonChanged, skinCoords, skinNormals, viewpoints |
| Fields inherited from class org.j3d.geom.hanim.HAnimObject |
|---|
errorReporter, name |
| Method Summary | |
|---|---|
abstract java.lang.Object |
getUpdatedSkinCoords()
Get the internal representation of the updated mesh skin coordinates. |
abstract java.lang.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(java.lang.Object src)
Notification that its safe to update the node now with any operations that could potentially effect the node's bounds. |
void |
updateNodeDataChanges(java.lang.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. |
| Methods inherited from class org.j3d.renderer.aviatrix3d.geom.hanim.AVHumanoid |
|---|
createBuffer, getSceneGraphObject, setBboxCenter, setBboxSize, setViewpoints |
| Methods inherited from class org.j3d.geom.hanim.HAnimHumanoid |
|---|
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, setTranslation, setVersion |
| Methods inherited from class org.j3d.geom.hanim.HAnimObject |
|---|
getName, setName, updateMatrix |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Group skinGroup
protected java.util.ArrayList<Geometry> bufferGeometry
protected java.util.ArrayList<Geometry> vertexGeometry
protected Node[] skin
protected int numSkin
protected float[] coordsArray
protected float[] normalsArray
protected java.nio.FloatBuffer coordsBuffer
protected java.nio.FloatBuffer normalsBuffer
protected boolean[] dirtyCoordinates
| Method Detail |
|---|
public void updateNodeBoundsChanges(java.lang.Object src)
updateNodeBoundsChanges in interface NodeUpdateListenerupdateNodeBoundsChanges in class AVHumanoidsrc - The node or Node Component that is to be updated.public void updateNodeDataChanges(java.lang.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 array
java.lang.IllegalArgumentException - 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 array
java.lang.IllegalArgumentException - 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 AVHumanoid
public 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 java.lang.Object getUpdatedSkinCoords()
public abstract java.lang.Object getUpdatedSkinNormals()
|
Aviatrix3D 2.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||