NGL@1.0.0-beta.7 Home Manual Reference Source Gallery
import FramesTrajectory from 'ngl/src/trajectory/frames-trajectory.js'
public class | source

FramesTrajectory

Extends:

Trajectory → FramesTrajectory

Frames trajectory class. Gets data from a frames object.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public
public
public
public get

Method Summary

Public Methods
public
Private Methods
private
private
private

Inherited Summary

From class Trajectory
public get

Currently set frame of the trajectory

public get

Number of frames in the trajectory

public
public
public
public
public
public
public
public
public
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
private
private
public

Dispose of the trajectory object

public

Get time for frame

public

getPath(index: Integer, callback: Function): undefined

Get path of atom abstract

public

Check if a frame is available

public

loadFrame(i: Integer | Integer[], callback: Function)

Load frame index

public

setFrame(i: Integer, callback: Function)

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

Set player for this trajectory

public
public
private
private
private

_init()

private
private abstract

_loadFrame(i: Integer, callback: Function)

Load frame index

private
private
private
private
private
private
private
private

Public Constructors

public constructor() source

Override:

Trajectory#constructor

Public Members

public atomIndices source

public boxes source

public frames source

public name source

Override:

Trajectory#name

public path source

public get type source

Public Methods

public getPath() source

Get path of atom abstract

Override:

Trajectory#getPath

Private Methods

private _loadFrame() source

Load frame index

Override:

Trajectory#_loadFrame

private _loadFrameCount() source

private _makeAtomIndices() source

Override:

Trajectory#_makeAtomIndices