apps.mt3dmaps.orbittest
Class CameraFocusInputAction.CameraController

java.lang.Object
  extended by com.jme.scene.Controller
      extended by apps.mt3dmaps.orbittest.CameraFocusInputAction.CameraController
All Implemented Interfaces:
com.jme.util.export.Savable, java.io.Serializable
Enclosing class:
CameraFocusInputAction

public class CameraFocusInputAction.CameraController
extends com.jme.scene.Controller

Controller used in conjuction with the Orbit handler to smoothly move the camera towards a scene object.

Author:
Andrew Carter
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jme.scene.Controller
RT_CLAMP, RT_CYCLE, RT_WRAP
 
Constructor Summary
CameraFocusInputAction.CameraController(com.jme.renderer.Camera camera, OrbitAction orbit)
          Constructor.
 
Method Summary
 boolean initialize(com.jme.math.Vector3f target, float distance)
          Initialize the controller.
 void update(float tpf)
          Update.
 
Methods inherited from class com.jme.scene.Controller
getClassTag, getControllerValues, getMaxTime, getMinTime, getRepeatType, getSpeed, isActive, read, setActive, setControllerValues, setMaxTime, setMinTime, setRepeatType, setSpeed, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CameraFocusInputAction.CameraController

public CameraFocusInputAction.CameraController(com.jme.renderer.Camera camera,
                                               OrbitAction orbit)
Constructor.

Parameters:
camera - the camera
orbit - the orbit
Method Detail

initialize

public boolean initialize(com.jme.math.Vector3f target,
                          float distance)
Initialize the controller.

Parameters:
target - The new focus point
distance - Move until this far from the target
Returns:
True if the controller is initialized

update

public void update(float tpf)
Update.

Specified by:
update in class com.jme.scene.Controller
Parameters:
tpf - the tpf
See Also:
Controller.update(float)