Trajectory
Direct Subclass:
Base class for trajectories, tying structures and coordinates together
Constructor Summary
Public Constructor | ||
public |
constructor(trajPath: String | Frames, structure: Structure, params: TrajectoryParameters) |
Member Summary
Public Members | ||
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public get |
Currently set frame of the trajectory |
|
public |
|
|
public |
|
|
public |
|
|
public get |
Number of frames in the trajectory |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
selection to restrict atoms used for superposition |
|
public |
|
|
public |
Events emitted by the trajectory |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
Private Members | ||
private |
|
|
private |
|
|
private |
|
Method Summary
Public Methods | ||
public |
Dispose of the trajectory object |
|
public |
getFrameTime(i: Integer): Number Get time for frame |
|
public |
Get path of atom abstract |
|
public |
Check if a frame is available |
|
public |
Load frame index |
|
public |
Set trajectory to a frame index |
|
public |
setFrameInterpolated(i: Integer, ip: Integer, ipp: Integer, ippp: Integer, t: Number, type: String, callback: Function) Interpolated and set trajectory to frame indices |
|
public |
|
|
public |
setPlayer(player: TrajectoryPlayer) Set player for this trajectory |
|
public |
|
|
public |
|
Private Methods | ||
private |
|
|
private |
|
|
private |
_init() |
|
private |
|
|
private abstract |
_loadFrame(i: Integer, callback: Function) Load frame index |
|
private |
|
|
private |
|
|
private |
_process() |
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
|
Public Constructors
public constructor(trajPath: String | Frames, structure: Structure, params: TrajectoryParameters) source
Params:
Name | Type | Attribute | Description |
trajPath | String | Frames | trajectory source |
|
structure | Structure | the structure object |
|
params | TrajectoryParameters | trajectory parameters |
Public Members
public atomCount source
public backboneIndices source
public boxCache source
public centerPbc source
public coords1 source
public coords2 source
public deltaTime source
public frameCache source
public frameCacheSize source
public inProgress source
public initialCoords source
public loadQueue source
public name source
public pathCache source
public player source
public removePbc source
public removePeriodicity source
public selectionIndices source
public structure source
public structureCoords source
public superpose source
public timeOffset source
public trajPath source
Private Members
private _currentFrame source
private _disposed source
private _frameCount source
Public Methods
public getFrameTime(i: Integer): Number source
Get time for frame
Params:
Name | Type | Attribute | Description |
i | Integer | frame index |
public setFrameInterpolated(i: Integer, ip: Integer, ipp: Integer, ippp: Integer, t: Number, type: String, callback: Function) source
Interpolated and set trajectory to frame indices
Params:
Name | Type | Attribute | Description |
i | Integer | the frame index |
|
ip | Integer | one before frame index |
|
ipp | Integer | two before frame index |
|
ippp | Integer | three before frame index |
|
t | Number | interpolation step [0,1] |
|
type | String | interpolation type, '', 'spline' or 'linear' |
|
callback | Function | fired when the frame has been set |
public setParameters() source
public setPlayer(player: TrajectoryPlayer) source
Set player for this trajectory
Params:
Name | Type | Attribute | Description |
player | TrajectoryPlayer | the player |