Class: EdgeLineProgram<N, E, G>
Extends
EdgeProgram
<typeofUNIFORMS
[number
],N
,E
,G
>
Type Parameters
• N extends Attributes
= Attributes
• E extends Attributes
= Attributes
• G extends Attributes
= Attributes
Constructors
new EdgeLineProgram()
new EdgeLineProgram<
N
,E
,G
>(gl
,pickingBuffer
,renderer
):EdgeLineProgram
<N
,E
,G
>
Parameters
• gl: WebGLRenderingContext
| WebGL2RenderingContext
• pickingBuffer: null
| WebGLFramebuffer
• renderer: Sigma
<N
, E
, G
>
Returns
EdgeLineProgram
<N
, E
, G
>
Inherited from
Defined in
sigma/src/rendering/program.ts:81
Properties
array
array:
Float32Array
Inherited from
Defined in
sigma/src/rendering/program.ts:69
ATTRIBUTES
ATTRIBUTES:
ProgramAttributeSpecification
[]
Inherited from
Defined in
sigma/src/rendering/program.ts:60
ATTRIBUTES_ITEMS_COUNT
ATTRIBUTES_ITEMS_COUNT:
number
Inherited from
EdgeProgram
.ATTRIBUTES_ITEMS_COUNT
Defined in
sigma/src/rendering/program.ts:65
capacity
capacity:
number
=0
Inherited from
Defined in
sigma/src/rendering/program.ts:71
CONSTANT_ATTRIBUTES
CONSTANT_ATTRIBUTES:
ProgramAttributeSpecification
[]
Inherited from
EdgeProgram
.CONSTANT_ATTRIBUTES
Defined in
sigma/src/rendering/program.ts:62
CONSTANT_DATA
CONSTANT_DATA:
number
[][]
Inherited from
Defined in
sigma/src/rendering/program.ts:63
constantArray
constantArray:
Float32Array
Inherited from
Defined in
sigma/src/rendering/program.ts:70
drawLabel
drawLabel:
undefined
|EdgeLabelDrawingFunction
<N
,E
,G
> =undefined
Inherited from
Defined in
sigma/src/rendering/edge.ts:40
FRAGMENT_SHADER_SOURCE
FRAGMENT_SHADER_SOURCE:
string
Inherited from
EdgeProgram
.FRAGMENT_SHADER_SOURCE
Defined in
sigma/src/rendering/program.ts:58
isInstanced
isInstanced:
boolean
Inherited from
Defined in
sigma/src/rendering/program.ts:77
METHOD
METHOD:
number
Inherited from
Defined in
sigma/src/rendering/program.ts:61
normalProgram
normalProgram:
ProgramInfo
<string
>
Inherited from
Defined in
sigma/src/rendering/program.ts:74
pickProgram
pickProgram:
null
|ProgramInfo
<string
>
Inherited from
Defined in
sigma/src/rendering/program.ts:75
renderer
renderer:
Sigma
<N
,E
,G
>
Inherited from
Defined in
sigma/src/rendering/program.ts:68
STRIDE
STRIDE:
number
Inherited from
Defined in
sigma/src/rendering/program.ts:66
UNIFORMS
UNIFORMS: readonly
"u_matrix"
[]
Inherited from
Defined in
sigma/src/rendering/program.ts:59
VERTEX_SHADER_SOURCE
VERTEX_SHADER_SOURCE:
string
Inherited from
EdgeProgram
.VERTEX_SHADER_SOURCE
Defined in
sigma/src/rendering/program.ts:57
VERTICES
VERTICES:
number
Inherited from
Defined in
sigma/src/rendering/program.ts:56
verticesCount
verticesCount:
number
=0
Inherited from
Defined in
sigma/src/rendering/program.ts:72
Methods
bindAttribute()
protected
bindAttribute(attr
,program
,offset
,setDivisor
?):number
Parameters
• attr: ProgramAttributeSpecification
• program: ProgramInfo
<string
>
• offset: number
• setDivisor?: boolean
Returns
number
Inherited from
Defined in
sigma/src/rendering/program.ts:244
bindProgram()
protected
bindProgram(program
):void
Parameters
• program: ProgramInfo
<string
>
Returns
void
Inherited from
Defined in
sigma/src/rendering/program.ts:206
drawWebGL()
drawWebGL(
method
,__namedParameters
):void
Parameters
• method: number
• __namedParameters: ProgramInfo
<string
>
Returns
void
Inherited from
Defined in
sigma/src/rendering/program.ts:355
getDefinition()
getDefinition():
object
Returns
object
ATTRIBUTES
ATTRIBUTES: (
object
|object
)[]
FRAGMENT_SHADER_SOURCE
FRAGMENT_SHADER_SOURCE:
string
METHOD
METHOD:
1
=WebGLRenderingContext.LINES
UNIFORMS
UNIFORMS: readonly [
"u_matrix"
]
VERTEX_SHADER_SOURCE
VERTEX_SHADER_SOURCE:
string
VERTICES
VERTICES:
number
=2
Overrides
Defined in
sigma/src/rendering/programs/edge-line/index.ts:27
getProgramInfo()
protected
getProgramInfo(name
,gl
,vertexShaderSource
,fragmentShaderSource
,frameBuffer
):ProgramInfo
<string
>
Parameters
• name: "normal"
| "pick"
• gl: WebGLRenderingContext
| WebGL2RenderingContext
• vertexShaderSource: string
• fragmentShaderSource: string
• frameBuffer: null
| WebGLFramebuffer
Returns
ProgramInfo
<string
>
Inherited from
Defined in
sigma/src/rendering/program.ts:150
hasNothingToRender()
hasNothingToRender():
boolean
Returns
boolean
Inherited from
EdgeProgram
.hasNothingToRender
Defined in
sigma/src/rendering/program.ts:312
kill()
kill():
void
Returns
void
Inherited from
Defined in
sigma/src/rendering/edge.ts:42
process()
process(
edgeIndex
,offset
,sourceData
,targetData
,data
):void
Parameters
• edgeIndex: number
• offset: number
• sourceData: NodeDisplayData
• targetData: NodeDisplayData
• data: DisplayData
Returns
void
Inherited from
Defined in
sigma/src/rendering/edge.ts:46
processVisibleItem()
processVisibleItem(
edgeIndex
,startIndex
,sourceData
,targetData
,data
):void
Parameters
• edgeIndex: number
• startIndex: number
• sourceData: NodeDisplayData
• targetData: NodeDisplayData
• data: DisplayData
Returns
void
Overrides
EdgeProgram
.processVisibleItem
Defined in
sigma/src/rendering/programs/edge-line/index.ts:42
reallocate()
reallocate(
capacity
):void
Parameters
• capacity: number
Returns
void
Inherited from
Defined in
sigma/src/rendering/program.ts:297
render()
render(
params
):void
Parameters
• params: RenderParams
Returns
void
Inherited from
Defined in
sigma/src/rendering/program.ts:334
renderProgram()
protected
renderProgram(params
,programInfo
):void
Parameters
• params: RenderParams
• programInfo: ProgramInfo
<string
>
Returns
void
Inherited from
Defined in
sigma/src/rendering/program.ts:318
setUniforms()
setUniforms(
params
,__namedParameters
):void
Parameters
• params: RenderParams
• __namedParameters: ProgramInfo
<string
>
Returns
void
Overrides
Defined in
sigma/src/rendering/programs/edge-line/index.ts:70
unbindAttribute()
protected
unbindAttribute(attr
,program
,unsetDivisor
?):void
Parameters
• attr: ProgramAttributeSpecification
• program: ProgramInfo
<string
>
• unsetDivisor?: boolean
Returns
void
Inherited from
Defined in
sigma/src/rendering/program.ts:279
unbindProgram()
protected
unbindProgram(program
):void
Parameters
• program: ProgramInfo
<string
>
Returns
void