dzzd
Interface IPoint4D

All Superinterfaces:
IPoint3D

public interface IPoint4D
extends IPoint3D

Interface used for accessing to a 4D point.

Since:
1.0
Version:
1.0, 01/01/04
Author:
Bruno Augier
See Also:
IPoint3D

Method Summary
 int addKey(double x, double y, double z, long time)
          Create a a new static key and add it to this animation
 int addKey(double x, double y, double z, long time, int interpolation)
          Create a a new static key and add it to this animation
 int addKey(IPoint3D source, long time)
          Create a a new linked key and add it to this animation.
 int addKey(IPoint3D source, long time, int interpolation)
          Create a a new linked key and add it to this animation
 long getPauseTime()
          Return the pause time for this animation or 0 if not paused
 long getStartTime()
          Return the starting time of this animation
 void pause()
          Pause this animation
 void play()
          Compute and update the internal(x,y,z) value using the time given by the ITimer (internal or external).
 void playAt(long time)
          Compute and update the internal(x,y,z) value for the given time
 void removeKey(int n)
          Remove a key from this animation
 void resume()
          Resume this animation at the last pauseTime (startTime is updated)
 void setDefaultInterpolation(int i)
          Set the default interpolatin mode
 void setLoop(long loopTime)
          Set the loop time for this animation
 void setTimer(ITimer t)
          Set timer to use with this interpolator
 void start()
          Start or restart this animation
 void stop()
          Stop this animator.
 
Methods inherited from interface dzzd.IPoint3D
add, copy, getCopy, getX, getY, getZ, normalize, set, setX, setY, setZ, sub
 

Method Detail

getStartTime

public long getStartTime()
Return the starting time of this animation

Returns:
the starting time in ms of this animation

getPauseTime

public long getPauseTime()
Return the pause time for this animation or 0 if not paused

Returns:
pause offset time

setDefaultInterpolation

public void setDefaultInterpolation(int i)
Set the default interpolatin mode

Parameters:
i - default interpolation between key 0=none,1=linear,2=cosin,3=cubic

setTimer

public void setTimer(ITimer t)
Set timer to use with this interpolator

Parameters:
t - timer to use

setLoop

public void setLoop(long loopTime)
Set the loop time for this animation

Parameters:
loopTime - offset time for loop

pause

public void pause()
Pause this animation


resume

public void resume()
Resume this animation at the last pauseTime (startTime is updated)


addKey

public int addKey(double x,
                  double y,
                  double z,
                  long time)
Create a a new static key and add it to this animation

Parameters:
x - x value for this new key
y - z value for this new key
z - z value for this new key
time - time ofset for this new key
Returns:
index of the newly created key

addKey

public int addKey(double x,
                  double y,
                  double z,
                  long time,
                  int interpolation)
Create a a new static key and add it to this animation

Parameters:
x - x value for this new key
y - z value for this new key
z - z value for this new key
time - time ofset for this new key
interpolation - type of interpolation 0=none,1=linear,2=cosin,3=bicubic
Returns:
index of the newly created key

addKey

public int addKey(IPoint3D source,
                  long time)
Create a a new linked key and add it to this animation.

Parameters:
source - source for this new key
time - time ofset for this new key
Returns:
index of the newly created key

addKey

public int addKey(IPoint3D source,
                  long time,
                  int interpolation)
Create a a new linked key and add it to this animation

Parameters:
source - source for this linked key
time - time offset for this new key
interpolation - type of interpolation 0=none,1=linear,2=cosin,3=bicubic
Returns:
index of the newly created key

removeKey

public void removeKey(int n)
Remove a key from this animation

Parameters:
n - index of the key to remove from this animation

start

public void start()
Start or restart this animation


play

public void play()
Compute and update the internal(x,y,z) value using the time given by the ITimer (internal or external).


stop

public void stop()
Stop this animator.


playAt

public void playAt(long time)
Compute and update the internal(x,y,z) value for the given time

Parameters:
time - time to compute x,y,z