|
Aviatrix3D 2.1.0 |
|||||||||
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.HAnimHumanoid org.j3d.renderer.aviatrix3d.geom.hanim.AVHumanoid
public abstract class AVHumanoid
Common AV3D implementation of the Humanoid object that may be extended for either shader or software implementation additions.
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.
Field Summary |
---|
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 | |
---|---|
protected java.nio.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(java.lang.Object[] vps,
int numValid)
Replace the existing skeleton with the new set of sites and joints. |
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.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, setSkinCoord, setSkinNormal, 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 |
Method Detail |
---|
public void updateNodeBoundsChanges(java.lang.Object src)
updateNodeBoundsChanges
in interface NodeUpdateListener
src
- The node or Node Component that is to be updated.public void updateNodeDataChanges(java.lang.Object src)
updateNodeDataChanges
in interface NodeUpdateListener
src
- The node or Node Component that is to be updated.public void setBboxCenter(float[] val)
setBboxCenter
in class org.j3d.geom.hanim.HAnimHumanoid
val
- The new bboxCenter value to use
java.lang.IllegalArgumentException
- The array is null or not long enough.public void setBboxSize(float[] val)
setBboxSize
in class org.j3d.geom.hanim.HAnimHumanoid
val
- The new bboxSize value to use
java.lang.IllegalArgumentException
- The array is null or not long enough.public void setViewpoints(java.lang.Object[] vps, int numValid)
setViewpoints
in class org.j3d.geom.hanim.HAnimHumanoid
vps
- 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.HAnimHumanoid
kids
- 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.HAnimHumanoid
public Node getSceneGraphObject()
public abstract void setSkin(Node[] skins, int numSkins)
BufferGeometry
geometry
representation.
skins
- List of representative shapes to useprotected java.nio.FloatBuffer createBuffer(int size)
size
- The number of floats to have in the array
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |