org.xith3d.utility.camera
Class SmoothPlaceableVerticalFocuser

java.lang.Object
  extended by org.xith3d.utility.camera.BasicPlaceableVerticalFocuser
      extended by org.xith3d.utility.camera.SmoothPlaceableVerticalFocuser
All Implemented Interfaces:
ScheduledOperation, Updatable

public class SmoothPlaceableVerticalFocuser
extends BasicPlaceableVerticalFocuser

Same as BasicPlaceableVerticalFocuser, but smooth


Field Summary
 
Fields inherited from class org.xith3d.utility.camera.BasicPlaceableVerticalFocuser
move
 
Constructor Summary
SmoothPlaceableVerticalFocuser(OperationScheduler opSched, View view, org.jagatoo.datatypes.Placeable placeable, float height, float alpha)
          Create a new SmoothPlaceableVerticalFocuser
 
Method Summary
 void setTupleShifter(TupleShifter shifter)
          Set a shifter for this focuser.
 void update(long gameTime, long frameTime, UpdatingThread.TimingMode timingMode)
          Updates this Updatable object.
 
Methods inherited from class org.xith3d.utility.camera.BasicPlaceableVerticalFocuser
getFocusPoint, getHeight, isAlive, isPersistent, lookAt, setAlive, setHeight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmoothPlaceableVerticalFocuser

public SmoothPlaceableVerticalFocuser(OperationScheduler opSched,
                                      View view,
                                      org.jagatoo.datatypes.Placeable placeable,
                                      float height,
                                      float alpha)
Create a new SmoothPlaceableVerticalFocuser

Parameters:
opSched - An op-scheduler on which to register
view - The view on which to act
placeable - The placeable to focus
height - Height
alpha - Interpolation Speed, between 0 and 1
Method Detail

setTupleShifter

public void setTupleShifter(TupleShifter shifter)
Set a shifter for this focuser. If non-null, the shifter will modify the position of the camera once it's interpolated, so that you can have variety of views..

Parameters:
shifter -

update

public void update(long gameTime,
                   long frameTime,
                   UpdatingThread.TimingMode timingMode)
Description copied from interface: Updatable
Updates this Updatable object.

Specified by:
update in interface Updatable
Overrides:
update in class BasicPlaceableVerticalFocuser
Parameters:
gameTime - the gameTime in Milliseconds
frameTime - the frameTime in Milliseconds (needed time for the last frame)
timingMode - the TimingMode to use for frameTime.