Home Reference Source
public class | source

ProcessingNode

Extends:

GraphNode → ProcessingNode

Indirect Subclass:

TransitionNode

Constructor Summary

Public Constructor
public

Initialise an instance of a ProcessingNode.

Member Summary

Private Members
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private

Method Summary

Public Methods
public

Destroy and clean-up the node.

public

getProperty(name: string): *

Sets the passed processing node property to the passed value.

public

setProperty(name: string, value: Object)

Sets the passed processing node property to the passed value.

Private Methods
private
private

_seek(currentTime: *)

private

_update(currentTime: *)

Inherited Summary

From class GraphNode
public get

Get whether the node has been destroyed or not.

public get

displayName: *: *

Get a string representation of the class name.

public get

Get the names of the inputs to this node.

public get

Get an array of all the nodes which connect to this node.

public get

The maximum number of connections that can be made to this node.

public get

Get an array of all the nodes which this node outputs to.

private
private
private

_gl: *

private
private
private
private
public

connect(targetNode: GraphNode, targetPort: number | String): *

Connect this node to the targetNode

public

Destory this node, removing it from the graph.

public

disconnect(targetNode: GraphNode): *

Disconnect this node from the targetNode.

Public Constructors

public constructor() source

Initialise an instance of a ProcessingNode.

This class is not used directly, but is extended to create CompositingNodes, TransitionNodes, and EffectNodes.

Override:

GraphNode#constructor

Private Members

private _boundTextureUnits: number source

private _currentTime: number source

private _currentTimeLocation: * source

private _definition: * source

private _displayName: string source

Override:

GraphNode#_displayName

private _fragmentShader: * source

private _framebuffer: * source

private _inputTextureCount: number source

private _inputTextureUnitMapping: *[] source

private _maxTextureUnits: * source

private _parameterTextureCount: number source

private _program: * source

private _properties: {} source

private _rendered: boolean source

Override:

GraphNode#_rendered

private _texture: * source

private _vertexShader: * source

Public Methods

public destroy() source

Destroy and clean-up the node.

Override:

GraphNode#destroy

public getProperty(name: string): * source

Sets the passed processing node property to the passed value.

Params:

NameTypeAttributeDescription
name string

The name of the processing node parameter to get.

Return:

*

Example:

var ctx = new VideoContext();
var monoNode = ctx.effect(VideoContext.DEFINITIONS.MONOCHROME);
console.log(monoNode.getProperty("inputMix")); //Will output [0.4,0.6,0.2], the default value from the effect definition.

public setProperty(name: string, value: Object) source

Sets the passed processing node property to the passed value.

Params:

NameTypeAttributeDescription
name string

The name of the processing node parameter to modify.

value Object

The value to set it to.

Example:

var ctx = new VideoContext();
var monoNode = ctx.effect(VideoContext.DEFINITIONS.MONOCHROME);
monoNode.setProperty("inputMix", [1.0,0.0,0.0]); //Just use red channel

Private Methods

private _render() source

private _seek(currentTime: *) source

Params:

NameTypeAttributeDescription
currentTime *

private _update(currentTime: *) source

Params:

NameTypeAttributeDescription
currentTime *