NGL@0.10.4 Home Manual Reference Source GalleryRepository
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

Events emitted by the component

public get

Component type

Method Summary

Public Methods
public

Add trajectory representation

public

Set the frame of the trajectory

public

Set trajectory parameters

Inherited Summary

From class Component
public

Events emitted by the component

public

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

Add an anotation object

public

Add a new representation to the component

public

autoView(duration: Integer): undefined

Automatically center and zoom the component

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

Set position transform

public

Set rotation transform

public

Set scale transform

public

Set general transform.

public

Set the visibility of the component, including added representations

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 signals: TrajectoryComponentSignals source

Events emitted by the component

Override:

Component#signals

public get type: String source

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