org.xith3d.schedops.movement
Class PointFocusser

java.lang.Object
  extended by org.xith3d.loop.opscheduler.impl.ScheduledOperationImpl
      extended by org.xith3d.schedops.movement.PointFocusser
All Implemented Interfaces:
ScheduledOperation, Updatable

public class PointFocusser
extends ScheduledOperationImpl

The PointFocusser moves the camera smoothly to a certain point and facing direction with a given speed.


Nested Class Summary
static interface PointFocusser.FinishListener
           
 
Constructor Summary
PointFocusser(View view, org.openmali.vecmath2.Point3f point, org.openmali.vecmath2.Vector3f direction, float speed)
          Creates a new instance.
PointFocusser(View view, org.openmali.vecmath2.Point3f point, org.openmali.vecmath2.Vector3f direction, float speed, PointFocusser.FinishListener finishLsitener)
          Creates a new instance.
 
Method Summary
 org.openmali.vecmath2.Vector3f getDirection()
           
 org.openmali.vecmath2.Point3f getPoint()
           
 org.openmali.vecmath2.Vector3f getUpVector()
           
 void setDirection(org.openmali.vecmath2.Vector3f direction)
           
 void setFinishListener(PointFocusser.FinishListener finishListener)
           
 void setPoint(org.openmali.vecmath2.Point3f point)
           
 void setUpVector(org.openmali.vecmath2.Vector3f up)
           
 void update(long gameTime, long frameTime, UpdatingThread.TimingMode timingMode)
          Updates this Updatable object.
 
Methods inherited from class org.xith3d.loop.opscheduler.impl.ScheduledOperationImpl
isAlive, isPersistent, setAlive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointFocusser

public PointFocusser(View view,
                     org.openmali.vecmath2.Point3f point,
                     org.openmali.vecmath2.Vector3f direction,
                     float speed,
                     PointFocusser.FinishListener finishLsitener)
Creates a new instance.

Parameters:
view - the View to manipulate
point - the target position
direction - the target facing direction
speed - the speed (units per second)
finishLsitener - the listener to be notified when the point has been reached

PointFocusser

public PointFocusser(View view,
                     org.openmali.vecmath2.Point3f point,
                     org.openmali.vecmath2.Vector3f direction,
                     float speed)
Creates a new instance.

Parameters:
view - the View to manipulate
point - the target position
direction - the target facing direction
speed - the speed (units per second)
Method Detail

setUpVector

public final void setUpVector(org.openmali.vecmath2.Vector3f up)

getUpVector

public final org.openmali.vecmath2.Vector3f getUpVector()

setPoint

public void setPoint(org.openmali.vecmath2.Point3f point)

getPoint

public org.openmali.vecmath2.Point3f getPoint()

setDirection

public void setDirection(org.openmali.vecmath2.Vector3f direction)

getDirection

public org.openmali.vecmath2.Vector3f getDirection()

update

public void update(long gameTime,
                   long frameTime,
                   UpdatingThread.TimingMode timingMode)
Updates this Updatable object.

Parameters:
gameTime - the gameTime in Milliseconds
frameTime - the frameTime in Milliseconds (needed time for the last frame)
timingMode - the TimingMode to use for frameTime.

setFinishListener

public void setFinishListener(PointFocusser.FinishListener finishListener)