public class MorphControl extends AbstractControl implements Savable
enabled, spatial
Constructor and Description |
---|
MorphControl() |
Modifier and Type | Method and Description |
---|---|
void |
cloneFields(Cloner cloner,
java.lang.Object original)
Callback from
Cloner to convert this
shallow-cloned Control into a deep-cloned one, using the specified Cloner
and original to resolve copied fields. |
protected void |
controlRender(RenderManager rm,
ViewPort vp)
To be implemented in subclass.
|
protected void |
controlUpdate(float tpf)
To be implemented in subclass.
|
boolean |
isApproximateTangents()
Test whether this Control approximates tangents.
|
MorphControl |
jmeClone()
Create a shallow clone for the JME cloner.
|
void |
read(JmeImporter importer)
De-serialize this Control from the specified importer, for example when
loading from a J3O file.
|
void |
setApproximateTangents(boolean approximateTangents)
Alter whether this Control approximates tangents.
|
void |
setSpatial(Spatial spatial) |
void |
write(JmeExporter exporter)
Serialize this Control to the specified exporter, for example when saving
to a J3O file.
|
cloneForSpatial, getSpatial, isEnabled, render, setEnabled, update
public void setSpatial(Spatial spatial)
setSpatial
in interface Control
setSpatial
in class AbstractControl
spatial
- the spatial to be controlled. This should not be called
from user code.protected void controlUpdate(float tpf)
AbstractControl
controlUpdate
in class AbstractControl
tpf
- time per frame (in seconds)protected void controlRender(RenderManager rm, ViewPort vp)
AbstractControl
controlRender
in class AbstractControl
rm
- the RenderManager rendering the controlled Spatial (not null)vp
- the ViewPort being rendered (not null)public void setApproximateTangents(boolean approximateTangents)
approximateTangents
- true to approximate tangents, false to get
them from a VertexBufferpublic boolean isApproximateTangents()
public void cloneFields(Cloner cloner, java.lang.Object original)
Cloner
to convert this
shallow-cloned Control into a deep-cloned one, using the specified Cloner
and original to resolve copied fields.cloneFields
in interface JmeCloneable
cloneFields
in class AbstractControl
cloner
- the Cloner that's cloning this Control (not null, modified)original
- the instance from which this Control was shallow-cloned
(not null, unaffected)public MorphControl jmeClone()
jmeClone
in interface JmeCloneable
jmeClone
in class AbstractControl
public void read(JmeImporter importer) throws java.io.IOException
read
in interface Savable
read
in class AbstractControl
importer
- (not null)java.io.IOException
- from the importerpublic void write(JmeExporter exporter) throws java.io.IOException
write
in interface Savable
write
in class AbstractControl
exporter
- (not null)java.io.IOException
- from the exporter