Strip
Source: Strip.ts:47
Strip object.
Example
Stripe example
CODE
new og.Entity({
strip: {
gridSize: 10,
path: [
[[],[]],
[[],[]]
]
}
});Constructor
new Strip(options?: *): StripParameters
options(*, optional) — Strip options:options.visibility(boolean, optional) — Strip visibility.
Instance Methods
setPickingColor3v(color: Vec3)
Assign picking color.
Parameters
color(Vec3) — Picking RGB color.
clear()
Clears object
setColor4v(color: Vec4)
Sets RGBA color. Each channel from 0.0 to 1.0.
Parameters
color(Vec4) — RGBA vector.
setColorHTML(color: string)
Sets strip color.
Parameters
color(string) — HTML style color.
setOpacity(opacity: number)
Sets strip opacity.
Parameters
opacity(number) — Opacity.
setVisibility(visibility: boolean)
Sets strip visibility.
Parameters
visibility(boolean) — Visibility flag.
getVisibility(): boolean
Returns
boolean— Strip visibility.
bindScene(scene: Scene)
Assign rendering scene node.
Parameters
scene(Scene) — Assigned render node.
remove()
Removes from entity.
_deleteBuffers()
Delete buffers
Instance Fields
_scene: Scene
protected
Strip.ts:115Parent collection render node.
_entity: Entity
protected
Strip.ts:122Entity instance that holds this strip.
_handler: StripHandler
protected
Strip.ts:145Handler that stores and renders this object.