Package com.jme3.animation
Class SkeletonControl
java.lang.Object
com.jme3.scene.control.AbstractControl
com.jme3.animation.SkeletonControl
- All Implemented Interfaces:
- Savable,- Control,- JmeCloneable,- Cloneable
Deprecated.
The Skeleton control deforms a model according to a skeleton, It handles the
 computation of the deformation matrices and performs the transformations on
 the mesh
- 
Field SummaryFields inherited from class com.jme3.scene.control.AbstractControlenabled, spatial
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedDeprecated.Serialization only.SkeletonControl(Skeleton skeleton) Deprecated.Creates a skeleton control.
- 
Method SummaryModifier and TypeMethodDescriptionvoidcloneFields(Cloner cloner, Object original) Deprecated.Implemented to perform deep cloning for this object, resolving local cloned references using the specified cloner.protected voidcontrolRender(RenderManager rm, ViewPort vp) Deprecated.To be implemented in subclass.protected voidcontrolUpdate(float tpf) Deprecated.To be implemented in subclass.getAttachmentsNode(String boneName) Deprecated.Access the attachments node of the named bone.Deprecated.returns the skeleton of this controlMesh[]Deprecated.Enumerate the target meshes of this control.booleanDeprecated.booleanDeprecated.jmeClone()Deprecated.Performs a regular shallow clone of the object.voidread(JmeImporter im) Deprecated.voidsetHardwareSkinningPreferred(boolean preferred) Deprecated.Specifies if hardware skinning is preferred.voidsetSpatial(Spatial spatial) Deprecated.voidwrite(JmeExporter ex) Deprecated.Methods inherited from class com.jme3.scene.control.AbstractControlcloneForSpatial, getSpatial, isEnabled, render, setEnabled, update
- 
Constructor Details- 
SkeletonControlprotected SkeletonControl()Deprecated.Serialization only. Do not use.
- 
SkeletonControlDeprecated.Creates a skeleton control. The list of targets will be acquired automatically when the control is attached to a node.- Parameters:
- skeleton- the skeleton
 
 
- 
- 
Method Details- 
setHardwareSkinningPreferredpublic void setHardwareSkinningPreferred(boolean preferred) Deprecated.Specifies if hardware skinning is preferred. If it is preferred and supported by GPU, it shall be enabled, if it's not preferred, or not supported by GPU, then it shall be disabled.- Parameters:
- preferred- true to prefer hardware skinning, false to prefer software skinning (default=true)
- See Also:
 
- 
isHardwareSkinningPreferredpublic boolean isHardwareSkinningPreferred()Deprecated.- Returns:
- True if hardware skinning is preferable to software skinning. Set to false by default.
- See Also:
 
- 
isHardwareSkinningUsedpublic boolean isHardwareSkinningUsed()Deprecated.- Returns:
- True is hardware skinning is activated and is currently used, false otherwise.
 
- 
setSpatialDeprecated.- Specified by:
- setSpatialin interface- Control
- Overrides:
- setSpatialin class- AbstractControl
- Parameters:
- spatial- the spatial to be controlled. This should not be called from user code.
 
- 
controlRenderDeprecated.Description copied from class:AbstractControlTo be implemented in subclass.- Specified by:
- controlRenderin class- AbstractControl
- Parameters:
- rm- the RenderManager rendering the controlled Spatial (not null)
- vp- the ViewPort being rendered (not null)
 
- 
controlUpdateprotected void controlUpdate(float tpf) Deprecated.Description copied from class:AbstractControlTo be implemented in subclass.- Specified by:
- controlUpdatein class- AbstractControl
- Parameters:
- tpf- time per frame (in seconds)
 
- 
jmeCloneDeprecated.Description copied from interface:JmeCloneablePerforms a regular shallow clone of the object. Some fields may also be cloned but generally only if they will never be shared with other objects. (For example, local Vector3fs and so on.)This method is separate from the regular clone() method so that objects might still maintain their own regular java clone() semantics (perhaps even using Cloner for those methods). However, because Java's clone() has specific features in the sense of Object's clone() implementation, it's usually best to have some path for subclasses to bypass the public clone() method that might be cloning fields and instead get at the superclass protected clone() methods. For example, through super.jmeClone() or another protected clone method that some base class eventually calls super.clone() in. - Specified by:
- jmeClonein interface- JmeCloneable
- Overrides:
- jmeClonein class- AbstractControl
- Returns:
- a new instance
 
- 
cloneFieldsDeprecated.Description copied from interface:JmeCloneableImplemented to perform deep cloning for this object, resolving local cloned references using the specified cloner. The object can call cloner.clone(fieldValue) to deep clone any of its fields.Note: during normal clone operations the original object will not be needed as the clone has already had all of the fields shallow copied. - Specified by:
- cloneFieldsin interface- JmeCloneable
- Overrides:
- cloneFieldsin class- AbstractControl
- Parameters:
- cloner- The cloner that is performing the cloning operation. The cloneFields method can call back into the cloner to make clones of its subordinate fields.
- original- The original object from which this object was cloned. This is provided for the very rare case that this object needs to refer to its original for some reason. In general, all of the relevant values should have been transferred during the shallow clone, and this object need only clone what it wants.
 
- 
getAttachmentsNodeDeprecated.Access the attachments node of the named bone. If the bone doesn't already have an attachments node, create one and attach it to the scene graph. Models and effects attached to the attachments node will follow the bone's motions.- Parameters:
- boneName- the name of the bone
- Returns:
- the attachments node of the bone
 
- 
getSkeletonDeprecated.returns the skeleton of this control- Returns:
- the pre-existing instance
 
- 
getTargetsDeprecated.Enumerate the target meshes of this control.- Returns:
- a new array
 
- 
writeDeprecated.- Specified by:
- writein interface- Savable
- Overrides:
- writein class- AbstractControl
- Throws:
- IOException
 
- 
readDeprecated.- Specified by:
- readin interface- Savable
- Overrides:
- readin class- AbstractControl
- Throws:
- IOException
 
 
- 
SkinningControl