Class: GridVisuals

GridVisuals()

new GridVisuals()

Subsystem manage 3d chart's auxillaries, including xyz plane, xyz value line, xyz value labels.

Source:

Members

elems

Properties:
Name Type Description
elems object

{xyzLine, xyzPlane, axisPlane}, where
xyzLine is a THREE.Object3D, with children of 3 vertical lines;
xyzPlane is a THREE.Object3D, with children of 3 vertical plane, can be used for highlight value grid;
axisPlane, {yz, zx, xy} is an array of 3 THREE.Object3D, with children of 3 vertical plane at axes plane;

Source:

grid

Properties:
Name Type Description
grid CoordsGrid

grid space manager

Source:

Methods

strechLines(gridIx, offset) → {GridVisuals}

Set value indicating lines to position in world, with offset in world.

This method modifying the lines' vertices position buffer directly.

Parameters:
Name Type Description
gridIx array.<int>
offset array.<number>
Source:
Returns:

this

Type
GridVisuals

strechLines(gridIx, offsetopt) → {GridVisuals}

Set value indicating lines to grid, with offset in value range (befor scale to world).

This method modifying the lines' vertices position buffer directly.

Parameters:
Name Type Attributes Default Description
gridIx array.<int>
offset array.<number> <optional>
[0, 0, 0]
Source:
Returns:

this

Type
GridVisuals

update(tick, entites)

Parameters:
Name Type Description
tick int
entites array.<Entity>
Source:

visuals(ecs, options, json)

Generate chart visual elements.

Parameters:
Name Type Description
ecs ECS
options object
json object
Source:

GridVisuals(ecs, options, json)

new GridVisuals(ecs, options, json)

create chart world

Parameters:
Name Type Description
ecs ECS
options object

options.chart: json chart section

json array

visuas configuration.

Source:

Members

elems

Properties:
Name Type Description
elems object

{xyzLine, xyzPlane, axisPlane}, where
xyzLine is a THREE.Object3D, with children of 3 vertical lines;
xyzPlane is a THREE.Object3D, with children of 3 vertical plane, can be used for highlight value grid;
axisPlane, {yz, zx, xy} is an array of 3 THREE.Object3D, with children of 3 vertical plane at axes plane;

Source:

grid

Properties:
Name Type Description
grid CoordsGrid

grid space manager

Source:

Methods

strechLines(gridIx, offset) → {GridVisuals}

Set value indicating lines to position in world, with offset in world.

This method modifying the lines' vertices position buffer directly.

Parameters:
Name Type Description
gridIx array.<int>
offset array.<number>
Source:
Returns:

this

Type
GridVisuals

strechLines(gridIx, offsetopt) → {GridVisuals}

Set value indicating lines to grid, with offset in value range (befor scale to world).

This method modifying the lines' vertices position buffer directly.

Parameters:
Name Type Attributes Default Description
gridIx array.<int>
offset array.<number> <optional>
[0, 0, 0]
Source:
Returns:

this

Type
GridVisuals

update(tick, entites)

Parameters:
Name Type Description
tick int
entites array.<Entity>
Source:

visuals(ecs, options, json)

Generate chart visual elements.

Parameters:
Name Type Description
ecs ECS
options object
json object
Source: