dzzd
Interface IPoint4D

All Superinterfaces:
IPoint3D

public interface IPoint4D
extends IPoint3D

Used for accessing to a Point4D.

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

Method Summary
 int addKey(double x, double y, double z, long time)
          Create a a new static key and add it to this Point4D.
 int addKey(double x, double y, double z, long time, int interpolation)
          Create a a new static key and add it to this Point4D.
 int addKey(IPoint3D source, long time)
          Create a a new linked key and add it to this Point4D.
 int addKey(IPoint3D source, long time, int interpolation)
          Create a a new linked key and add it to this Point4D.
 int getNbKey()
          Get number of keys .
 long getPauseTime()
          Gets the pause time for this Point4D.
 long getStartTime()
          Gets the starting time of this Point4D.
 void pause()
          Pause this Point4D to its current Timer time.
 void play()
          Play this Point4D using current time for its Timer.
 void playAt(long time)
          Play this Point4D using the given time .
 void removeKey(int n)
          Remove a key from this Point4D.
 void resume()
          Resume this Point4D id previously paused (startTime is updated)
 void setDefaultInterpolation(int i)
          Sets the default interpolation mode for this Point4D
 void setLoop(long loopTime)
          Sets the loop time for this Point4D.
 void setTimer(ITimer t)
          Sets timer to use with for this Point4D.
 void start()
          Start or restart this Point4D.
 void start(long startTime)
          Start or restart this Point4D with an offset.
 void stop()
          Stop this Point4D.
 
Methods inherited from interface dzzd.IPoint3D
add, copy, getClone, getX, getY, getZ, normalize, set, setX, setY, setZ, sub, zoom
 

Method Detail

getStartTime

public long getStartTime()
Gets the starting time of this Point4D.

Returns:
start time in ms or -1 if not started

getPauseTime

public long getPauseTime()
Gets the pause time for this Point4D.

Returns:
pause time in ms or -1 if not paused

setDefaultInterpolation

public void setDefaultInterpolation(int i)
Sets the default interpolation mode for this Point4D

Parameters:
i - default interpolation between new keys.

setTimer

public void setTimer(ITimer t)
Sets timer to use with for this Point4D.

Parameters:
t - new timer to use

setLoop

public void setLoop(long loopTime)
Sets the loop time for this Point4D.

Parameters:
loopTime - loop time in ms or -1 ne disable loop.

pause

public void pause()
Pause this Point4D to its current Timer time.


resume

public void resume()
Resume this Point4D id previously paused (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 Point4D.

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 Point4D.

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 Point4D.

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 Point4D.

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 Point4D.

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

start

public void start()
Start or restart this Point4D.


start

public void start(long startTime)
Start or restart this Point4D with an offset.

Parameters:
startTime - offset time

play

public void play()
Play this Point4D using current time for its Timer. 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 Point4D.


playAt

public void playAt(long time)
Play this Point4D using the given time .

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

getNbKey

public int getNbKey()
Get number of keys .

Returns:
number of keys