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

TrajectoryComponent

Extends:

Component → TrajectoryComponent

Component wrapping a Trajectory object

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public
public
public
public
public
public

Events emitted by the component

public
public
public get

Component type

Method Summary

Public Methods
public

Add trajectory representation

public
public
public

Set the frame of the trajectory

public

Set trajectory parameters

Inherited Summary

From class Component
public get
public
public
public
public
public
public
public
public
public

Events emitted by the component

public
public
public
public
public
public
public

addAnnotation(position: Vector3, content: String | Element, params: Object): Annotation

Add an anotation object

public
public

Add a new representation to the component

public

autoView(duration: Integer): undefined

Automatically center and zoom the component

public
public

Iterator over each annotation and executing the callback

public

Iterator over each representation and executing the callback

public
public abstract
public
public
public
public
public

Remove all annotations from the component

public

Removes all representation components

public

Remove the give annotation from the component

public

Removes a representation component

public
public

Set position transform

public

Set rotation transform

public

Set scale transform

public
public

Set general transform.

public

Set the visibility of the component, including added representations

public
public

Public Constructors

public constructor(stage: Stage, trajectory: Trajectory, params: TrajectoryComponentParameters, parent: StructureComponent) source

Override:

Component#constructor

Params:

NameTypeAttributeDescription
stage Stage

stage object the component belongs to

trajectory Trajectory

the trajectory object

params TrajectoryComponentParameters

component parameters

parent StructureComponent

the parent structure

Public Members

public defaultDirection source

public defaultInterpolateStep source

public defaultInterpolateType source

public defaultMode source

public defaultStep source

public defaultTimeout source

public parent source

public signals: TrajectoryComponentSignals source

Events emitted by the component

Override:

Component#signals

public status source

Override:

Component#status

public trajectory source

public get type: String source

Component type

Override:

Component#type

Public Methods

public addRepresentation(type: String, params: RepresentationParameters): RepresentationComponent source

Add trajectory representation

Override:

Component#addRepresentation

Params:

NameTypeAttributeDescription
type String

representation type, currently only: "trajectory"

params RepresentationParameters

parameters

Return:

RepresentationComponent

the added representation component

public dispose() source

Override:

Component#dispose

public getCenter() source

Override:

Component#getCenter

public setFrame(i: Integer): undefined source

Set the frame of the trajectory

Params:

NameTypeAttributeDescription
i Integer

frame number

Return:

undefined

public setParameters(params: TrajectoryParameters): undefined source

Set trajectory parameters

Params:

NameTypeAttributeDescription
params TrajectoryParameters

trajectory parameters

Return:

undefined