net.dzzd.access
Interface ITrack3D

All Superinterfaces:
IPoint3D

public interface ITrack3D
extends IPoint3D

Used for accessing to a Track3D.

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 Track3D.
 int addKey(double x, double y, double z, long time, int interpolation)
          Create a a new static key and add it to this Track3D.
 int addKey(IPoint3D source, long time)
          Create a a new linked key and add it to this Track3D.
 int addKey(IPoint3D source, long time, int interpolation)
          Create a a new linked key and add it to this Track3D.
 int getNbKey()
          Get number of keys .
 long getPauseTime()
          Gets the pause time for this Track3D.
 long getStartTime()
          Gets the starting time of this Track3D.
 void pause()
          Pause this Track3D to its current Timer time.
 void play()
          Play this Track3D using current time for its Timer.
 void playAt(long time)
          Play this Track3D using the given time .
 void removeKey(int n)
          Remove a key from this Track3D.
 void resume()
          Resume this Track3D id previously paused (startTime is updated)
 void setDefaultInterpolation(int i)
          Sets the default interpolation mode for this Track3D
 void setLoop(long loopTime)
          Sets the loop time for this Track3D.
 void setTimer(ITimer t)
          Sets timer to use with for this Track3D.
 void start()
          Start or restart this Track3D.
 void start(long startTime)
          Start or restart this Track3D with an offset.
 void stop()
          Stop this Track3D.
 
Methods inherited from interface net.dzzd.access.IPoint3D
add, copy, cross, dist, div, dot, getClone, getX, getY, getZ, length, length2, mul, norm, normalize, rotateX, rotateY, rotateZ, set, setX, setY, setZ, sub, zoom
 

Method Detail

getStartTime

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

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

getPauseTime

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

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

setDefaultInterpolation

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

Parameters:
i - default interpolation between new keys.

setTimer

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

Parameters:
t - new timer to use

setLoop

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

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

pause

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


resume

public void resume()
Resume this Track3D 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 Track3D.

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

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

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

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

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

start

public void start()
Start or restart this Track3D.


start

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

Parameters:
startTime - offset time

play

public void play()
Play this Track3D 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 Track3D.


playAt

public void playAt(long time)
Play this Track3D 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