Home Reference Source Repository
import {CameraMotionBank} from 'dh3dlib/js/base/CameraMotionBank.js'
public class | source

CameraMotionBank

CameraMotionBank class

Constructor Summary

Public Constructor
public

constructor

Method Summary

Public Methods
public

addMotionReader(motionReader: MotionReader): void

add motion reader to this bank

public

getFileID(file: File): String

get file ID

public

getMotion(motionFile: String | File, options: Object): File

get camera motion from file

public

getMotionFromFile(motionFile: File, options: Object): File

get camera motion from File object

public

onloadMotion(motion: Motion): void

Public Constructors

public constructor source

constructor

Public Methods

public addMotionReader(motionReader: MotionReader): void source

add motion reader to this bank

Params:

NameTypeAttributeDescription
motionReader MotionReader

camera motion reader

Return:

void

public getFileID(file: File): String source

get file ID

Params:

NameTypeAttributeDescription
file File

Return:

String

file ID

public getMotion(motionFile: String | File, options: Object): File source

get camera motion from file

Params:

NameTypeAttributeDescription
motionFile String | File

motion file URL or File object

options Object

onload: function()

Return:

File

public getMotionFromFile(motionFile: File, options: Object): File source

get camera motion from File object

Params:

NameTypeAttributeDescription
motionFile File

File object of motion data

options Object

onload: function()

Return:

File

public onloadMotion(motion: Motion): void source

Params:

NameTypeAttributeDescription
motion Motion

Return:

void