📄 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:
Returns: number
NumberNodeUniform.getType(): string
¶
JSDoc:
Returns: string
Vector2NodeUniform.getValue(): Vector2
¶
JSDoc:
Returns: Vector2
Vector2NodeUniform.getType(): string
¶
JSDoc:
Returns: string
Vector3NodeUniform.getValue(): Vector3
¶
JSDoc:
Returns: Vector3
Vector3NodeUniform.getType(): string
¶
JSDoc:
Returns: string
Vector4NodeUniform.getValue(): Vector4
¶
JSDoc:
Returns: Vector4
Vector4NodeUniform.getType(): string
¶
JSDoc:
Returns: string
ColorNodeUniform.getValue(): Color
¶
JSDoc:
Returns: Color
ColorNodeUniform.getType(): string
¶
JSDoc:
Returns: string
Matrix2NodeUniform.getValue(): Matrix2
¶
JSDoc:
Returns: Matrix2
Matrix2NodeUniform.getType(): string
¶
JSDoc:
Returns: string
Matrix3NodeUniform.getValue(): Matrix3
¶
JSDoc:
Returns: Matrix3
Matrix3NodeUniform.getType(): string
¶
JSDoc:
Returns: string
Matrix4NodeUniform.getValue(): Matrix4
¶
JSDoc:
Returns: Matrix4
Matrix4NodeUniform.getType(): string
¶
JSDoc:
Returns: string
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
¶
getType(): string
¶
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
¶
getType(): string
¶
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
¶
getType(): string
¶
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
¶
getType(): string
¶
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
¶
getType(): string
¶
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
¶
getType(): string
¶
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
¶
getType(): string
¶
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;
}
}