public class NormalRecalcControl extends AbstractControl
enabled, spatial| Constructor and Description |
|---|
NormalRecalcControl() |
NormalRecalcControl(TerrainQuad terrain) |
| Modifier and Type | Method and Description |
|---|---|
void |
cloneFields(Cloner cloner,
java.lang.Object original)
Called internally by com.jme3.util.clone.Cloner.
|
protected void |
controlRender(RenderManager rm,
ViewPort vp)
To be implemented in subclass.
|
protected void |
controlUpdate(float tpf)
To be implemented in subclass.
|
TerrainQuad |
getTerrain() |
java.lang.Object |
jmeClone()
Called internally by com.jme3.util.clone.Cloner.
|
void |
read(JmeImporter im) |
void |
setSpatial(Spatial spatial) |
void |
setTerrain(TerrainQuad terrain) |
void |
write(JmeExporter ex) |
cloneForSpatial, getSpatial, isEnabled, render, setEnabled, updatepublic NormalRecalcControl()
public NormalRecalcControl(TerrainQuad terrain)
protected void controlUpdate(float tpf)
AbstractControlcontrolUpdate in class AbstractControltpf - time per frame (in seconds)protected void controlRender(RenderManager rm, ViewPort vp)
AbstractControlcontrolRender in class AbstractControlrm - the RenderManager rendering the controlled Spatial (not null)vp - the ViewPort being rendered (not null)public java.lang.Object jmeClone()
jmeClone in interface JmeCloneablejmeClone in class AbstractControlpublic void cloneFields(Cloner cloner, java.lang.Object original)
cloneFields in interface JmeCloneablecloneFields in class AbstractControlcloner - 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.public void setSpatial(Spatial spatial)
setSpatial in interface ControlsetSpatial in class AbstractControlspatial - the spatial to be controlled. This should not be called
from user code.public TerrainQuad getTerrain()
public void setTerrain(TerrainQuad terrain)
public void write(JmeExporter ex) throws java.io.IOException
write in interface Savablewrite in class AbstractControljava.io.IOExceptionpublic void read(JmeImporter im) throws java.io.IOException
read in interface Savableread in class AbstractControljava.io.IOException