import ProcessingNode from 'videocontext/src/ProcessingNodes/processingnode.js'
Constructor Summary
Public Constructor | ||
public |
Initialise an instance of a ProcessingNode. |
Member Summary
Private Members | ||
private |
|
|
private |
|
|
private |
|
|
private |
_definition: * |
|
private |
|
|
private |
|
|
private |
_framebuffer: * |
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
_program: * |
|
private |
_properties: {} |
|
private |
|
|
private |
_texture: * |
|
private |
|
Method Summary
Public Methods | ||
public |
destroy() 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 |
_render() |
|
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 |
inputNames: String[]: * 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 |
_inputNames: * |
|
private |
|
|
private |
_renderGraph: * |
|
private |
|
|
public |
Connect this node to the targetNode |
|
public |
destroy() 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#constructorPrivate Members
private _currentTimeLocation: * source
private _definition: * source
private _fragmentShader: * source
private _framebuffer: * source
private _inputTextureUnitMapping: *[] source
private _maxTextureUnits: * source
private _program: * source
private _properties: {} source
private _texture: * source
private _vertexShader: * source
Public Methods
public getProperty(name: string): * source
Sets the passed processing node property to the passed value.
Params:
Name | Type | Attribute | Description |
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.
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:
Name | Type | Attribute | Description |
currentTime | * |
private _update(currentTime: *) source
Params:
Name | Type | Attribute | Description |
currentTime | * |