Package com.jme3.scene.control
Class LightControl
java.lang.Object
com.jme3.scene.control.AbstractControl
com.jme3.scene.control.LightControl
- All Implemented Interfaces:
- Savable,- Control,- JmeCloneable,- Cloneable
This Control maintains a reference to a Camera,
 which will be synched with the position (worldTranslation)
 of the current spatial.
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields inherited from class com.jme3.scene.control.AbstractControlenabled, spatial
- 
Constructor SummaryConstructorsConstructorDescriptionConstructor used for Serialization.LightControl(Light light) LightControl(Light light, LightControl.ControlDirection controlDir) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidcloneFields(Cloner cloner, Object original) Implemented to perform deep cloning for this object, resolving local cloned references using the specified cloner.protected voidcontrolRender(RenderManager rm, ViewPort vp) To be implemented in subclass.protected voidcontrolUpdate(float tpf) To be implemented in subclass.getLight()voidread(JmeImporter im) voidsetControlDir(LightControl.ControlDirection controlDir) voidvoidwrite(JmeExporter ex) Methods inherited from class com.jme3.scene.control.AbstractControlcloneForSpatial, getSpatial, isEnabled, jmeClone, render, setEnabled, setSpatial, update
- 
Constructor Details- 
LightControlpublic LightControl()Constructor used for Serialization.
- 
LightControl- Parameters:
- light- The light to be synced.
 
- 
LightControl- Parameters:
- light- The light to be synced.
- controlDir- SpatialToCamera or CameraToSpatial
 
 
- 
- 
Method Details- 
getLight
- 
setLight
- 
getControlDir
- 
setControlDir
- 
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)
 
- 
cloneFieldsDescription 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.
 
- 
read- Specified by:
- readin interface- Savable
- Overrides:
- readin class- AbstractControl
- Throws:
- IOException
 
- 
write- Specified by:
- writein interface- Savable
- Overrides:
- writein class- AbstractControl
- Throws:
- IOException
 
 
-