Constructor
new MyObject(settings, vertices)
Parameters:
Name | Type | Description |
---|---|---|
settings |
object | See child class (ND, MyPoints) settings. |
vertices |
any |
- Source:
Members
bufferGeometry
BufferGeometry of the child graphical object.
- Source:
defaultColor
Returns 'white'.
- Source:
isOpacity
Returns true if a child graphical object can be transparent.
- Source:
Methods
color()
- Source:
Returns:
The child graphical object color or player time if graphical object color is not defined.
getPositionData(i, timeId)
Gets a position data.
Parameters:
Name | Type | Description |
---|---|---|
i |
number | Vertice identifier for timeId = 0. |
timeId |
number | Time identifier of the player that determines current position data. |
- Source:
Returns:
position data object. Object properties:
verticeId: Vertice identifier for current timeId. itemSize: Size of the position axis array. positionBlockLength: Positions count for current time. positionId: verticeId * itemSize.
positionOffset(position, positionId)
Parameters:
Name | Type | Description |
---|---|---|
position |
object | BufferGeometry position attribute of the child graphical object. |
positionId |
number | Position identifier for start time. |
- Source:
Returns:
Offset of the position in the position attribute for current time.
positionOffsetId(positionId)
Parameters:
Name | Type | Description |
---|---|---|
positionId |
number | Position identifier for start time. |
- Source:
Returns:
Offset of the position identifier for current time.
setDrawRange(start, count, type)
Determines the part of vertices or edges of the child graphical object geometry to render. See BufferGeometry.drawRange.
Parameters:
Name | Type | Description |
---|---|---|
start |
number | Identifier of the start vertice or edge to render. |
count |
number | Count of vertices or edges to render. |
type |
number | For debug. 0 - vertices draw range. 1 - edge's draw range. |
- Source:
setEdgesRange(startopt, timeIdopt)
Determines the part of edges of the child graphical object geometry to render. See BufferGeometry.drawRange.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
start |
number |
<optional> |
0 | Identifier of the start edge to render. |
timeId |
number |
<optional> |
Time identifier of the player that determines of the end edge to render. |
- Source:
setPositionAttributeFromPoint(i, verticeopt, timeId)
Sets the BufferGeometry position attribute from vertice.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
i |
number | Vertice identifier for timeId = 0. | |
vertice |
Array |
<optional> |
Vertice axis array for current timeId. |
timeId |
number | Time identifier of the player that determines current vertice. |
- Source:
setPositionAttributeFromPoints(points, boCreatePositionAttribute)
Sets the BufferGeometry position attribute from points array.
Parameters:
Name | Type | Description |
---|---|---|
points |
Array | Points array. |
boCreatePositionAttribute |
boolean | true - replace old position attribute to new if it exists. |
- Source:
setVerticesRange(start, count)
Determines the part of the child graphical object geometry to render. See BufferGeometry.drawRange.
Parameters:
Name | Type | Description |
---|---|---|
start |
number | Identifier of the start vertice to render. |
count |
number | Count of vertices to render. |
- Source:
verticeColor(i, vertice, timeId)
Vertice color.
Parameters:
Name | Type | Description |
---|---|---|
i |
number | Vertice identifier. |
vertice |
Array | Vertice axis array. |
timeId |
number | Time identifier of the player that determines current vertice color. |
- Source:
verticeOpacity(i, transparentopt, opacityopt)
Vertice opacity.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
i |
number | Vertice identifier. | |
transparent |
Boolean |
<optional> |
See transparent. |
opacity |
number |
<optional> |
See opacity. |
- Source:
verticesOpacity(transparentopt, opacityopt)
Opacity for all vertices.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
transparent |
Array |
<optional> |
See transparent. |
opacity |
number |
<optional> |
See opacity. |
- Source: