GlSplineDrawer
draw splines, e.g. cables on the patchfield
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
name: * |
|
public set |
|
Private Members | ||
private |
_arrEdges: *[] |
|
private |
_cgl: * |
|
private |
_colors: * |
|
private |
|
|
private |
|
|
private |
_count: * |
|
private |
_doDraw: * |
|
private |
_geom: * |
|
private |
|
|
private |
_mesh: * |
|
private |
_points: * |
|
private |
_points2: * |
|
private |
_points3: * |
|
private |
|
|
private |
|
|
private |
_rebuildLater: boolean |
|
private |
_rebuildReason: string |
|
private |
_shader: * |
|
private |
_speeds: * |
|
private |
_splineColors: *[] |
|
private |
_splineHidden: *[] |
|
private |
_splineIndex: * |
|
private |
_splines: *[] |
|
private |
_thePoints: *[] |
|
private |
|
|
private |
_uniMousePos: * |
|
private |
_uniResX: * |
|
private |
_uniResY: * |
|
private |
_uniTime: * |
|
private |
_uniWidth: * |
|
private |
|
|
private |
_uniZoom: * |
|
private |
_uniZpos: * |
|
private |
_uniscrollX: * |
|
private |
_uniscrollY: * |
|
private |
_verts: * |
Method Summary
Public Methods | ||
public |
|
|
public |
deleteSpline(idx: *) |
|
public |
getSplineIndex(): * |
|
public |
hideSpline(idx: *) |
|
public |
ip(a: *, b: *, p: *): * |
|
public |
rebuild() |
|
public |
render(resX: *, resY: *, scrollX: *, scrollY: *, zoom: *, mouseX: *, mouseY: *) |
|
public |
setDebugRenderer(i: *) |
|
public |
setSpline(idx: *, points: *) |
|
public |
setSplineColor(idx: *, rgba: *) |
|
public |
setSplineColorBorder(idx: *, rgba: *) |
|
public |
setSplineColorInactive(idx: *, rgba: *) |
|
public |
setSplineSpeed(idx: *, speed: *) |
|
public |
setWidth(w: *) |
|
public |
showSpline(idx: *) |
|
public |
tessEdges(oldArr: *): * |
Private Methods | ||
private |
_dist(x1: *, y1: *, x2: *, y2: *): * |
|
private |
_float32Diff(a: *, b: *): * |
|
private |
_updateAttribsCoordinates(idx: *, updateWhat: *) |
|
private |
_updateAttribsSpeed(idx: *) |
Public Constructors
public constructor() source
Public Members
public name: * source
public set zPos source
Private Members
private _arrEdges: *[] source
private _cgl: * source
private _colors: * source
private _colorsBorder: * source
private _colorsInactive: * source
private _count: * source
private _doDraw: * source
private _geom: * source
private _laterTimeout: * source
private _mesh: * source
private _points: * source
private _points2: * source
private _points3: * source
private _pointsProgress: * source
private _pointsSplineLength: * source
private _rebuildLater: boolean source
private _rebuildReason: string source
private _shader: * source
private _speeds: * source
private _splineColors: *[] source
private _splineHidden: *[] source
private _splineIndex: * source
private _splines: *[] source
private _thePoints: *[] source
private _uniFadeoutOptions: * source
private _uniMousePos: * source
private _uniResX: * source
private _uniResY: * source
private _uniTime: * source
private _uniWidth: * source
private _uniWidthSelected: * source
private _uniZoom: * source
private _uniZpos: * source
private _uniscrollX: * source
private _uniscrollY: * source
private _verts: * source
Public Methods
public buildMesh() source
public deleteSpline(idx: *) source
Params:
Name | Type | Attribute | Description |
idx | * |
public hideSpline(idx: *) source
Params:
Name | Type | Attribute | Description |
idx | * |
public rebuild() source
public render(resX: *, resY: *, scrollX: *, scrollY: *, zoom: *, mouseX: *, mouseY: *) source
Params:
Name | Type | Attribute | Description |
resX | * | ||
resY | * | ||
scrollX | * | ||
scrollY | * | ||
zoom | * | ||
mouseX | * | ||
mouseY | * |
public setDebugRenderer(i: *) source
Params:
Name | Type | Attribute | Description |
i | * |
public setSpline(idx: *, points: *) source
Params:
Name | Type | Attribute | Description |
idx | * | ||
points | * |
public setSplineColor(idx: *, rgba: *) source
Params:
Name | Type | Attribute | Description |
idx | * | ||
rgba | * |
public setSplineColorBorder(idx: *, rgba: *) source
Params:
Name | Type | Attribute | Description |
idx | * | ||
rgba | * |
public setSplineColorInactive(idx: *, rgba: *) source
Params:
Name | Type | Attribute | Description |
idx | * | ||
rgba | * |
public setSplineSpeed(idx: *, speed: *) source
Params:
Name | Type | Attribute | Description |
idx | * | ||
speed | * |
public setWidth(w: *) source
Params:
Name | Type | Attribute | Description |
w | * |
public showSpline(idx: *) source
Params:
Name | Type | Attribute | Description |
idx | * |
Private Methods
private _dist(x1: *, y1: *, x2: *, y2: *): * source
Params:
Name | Type | Attribute | Description |
x1 | * | ||
y1 | * | ||
x2 | * | ||
y2 | * |
Return:
* |
private _updateAttribsCoordinates(idx: *, updateWhat: *) source
Params:
Name | Type | Attribute | Description |
idx | * | ||
updateWhat | * |
private _updateAttribsSpeed(idx: *) source
Params:
Name | Type | Attribute | Description |
idx | * |