Package com.jme3.terrain.geomipmap
Class NormalRecalcControl
java.lang.Object
com.jme3.scene.control.AbstractControl
com.jme3.terrain.geomipmap.NormalRecalcControl
- All Implemented Interfaces:
- Savable,- Control,- JmeCloneable,- Cloneable
Handles the normal vector updates when the terrain changes heights.
- 
Field SummaryFields inherited from class com.jme3.scene.control.AbstractControlenabled, spatial
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcloneFields(Cloner cloner, Object original) Called internally by com.jme3.util.clone.Cloner.protected voidcontrolRender(RenderManager rm, ViewPort vp) To be implemented in subclass.protected voidcontrolUpdate(float tpf) To be implemented in subclass.jmeClone()Called internally by com.jme3.util.clone.Cloner.voidread(JmeImporter im) voidsetSpatial(Spatial spatial) voidsetTerrain(TerrainQuad terrain) voidwrite(JmeExporter ex) Methods inherited from class com.jme3.scene.control.AbstractControlcloneForSpatial, getSpatial, isEnabled, render, setEnabled, update
- 
Constructor Details- 
NormalRecalcControlpublic NormalRecalcControl()
- 
NormalRecalcControl
 
- 
- 
Method Details- 
controlUpdateprotected void controlUpdate(float tpf) Description copied from class:AbstractControlTo be implemented in subclass.- Specified by:
- controlUpdatein class- AbstractControl
- Parameters:
- tpf- time per frame (in seconds)
 
- 
controlRenderDescription 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)
 
- 
jmeCloneCalled internally by com.jme3.util.clone.Cloner. Do not call directly.- Specified by:
- jmeClonein interface- JmeCloneable
- Overrides:
- jmeClonein class- AbstractControl
- Returns:
- a new instance
 
- 
cloneFieldsCalled internally by com.jme3.util.clone.Cloner. Do not call directly.- 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.
 
- 
setSpatial- Specified by:
- setSpatialin interface- Control
- Overrides:
- setSpatialin class- AbstractControl
- Parameters:
- spatial- the spatial to be controlled. This should not be called from user code.
 
- 
getTerrain
- 
setTerrain
- 
write- Specified by:
- writein interface- Savable
- Overrides:
- writein class- AbstractControl
- Throws:
- IOException
 
- 
read- Specified by:
- readin interface- Savable
- Overrides:
- readin class- AbstractControl
- Throws:
- IOException
 
 
-