Skip to main content

Class: NodeCircleProgram<N, E, G>

Extends

Type Parameters

N extends Attributes = Attributes

E extends Attributes = Attributes

G extends Attributes = Attributes

Constructors

new NodeCircleProgram()

new NodeCircleProgram<N, E, G>(gl, pickingBuffer, renderer): NodeCircleProgram<N, E, G>

Parameters

gl: WebGLRenderingContext | WebGL2RenderingContext

pickingBuffer: null | WebGLFramebuffer

renderer: Sigma<N, E, G>

Returns

NodeCircleProgram<N, E, G>

Inherited from

NodeProgram.constructor

Defined in

sigma/src/rendering/program.ts:81

Properties

array

array: Float32Array

Inherited from

NodeProgram.array

Defined in

sigma/src/rendering/program.ts:69


ATTRIBUTES

ATTRIBUTES: ProgramAttributeSpecification[]

Inherited from

NodeProgram.ATTRIBUTES

Defined in

sigma/src/rendering/program.ts:60


ATTRIBUTES_ITEMS_COUNT

ATTRIBUTES_ITEMS_COUNT: number

Inherited from

NodeProgram.ATTRIBUTES_ITEMS_COUNT

Defined in

sigma/src/rendering/program.ts:65


capacity

capacity: number = 0

Inherited from

NodeProgram.capacity

Defined in

sigma/src/rendering/program.ts:71


CONSTANT_ATTRIBUTES

CONSTANT_ATTRIBUTES: ProgramAttributeSpecification[]

Inherited from

NodeProgram.CONSTANT_ATTRIBUTES

Defined in

sigma/src/rendering/program.ts:62


CONSTANT_DATA

CONSTANT_DATA: number[][]

Inherited from

NodeProgram.CONSTANT_DATA

Defined in

sigma/src/rendering/program.ts:63


constantArray

constantArray: Float32Array

Inherited from

NodeProgram.constantArray

Defined in

sigma/src/rendering/program.ts:70


drawHover

drawHover: undefined | NodeHoverDrawingFunction<N, E, G>

Inherited from

NodeProgram.drawHover

Defined in

sigma/src/rendering/node.ts:36


drawLabel

drawLabel: undefined | NodeLabelDrawingFunction<N, E, G>

Inherited from

NodeProgram.drawLabel

Defined in

sigma/src/rendering/node.ts:35


FRAGMENT_SHADER_SOURCE

FRAGMENT_SHADER_SOURCE: string

Inherited from

NodeProgram.FRAGMENT_SHADER_SOURCE

Defined in

sigma/src/rendering/program.ts:58


isInstanced

isInstanced: boolean

Inherited from

NodeProgram.isInstanced

Defined in

sigma/src/rendering/program.ts:77


METHOD

METHOD: number

Inherited from

NodeProgram.METHOD

Defined in

sigma/src/rendering/program.ts:61


normalProgram

normalProgram: ProgramInfo<string>

Inherited from

NodeProgram.normalProgram

Defined in

sigma/src/rendering/program.ts:74


pickProgram

pickProgram: null | ProgramInfo<string>

Inherited from

NodeProgram.pickProgram

Defined in

sigma/src/rendering/program.ts:75


renderer

renderer: Sigma<N, E, G>

Inherited from

NodeProgram.renderer

Defined in

sigma/src/rendering/program.ts:68


STRIDE

STRIDE: number

Inherited from

NodeProgram.STRIDE

Defined in

sigma/src/rendering/program.ts:66


UNIFORMS

UNIFORMS: readonly ("u_sizeRatio" | "u_correctionRatio" | "u_matrix")[]

Inherited from

NodeProgram.UNIFORMS

Defined in

sigma/src/rendering/program.ts:59


VERTEX_SHADER_SOURCE

VERTEX_SHADER_SOURCE: string

Inherited from

NodeProgram.VERTEX_SHADER_SOURCE

Defined in

sigma/src/rendering/program.ts:57


VERTICES

VERTICES: number

Inherited from

NodeProgram.VERTICES

Defined in

sigma/src/rendering/program.ts:56


verticesCount

verticesCount: number = 0

Inherited from

NodeProgram.verticesCount

Defined in

sigma/src/rendering/program.ts:72


ANGLE_1

readonly static ANGLE_1: 0 = 0

Defined in

sigma/src/rendering/programs/node-circle/index.ts:29


ANGLE_2

readonly static ANGLE_2: number

Defined in

sigma/src/rendering/programs/node-circle/index.ts:30


ANGLE_3

readonly static ANGLE_3: number

Defined in

sigma/src/rendering/programs/node-circle/index.ts:31

Methods

bindAttribute()

protected bindAttribute(attr, program, offset, setDivisor?): number

Parameters

attr: ProgramAttributeSpecification

program: ProgramInfo<string>

offset: number

setDivisor?: boolean

Returns

number

Inherited from

NodeProgram.bindAttribute

Defined in

sigma/src/rendering/program.ts:244


bindProgram()

protected bindProgram(program): void

Parameters

program: ProgramInfo<string>

Returns

void

Inherited from

NodeProgram.bindProgram

Defined in

sigma/src/rendering/program.ts:206


drawWebGL()

drawWebGL(method, __namedParameters): void

Parameters

method: number

__namedParameters: ProgramInfo<string>

Returns

void

Inherited from

NodeProgram.drawWebGL

Defined in

sigma/src/rendering/program.ts:355


getDefinition()

getDefinition(): object

Returns

object

ATTRIBUTES

ATTRIBUTES: (object | object)[]

CONSTANT_ATTRIBUTES

CONSTANT_ATTRIBUTES: object[]

CONSTANT_DATA

CONSTANT_DATA: number[][]

FRAGMENT_SHADER_SOURCE

FRAGMENT_SHADER_SOURCE: string

METHOD

METHOD: 4 = WebGLRenderingContext.TRIANGLES

UNIFORMS

UNIFORMS: readonly ["u_sizeRatio", "u_correctionRatio", "u_matrix"]

VERTEX_SHADER_SOURCE

VERTEX_SHADER_SOURCE: string

VERTICES

VERTICES: number = 3

Overrides

NodeProgram.getDefinition

Defined in

sigma/src/rendering/programs/node-circle/index.ts:33


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

NodeProgram.getProgramInfo

Defined in

sigma/src/rendering/program.ts:150


hasNothingToRender()

hasNothingToRender(): boolean

Returns

boolean

Inherited from

NodeProgram.hasNothingToRender

Defined in

sigma/src/rendering/program.ts:312


kill()

kill(): void

Returns

void

Inherited from

NodeProgram.kill

Defined in

sigma/src/rendering/node.ts:38


process()

process(nodeIndex, offset, data): void

Parameters

nodeIndex: number

offset: number

data: NodeDisplayData

Returns

void

Inherited from

NodeProgram.process

Defined in

sigma/src/rendering/node.ts:42


processVisibleItem()

processVisibleItem(nodeIndex, startIndex, data): void

Parameters

nodeIndex: number

startIndex: number

data: NodeDisplayData

Returns

void

Overrides

NodeProgram.processVisibleItem

Defined in

sigma/src/rendering/programs/node-circle/index.ts:51


reallocate()

reallocate(capacity): void

Parameters

capacity: number

Returns

void

Inherited from

NodeProgram.reallocate

Defined in

sigma/src/rendering/program.ts:297


render()

render(params): void

Parameters

params: RenderParams

Returns

void

Inherited from

NodeProgram.render

Defined in

sigma/src/rendering/program.ts:334


renderProgram()

protected renderProgram(params, programInfo): void

Parameters

params: RenderParams

programInfo: ProgramInfo<string>

Returns

void

Inherited from

NodeProgram.renderProgram

Defined in

sigma/src/rendering/program.ts:318


setUniforms()

setUniforms(params, __namedParameters): void

Parameters

params: RenderParams

__namedParameters: ProgramInfo<string>

Returns

void

Overrides

NodeProgram.setUniforms

Defined in

sigma/src/rendering/programs/node-circle/index.ts:62


unbindAttribute()

protected unbindAttribute(attr, program, unsetDivisor?): void

Parameters

attr: ProgramAttributeSpecification

program: ProgramInfo<string>

unsetDivisor?: boolean

Returns

void

Inherited from

NodeProgram.unbindAttribute

Defined in

sigma/src/rendering/program.ts:279


unbindProgram()

protected unbindProgram(program): void

Parameters

program: ProgramInfo<string>

Returns

void

Inherited from

NodeProgram.unbindProgram

Defined in

sigma/src/rendering/program.ts:235