Home Reference Source
public class | source

ImageNode

Extends:

GraphNodeSourceNode → ImageNode

Constructor Summary

Public Constructor
public

Initialise an instance of an ImageNode.

Member Summary

Public Members
public get
Private Members
private
private
private
private
private
private

_state: *

private

Method Summary

Private Methods
private

_load()

private

_seek(time: *)

private
private

_update(currentTime: *): boolean

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.

From class SourceNode
public get

Returns the duration of the node on a timeline.

public get

element: Element: *

Returns the underlying DOM element which represents this source node.

public get
public get

state: *

Returns the state of the node.

public get
public get
public set
private

_callbacks: *[]

private
private
private
private
private
private
private
private
private
private
private

_state: *

private
private
private
public

Clear any timeline state the node currently has, this puts the node in the "waiting" state, as if neither start nor stop had been called.

public

Destroy and clean-up the node.

public

Register callbacks against one of these events: "load", "destroy", "seek", "pause", "play", "ended", "durationchange", "loaded", "error"

public

start(time: number): boolean

Start playback at VideoContext.currentTime plus passed time.

public

Start playback at an absolute time ont the VideoContext's timeline.

public

stop(time: number): boolean

Stop playback at VideoContext.currentTime plus passed time.

public

Stop playback at an absolute time ont the VideoContext's timeline.

public

Remove callback.

private
private

_load()

private

_pause()

private

_play()

private

_seek(time: *)

private

_triggerCallbacks(type: *, data: *)

private
private

_update(currentTime: *, triggerTextureUpdate: boolean): boolean

Public Constructors

public constructor() source

Initialise an instance of an ImageNode. This should not be called directly, but created through a call to videoContext.createImageNode();

Override:

SourceNode#constructor

Public Members

public get elementURL: * source

Private Members

private _attributes: * source

private _displayName: string source

Override:

SourceNode#_displayName

private _element: * source

Override:

SourceNode#_element

private _preloadTime: * source

private _ready: boolean source

Override:

SourceNode#_ready

private _state: * source

Override:

SourceNode#_state

private _textureUploaded: boolean source

Private Methods

private _load() source

Override:

SourceNode#_load

private _seek(time: *) source

Override:

SourceNode#_seek

Params:

NameTypeAttributeDescription
time *

private _unload() source

Override:

SourceNode#_unload

private _update(currentTime: *): boolean source

Override:

SourceNode#_update

Params:

NameTypeAttributeDescription
currentTime *

Return:

boolean