Package com.jme3.scene.control
Class CameraControl
java.lang.Object
com.jme3.scene.control.AbstractControl
com.jme3.scene.control.CameraControl
- 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 Summary
Nested Classes - 
Field Summary
Fields inherited from class com.jme3.scene.control.AbstractControl
enabled, spatial - 
Constructor Summary
ConstructorsConstructorDescriptionConstructor used for Serialization.CameraControl(Camera camera) CameraControl(Camera camera, CameraControl.ControlDirection controlDir)  - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidcontrolRender(RenderManager rm, ViewPort vp) To be implemented in subclass.protected voidcontrolUpdate(float tpf) To be implemented in subclass.voidread(JmeImporter im) voidvoidsetControlDir(CameraControl.ControlDirection controlDir) voidwrite(JmeExporter ex) Methods inherited from class com.jme3.scene.control.AbstractControl
cloneFields, cloneForSpatial, getSpatial, isEnabled, jmeClone, render, setEnabled, setSpatial, update 
- 
Constructor Details
- 
CameraControl
public CameraControl()Constructor used for Serialization. - 
CameraControl
- Parameters:
 camera- The Camera to be synced.
 - 
CameraControl
- Parameters:
 camera- The Camera to be synced.controlDir- SpatialToCamera or CameraToSpatial
 
 - 
 - 
Method Details
- 
getCamera
 - 
setCamera
 - 
getControlDir
 - 
setControlDir
 - 
controlUpdate
protected void controlUpdate(float tpf) Description copied from class:AbstractControlTo be implemented in subclass.- Specified by:
 controlUpdatein classAbstractControl- Parameters:
 tpf- time per frame (in seconds)
 - 
controlRender
Description copied from class:AbstractControlTo be implemented in subclass.- Specified by:
 controlRenderin classAbstractControl- Parameters:
 rm- the RenderManager rendering the controlled Spatial (not null)vp- the ViewPort being rendered (not null)
 - 
read
- Specified by:
 readin interfaceSavable- Overrides:
 readin classAbstractControl- Throws:
 IOException
 - 
write
- Specified by:
 writein interfaceSavable- Overrides:
 writein classAbstractControl- Throws:
 IOException
 
 -