Skip to content

⬅️ Back to Table of Contents

📄 NodeUniform.js

📊 Analysis Summary

Metric Count
🔧 Functions 16
🧱 Classes 8
📦 Imports 8

📚 Table of Contents

🛠️ File Location:

📂 src/renderers/common/nodes/NodeUniform.js

📦 Imports

Name Source
NumberUniform ../Uniform.js
Vector2Uniform ../Uniform.js
Vector3Uniform ../Uniform.js
Vector4Uniform ../Uniform.js
ColorUniform ../Uniform.js
Matrix2Uniform ../Uniform.js
Matrix3Uniform ../Uniform.js
Matrix4Uniform ../Uniform.js

Functions

NumberNodeUniform.getValue(): number

JSDoc:

/**
     * Overwritten to return the value of the node uniform.
     *
     * @return {number} The value.
     */

Returns: number

Code
getValue() {

        return this.nodeUniform.value;

    }

NumberNodeUniform.getType(): string

JSDoc:

/**
     * Returns the node uniform data type.
     *
     * @return {string} The data type.
     */

Returns: string

Code
getType() {

        return this.nodeUniform.type;

    }

Vector2NodeUniform.getValue(): Vector2

JSDoc:

/**
     * Overwritten to return the value of the node uniform.
     *
     * @return {Vector2} The value.
     */

Returns: Vector2

Code
getValue() {

        return this.nodeUniform.value;

    }

Vector2NodeUniform.getType(): string

JSDoc:

/**
     * Returns the node uniform data type.
     *
     * @return {string} The data type.
     */

Returns: string

Code
getType() {

        return this.nodeUniform.type;

    }

Vector3NodeUniform.getValue(): Vector3

JSDoc:

/**
     * Overwritten to return the value of the node uniform.
     *
     * @return {Vector3} The value.
     */

Returns: Vector3

Code
getValue() {

        return this.nodeUniform.value;

    }

Vector3NodeUniform.getType(): string

JSDoc:

/**
     * Returns the node uniform data type.
     *
     * @return {string} The data type.
     */

Returns: string

Code
getType() {

        return this.nodeUniform.type;

    }

Vector4NodeUniform.getValue(): Vector4

JSDoc:

/**
     * Overwritten to return the value of the node uniform.
     *
     * @return {Vector4} The value.
     */

Returns: Vector4

Code
getValue() {

        return this.nodeUniform.value;

    }

Vector4NodeUniform.getType(): string

JSDoc:

/**
     * Returns the node uniform data type.
     *
     * @return {string} The data type.
     */

Returns: string

Code
getType() {

        return this.nodeUniform.type;

    }

ColorNodeUniform.getValue(): Color

JSDoc:

/**
     * Overwritten to return the value of the node uniform.
     *
     * @return {Color} The value.
     */

Returns: Color

Code
getValue() {

        return this.nodeUniform.value;

    }

ColorNodeUniform.getType(): string

JSDoc:

/**
     * Returns the node uniform data type.
     *
     * @return {string} The data type.
     */

Returns: string

Code
getType() {

        return this.nodeUniform.type;

    }

Matrix2NodeUniform.getValue(): Matrix2

JSDoc:

/**
     * Overwritten to return the value of the node uniform.
     *
     * @return {Matrix2} The value.
     */

Returns: Matrix2

Code
getValue() {

        return this.nodeUniform.value;

    }

Matrix2NodeUniform.getType(): string

JSDoc:

/**
     * Returns the node uniform data type.
     *
     * @return {string} The data type.
     */

Returns: string

Code
getType() {

        return this.nodeUniform.type;

    }

Matrix3NodeUniform.getValue(): Matrix3

JSDoc:

/**
     * Overwritten to return the value of the node uniform.
     *
     * @return {Matrix3} The value.
     */

Returns: Matrix3

Code
getValue() {

        return this.nodeUniform.value;

    }

Matrix3NodeUniform.getType(): string

JSDoc:

/**
     * Returns the node uniform data type.
     *
     * @return {string} The data type.
     */

Returns: string

Code
getType() {

        return this.nodeUniform.type;

    }

Matrix4NodeUniform.getValue(): Matrix4

JSDoc:

/**
     * Overwritten to return the value of the node uniform.
     *
     * @return {Matrix4} The value.
     */

Returns: Matrix4

Code
getValue() {

        return this.nodeUniform.value;

    }

Matrix4NodeUniform.getType(): string

JSDoc:

/**
     * Returns the node uniform data type.
     *
     * @return {string} The data type.
     */

Returns: string

Code
getType() {

        return this.nodeUniform.type;

    }

Classes

NumberNodeUniform

Class Code
class NumberNodeUniform extends NumberUniform {

    /**
     * Constructs a new node-based Number uniform.
     *
     * @param {NodeUniform} nodeUniform - The node uniform.
     */
    constructor( nodeUniform ) {

        super( nodeUniform.name, nodeUniform.value );

        /**
         * The node uniform.
         *
         * @type {NodeUniform}
         */
        this.nodeUniform = nodeUniform;

    }

    /**
     * Overwritten to return the value of the node uniform.
     *
     * @return {number} The value.
     */
    getValue() {

        return this.nodeUniform.value;

    }

    /**
     * Returns the node uniform data type.
     *
     * @return {string} The data type.
     */
    getType() {

        return this.nodeUniform.type;

    }

}

Methods

getValue(): number
Code
getValue() {

        return this.nodeUniform.value;

    }
getType(): string
Code
getType() {

        return this.nodeUniform.type;

    }

Vector2NodeUniform

Class Code
class Vector2NodeUniform extends Vector2Uniform {

    /**
     * Constructs a new node-based Vector2 uniform.
     *
     * @param {NodeUniform} nodeUniform - The node uniform.
     */
    constructor( nodeUniform ) {

        super( nodeUniform.name, nodeUniform.value );

        /**
         * The node uniform.
         *
         * @type {NodeUniform}
         */
        this.nodeUniform = nodeUniform;

    }

    /**
     * Overwritten to return the value of the node uniform.
     *
     * @return {Vector2} The value.
     */
    getValue() {

        return this.nodeUniform.value;

    }

    /**
     * Returns the node uniform data type.
     *
     * @return {string} The data type.
     */
    getType() {

        return this.nodeUniform.type;

    }

}

Methods

getValue(): Vector2
Code
getValue() {

        return this.nodeUniform.value;

    }
getType(): string
Code
getType() {

        return this.nodeUniform.type;

    }

Vector3NodeUniform

Class Code
class Vector3NodeUniform extends Vector3Uniform {

    /**
     * Constructs a new node-based Vector3 uniform.
     *
     * @param {NodeUniform} nodeUniform - The node uniform.
     */
    constructor( nodeUniform ) {

        super( nodeUniform.name, nodeUniform.value );

        /**
         * The node uniform.
         *
         * @type {NodeUniform}
         */
        this.nodeUniform = nodeUniform;

    }

    /**
     * Overwritten to return the value of the node uniform.
     *
     * @return {Vector3} The value.
     */
    getValue() {

        return this.nodeUniform.value;

    }

    /**
     * Returns the node uniform data type.
     *
     * @return {string} The data type.
     */
    getType() {

        return this.nodeUniform.type;

    }

}

Methods

getValue(): Vector3
Code
getValue() {

        return this.nodeUniform.value;

    }
getType(): string
Code
getType() {

        return this.nodeUniform.type;

    }

Vector4NodeUniform

Class Code
class Vector4NodeUniform extends Vector4Uniform {

    /**
     * Constructs a new node-based Vector4 uniform.
     *
     * @param {NodeUniform} nodeUniform - The node uniform.
     */
    constructor( nodeUniform ) {

        super( nodeUniform.name, nodeUniform.value );

        /**
         * The node uniform.
         *
         * @type {NodeUniform}
         */
        this.nodeUniform = nodeUniform;

    }

    /**
     * Overwritten to return the value of the node uniform.
     *
     * @return {Vector4} The value.
     */
    getValue() {

        return this.nodeUniform.value;

    }

    /**
     * Returns the node uniform data type.
     *
     * @return {string} The data type.
     */
    getType() {

        return this.nodeUniform.type;

    }

}

Methods

getValue(): Vector4
Code
getValue() {

        return this.nodeUniform.value;

    }
getType(): string
Code
getType() {

        return this.nodeUniform.type;

    }

ColorNodeUniform

Class Code
class ColorNodeUniform extends ColorUniform {

    /**
     * Constructs a new node-based Color uniform.
     *
     * @param {NodeUniform} nodeUniform - The node uniform.
     */
    constructor( nodeUniform ) {

        super( nodeUniform.name, nodeUniform.value );

        /**
         * The node uniform.
         *
         * @type {NodeUniform}
         */
        this.nodeUniform = nodeUniform;

    }

    /**
     * Overwritten to return the value of the node uniform.
     *
     * @return {Color} The value.
     */
    getValue() {

        return this.nodeUniform.value;

    }

    /**
     * Returns the node uniform data type.
     *
     * @return {string} The data type.
     */
    getType() {

        return this.nodeUniform.type;

    }

}

Methods

getValue(): Color
Code
getValue() {

        return this.nodeUniform.value;

    }
getType(): string
Code
getType() {

        return this.nodeUniform.type;

    }

Matrix2NodeUniform

Class Code
class Matrix2NodeUniform extends Matrix2Uniform {

    /**
     * Constructs a new node-based Matrix2 uniform.
     *
     * @param {NodeUniform} nodeUniform - The node uniform.
     */
    constructor( nodeUniform ) {

        super( nodeUniform.name, nodeUniform.value );

        /**
         * The node uniform.
         *
         * @type {NodeUniform}
         */
        this.nodeUniform = nodeUniform;

    }

    /**
     * Overwritten to return the value of the node uniform.
     *
     * @return {Matrix2} The value.
     */
    getValue() {

        return this.nodeUniform.value;

    }

    /**
     * Returns the node uniform data type.
     *
     * @return {string} The data type.
     */
    getType() {

        return this.nodeUniform.type;

    }

}

Methods

getValue(): Matrix2
Code
getValue() {

        return this.nodeUniform.value;

    }
getType(): string
Code
getType() {

        return this.nodeUniform.type;

    }

Matrix3NodeUniform

Class Code
class Matrix3NodeUniform extends Matrix3Uniform {

    /**
     * Constructs a new node-based Matrix3 uniform.
     *
     * @param {NodeUniform} nodeUniform - The node uniform.
     */
    constructor( nodeUniform ) {

        super( nodeUniform.name, nodeUniform.value );

        /**
         * The node uniform.
         *
         * @type {NodeUniform}
         */
        this.nodeUniform = nodeUniform;

    }

    /**
     * Overwritten to return the value of the node uniform.
     *
     * @return {Matrix3} The value.
     */
    getValue() {

        return this.nodeUniform.value;

    }

    /**
     * Returns the node uniform data type.
     *
     * @return {string} The data type.
     */
    getType() {

        return this.nodeUniform.type;

    }

}

Methods

getValue(): Matrix3
Code
getValue() {

        return this.nodeUniform.value;

    }
getType(): string
Code
getType() {

        return this.nodeUniform.type;

    }

Matrix4NodeUniform

Class Code
class Matrix4NodeUniform extends Matrix4Uniform {

    /**
     * Constructs a new node-based Matrix4 uniform.
     *
     * @param {NodeUniform} nodeUniform - The node uniform.
     */
    constructor( nodeUniform ) {

        super( nodeUniform.name, nodeUniform.value );

        /**
         * The node uniform.
         *
         * @type {NodeUniform}
         */
        this.nodeUniform = nodeUniform;

    }

    /**
     * Overwritten to return the value of the node uniform.
     *
     * @return {Matrix4} The value.
     */
    getValue() {

        return this.nodeUniform.value;

    }

    /**
     * Returns the node uniform data type.
     *
     * @return {string} The data type.
     */
    getType() {

        return this.nodeUniform.type;

    }

}

Methods

getValue(): Matrix4
Code
getValue() {

        return this.nodeUniform.value;

    }
getType(): string
Code
getType() {

        return this.nodeUniform.type;

    }