Constructor#
new Strip(optionsopt)#
Parameters:
Name | Type | Attributes | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
options | * | <optional> | Strip options: Properties
|
- Source
Example
Stripe example
new og.Entity({ strip: { gridSize: 10, path: [ [[],[]], [[],[]] ] } });
Members#
(protected) _entity :Entity#
Entity instance that holds this strip.
Type:
- Source
(protected) _handler :StripHandler#
Handler that stores and renders this object.
Type:
- StripHandler
- Source
(protected) _renderNode :RenderNode#
Parent collection render node.
Type:
- Source
Methods#
_deleteBuffers()#
Delete buffers
- Source
clear()#
Clears object
- Source
getVisibility() → {boolean}#
- Source
Returns:
Strip visibility.
- Type:
- boolean
remove()#
Removes from entity.
- Source
setColor4v(color)#
Sets RGBA color. Each channel from 0.0 to 1.0.
Parameters:
Name | Type | Description |
---|---|---|
color | Vec4 | RGBA vector. |
- Source
setColorHTML(color)#
Sets strip color.
Parameters:
Name | Type | Description |
---|---|---|
color | string | HTML style color. |
- Source
setOpacity(opacity)#
Set strip opacity.
Parameters:
Name | Type | Description |
---|---|---|
opacity | number | opacity. |
- Source
setPickingColor3v(color)#
Assign picking color.
Parameters:
Name | Type | Description |
---|---|---|
color | Vec3 | Picking RGB color. |
- Source
setRenderNode(renderNode)#
Assign rendering scene node.
Parameters:
Name | Type | Description |
---|---|---|
renderNode | RenderNode | Assigned render node. |
- Source
setVisibility(visibility)#
Sets cloud visibility.
Parameters:
Name | Type | Description |
---|---|---|
visibility | boolean | Visibility flag. |
- Source