Package com.jme3.bullet.animation
Class PreComposer
java.lang.Object
com.jme3.scene.control.AbstractControl
com.jme3.bullet.animation.PreComposer
- All Implemented Interfaces:
com.jme3.export.Savable
,com.jme3.scene.control.Control
,com.jme3.util.clone.JmeCloneable
,Cloneable
public class PreComposer
extends com.jme3.scene.control.AbstractControl
Helper control for DynamicAnimControl, to hide armature modifications from an
AnimComposer.
-
Field Summary
Fields inherited from class com.jme3.scene.control.AbstractControl
enabled, spatial
-
Constructor Summary
ModifierConstructorDescriptionprotected
No-argument constructor needed by SavableClassUtil. -
Method Summary
Modifier and TypeMethodDescriptionvoid
cloneFields
(com.jme3.util.clone.Cloner cloner, Object original) Callback fromCloner
to convert this shallow-cloned Control into a deep-cloned one, using the specified Cloner and original to resolve copied fields.protected void
controlRender
(com.jme3.renderer.RenderManager rm, com.jme3.renderer.ViewPort vp) Render this Control.protected void
controlUpdate
(float tpf) Update this control.void
read
(com.jme3.export.JmeImporter importer) De-serialize this Control from the specified importer, for example when loading from a J3O file.void
write
(com.jme3.export.JmeExporter exporter) Serialize this Control to the specified exporter, for example when saving to a J3O file.Methods inherited from class com.jme3.scene.control.AbstractControl
cloneForSpatial, getSpatial, isEnabled, jmeClone, render, setEnabled, setSpatial, update
-
Field Details
-
logger
message logger for this class
-
-
Constructor Details
-
PreComposer
protected PreComposer()No-argument constructor needed by SavableClassUtil.
-
-
Method Details
-
cloneFields
Callback fromCloner
to convert this shallow-cloned Control into a deep-cloned one, using the specified Cloner and original to resolve copied fields.- Specified by:
cloneFields
in interfacecom.jme3.util.clone.JmeCloneable
- Overrides:
cloneFields
in classcom.jme3.scene.control.AbstractControl
- Parameters:
cloner
- the Cloner that's cloning this Control (not null)original
- the instance from which this Control was shallow-cloned (not null, unaffected)
-
controlUpdate
protected void controlUpdate(float tpf) Update this control. Invoked once per frame during the logical-state update, provided the control is enabled and added to a scene. Should be invoked only by a subclass or by AbstractControl.- Specified by:
controlUpdate
in classcom.jme3.scene.control.AbstractControl
- Parameters:
tpf
- the time interval between frames (in seconds, ≥0)
-
controlRender
protected void controlRender(com.jme3.renderer.RenderManager rm, com.jme3.renderer.ViewPort vp) Render this Control. Invoked once per ViewPort per frame, provided the Control is enabled and added to a scene. Should be invoked only by a subclass or by AbstractControl.- Specified by:
controlRender
in classcom.jme3.scene.control.AbstractControl
- Parameters:
rm
- the render manager (unused)vp
- the view port to render (unused)
-
read
De-serialize this Control from the specified importer, for example when loading from a J3O file.- Specified by:
read
in interfacecom.jme3.export.Savable
- Overrides:
read
in classcom.jme3.scene.control.AbstractControl
- Parameters:
importer
- (not null)- Throws:
IOException
- from the importer
-
write
Serialize this Control to the specified exporter, for example when saving to a J3O file.- Specified by:
write
in interfacecom.jme3.export.Savable
- Overrides:
write
in classcom.jme3.scene.control.AbstractControl
- Parameters:
exporter
- (not null)- Throws:
IOException
- from the exporter
-