Skip to content

Latest commit

 

History

History
339 lines (251 loc) · 10 KB

WorkerDataLoader.md

File metadata and controls

339 lines (251 loc) · 10 KB

WorkerDataLoader

Functions

getKeyFromColor(color)string

Get histirian key of color.

OrdinalHistorian()Object

Creates empty Historian with empty colors

mirrorYs(vertexList)Array.<float>

Multiplies each point's Y value by -1

WorkerDataLoader(data, loadFunction)
getCycleObject(cycle)Array.<Object>

Get cycle object.

getCyclesNumber()integer

Get cycles number.

releaseCycleMemory(cycle)

Remove specific cycles data from memory.

getInfoObject()Object

Get info object.

checkForIcon(entity)

Push given entity to WorkerDataLoader.entitiesWithIcon if entity has icon.

fillAndPostInfo(data, loadFunction)

Post info object of given data

createBaseCycle(data, loadFunction)

Create base cycle

fillCycle(cycle)

Fill given cycle

fillCycles(data, loadFunction)

Fill cycles

postCycleAfterBake(cycle, data, info, commands)

Post given cycles Historian. (Create Historian object from entities)

fillHistoryWithCycleCommands(historyManager, commands, cycleData)

Fill history with cycle commands.

fillHistoryWithCycleCommand(historyManager, command, data)

Fill history with cycle command.

fillHistoryWithCycleObject(historyManager, cycleObject, cycle)Object

Fill history with cycle object.

fillHistoryWithHumanObjects(historyManager, objectList)Object

Fill history with object of humans.

fillHistoryWithObject(historyManager, objectList)Object

Fill history with object.

fillHistoryWithObjectIcons(historyManager, entities)

Fill history with object icons.

createLinesList(objectList, list)

Create and add border lines to the specific array.

fillBorderLines(historyManager, lines)

Fill history with border lines.

consturctor(data, loadFunction)

getKeyFromColor(color) ⇒ string

Get histirian key of color.

Kind: global function
Returns: string - key

Param Type Description
color Array.<float> color

OrdinalHistorian() ⇒ Object

Creates empty Historian with empty colors

Kind: global function
Returns: Object - history manager

mirrorYs(vertexList) ⇒ Array.<float>

Multiplies each point's Y value by -1

Kind: global function
Returns: Array.<float> - mirrored vertex list

Param Type Description
vertexList Array.<float> vertex list

WorkerDataLoader(data, loadFunction)

Kind: global function

Param Type Description
data Object data object
loadFunction function load function

getCycleObject(cycle) ⇒ Array.<Object>

Get cycle object.

Kind: global function
Returns: Array.<Object> - cycle object

Param Type Description
cycle integer cycle number

getCyclesNumber() ⇒ integer

Get cycles number.

Kind: global function
Returns: integer - cycles number

releaseCycleMemory(cycle)

Remove specific cycles data from memory.

Kind: global function

Param Type Description
cycle integer cycle number

getInfoObject() ⇒ Object

Get info object.

Kind: global function
Returns: Object - info object

checkForIcon(entity)

Push given entity to WorkerDataLoader.entitiesWithIcon if entity has icon.

Kind: global function

Param Type Description
entity Object entity object

fillAndPostInfo(data, loadFunction)

Post info object of given data

Kind: global function

Param Type Description
data Object data object
loadFunction function load function

createBaseCycle(data, loadFunction)

Create base cycle

Kind: global function

Param Type Description
data Object data object
loadFunction function load function

fillCycle(cycle)

Fill given cycle

Kind: global function

Param Type Description
cycle Object changes of the cycle

fillCycles(data, loadFunction)

Fill cycles

Kind: global function

Param Type Description
data Object data object
loadFunction function load function

postCycleAfterBake(cycle, data, info, commands)

Post given cycles Historian. (Create Historian object from entities)

Kind: global function

Param Type Description
cycle integer cycle number
data Object cycle data
info Object info object
commands Array.<Object> array of command objects

fillHistoryWithCycleCommands(historyManager, commands, cycleData)

Fill history with cycle commands.

Kind: global function

Param Type Description
historyManager Object object of HistoryManager
commands Array.<Object> array of command objects
cycleData Object cycle data

fillHistoryWithCycleCommand(historyManager, command, data)

Fill history with cycle command.

Kind: global function

Param Type Description
historyManager Object object of HistoryManager
command Object command object
data Object cycle data

fillHistoryWithCycleObject(historyManager, cycleObject, cycle) ⇒ Object

Fill history with cycle object.

Kind: global function
Returns: Object - object of HistoryManager

Param Type Description
historyManager Object object of HistoryManager
cycleObject Object cycle object
cycle integer cycle number

fillHistoryWithHumanObjects(historyManager, objectList) ⇒ Object

Fill history with object of humans.

Kind: global function
Returns: Object - object of HistoryManager

Param Type Description
historyManager Object object of HistoryManager
objectList Object object of objects

fillHistoryWithObject(historyManager, objectList) ⇒ Object

Fill history with object.

Kind: global function
Returns: Object - object of HistoryManager

Param Type Description
historyManager Object object of HistoryManager
objectList Object object of objects

fillHistoryWithObjectIcons(historyManager, entities)

Fill history with object icons.

Kind: global function

Param Type Description
historyManager Object object of HistoryManager
entities Array.<Object> array of entity objects

createLinesList(objectList, list)

Create and add border lines to the specific array.

Kind: global function

Param Type Description
objectList Object object of objects
list Array.<float> array that lines added to

fillBorderLines(historyManager, lines)

Fill history with border lines.

Kind: global function

Param Type Description
historyManager Object object of HistoryManager
lines Array.<float> apexes

consturctor(data, loadFunction)

Kind: global function

Param Type Description
data Object data
loadFunction function load function