NGL@1.0.0-beta.7 Home Manual Reference Source Gallery

src/parser/trajectory-parser.js

/**
 * @file Trajectory Parser
 * @author Alexander Rose <alexander.rose@weirdbyte.de>
 * @private
 */

import Parser from './parser.js'
import Frames from '../trajectory/frames.js'

class TrajectoryParser extends Parser {
  constructor (streamer, params) {
    super(streamer, params)

    this.frames = new Frames(this.name, this.path)
  }

  get type () { return 'trajectory' }
  get __objName () { return 'frames' }
}

export default TrajectoryParser