TrajectoryPlayer
Trajectory player for animating coordinate frames
Example:
var player = new TrajectoryPlayer(trajectory, {step: 1, timeout: 50});
player.play();
Constructor Summary
Public Constructor | ||
public |
constructor(traj: Trajectory, params: TrajectoryPlayerParameters) make trajectory player |
Member Summary
Public Members | ||
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public get |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
Private Members | ||
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
|
Method Summary
Public Methods | ||
public |
pause the animation |
|
public |
start the animation |
|
public |
setParameters(params: TrajectoryPlayerParameters) set player parameters |
|
public |
stop the animation (pause and go to start-frame) |
|
public |
toggle between playing and pausing the animation |
Private Methods | ||
private |
_animate() |
|
private |
_next() |
|
private |
|
Public Constructors
public constructor(traj: Trajectory, params: TrajectoryPlayerParameters) source
make trajectory player
Params:
Name | Type | Attribute | Description |
traj | Trajectory | the trajectory |
|
params | TrajectoryPlayerParameters |
|
parameter object |
Public Members
public direction source
public end source
public interpolateStep source
public interpolateType source
public get isRunning source
public mode source
public signals source
public start source
public step source
public timeout source
public traj source
Private Members
private _currentFrame source
private _currentStep source
private _currentTime source
private _direction source
private _previousTime source
private _run source
Public Methods
public setParameters(params: TrajectoryPlayerParameters) source
set player parameters
Params:
Name | Type | Attribute | Description |
params | TrajectoryPlayerParameters |
|
parameter object |