Home Reference Source
public class | source

L_Element

Extends:

GLBoostObject → L_Element

Direct Subclass:

L_AbstractCamera, M_Element

Constructor Summary

Public Constructor
public

constructor(glBoostSystem: GLBoostSystem, toRegister: boolean)

Member Summary

Public Members
public

[key]: *

public get
public get

matrix: *

public set
public get
public get
public set
public set
public get

rotate: *

public
public set
public get
public get

scale: *

public set
public get
public get
public set
public get
Private Members
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private

Method Summary

Public Methods
public
public

getMatrixAt(lineName: string, inputValue: Vector3): *

public

getMatrixAtOrStatic(lineName: string, inputValue: number): *

public
public

getQuaternionAt(lineName: string, inputValue: number): *

public

getQuaternionAtOrStatic(lineName: string, inputValue: number | nullliteral): *

public
public

getRotateAt(lineName: string, inputValue: number): *

public

getRotateAtOrStatic(lineName: string, inputValue: number): *

public
public

getScaleAt(lineName: string, inputValue: number): *

public

getScaleAtOrStatic(lineName: string, inputValue: number): *

public
public
public

getTranslateAt(lineName: string, inputValue: number): Vector3

public

getTranslateAtOrStatic(lineName: string, inputValue: number): *

public
public
public

headToDirection(fromVec: Vector3, toVec: Vector3)

public

isTrsMatrixNeeded(lineName: string, inputValue: number): *

public
public
public

setAnimationAtLine(lineName: string, attributeName: string, inputArray: Array<any>, outputArray: Array<any>, interpolationMethod: string)

public

Set animation input value (for instance frame value), This value affect all child elements in this scene graph (recursively).

public
public
Private Methods
private
private
private
private
private
private

_copy(instance: L_Element)

private

_getAnimatedTransformValue(value: *, animation: *, type: *): *

private
private

Inherited Summary

From class GLBoostObject
public static
private static
private static
public get
public get
public get

Return the simple class-specific number.

public get
public get
public get
public get
public get
public get
public set
private
private
private
private
private
private
private
private
private
private
public
public
public
public

Return instance name.

public
private

_copy(instance: *)

private

Public Constructors

public constructor(glBoostSystem: GLBoostSystem, toRegister: boolean) source

Override:

GLBoostObject#constructor

Params:

NameTypeAttributeDescription
glBoostSystem GLBoostSystem
toRegister boolean
  • optional
  • default: true

Public Members

public [key]: * source

public get inverseTransformMatrix: * source

public get matrix: * source

public set matrix: Matrix44 source

public get normalMatrix: * source

public get quaternion: * source

public set quaternion: Quaternion source

public set rotate: Vector3 source

public get rotate: * source

public rotateMatrix: Matrix33 source

public set rotateMatrix33: Matrix33 source

public get rotateMatrix33: * source

public get scale: * source

public set scale: Vector3 source

public get transformMatrix: * source

public get translate: * source

public set translate: Vector3 source

public get updateCountAsElement: * source

Private Members

private _activeAnimationLineName: string source

private _animationLine: Object source

private _currentAnimationInputValues: Object source

private _invMatrix: Matrix44 source

private _is_euler_angles_updated: boolean source

private _is_inverse_trs_matrix_updated: boolean source

private _is_quaternion_updated: boolean source

private _is_scale_updated: boolean source

private _is_translate_updated: boolean source

private _is_trs_matrix_updated: boolean source

private _matrix: Matrix44 source

private _quaternion: Quaternion source

private _rotate: Vector3 source

private _scale: Vector3 source

private _translate: Vector3 source

private _updateCountAsElement: number source

private _userFlavorName: string source

Override:

GLBoostObject#_userFlavorName

Public Methods

public getEndInputValueOfAnimation(lineName: string): * source

Params:

NameTypeAttributeDescription
lineName string

Return:

*

public getMatrixAt(lineName: string, inputValue: Vector3): * source

Params:

NameTypeAttributeDescription
lineName string
inputValue Vector3

Return:

*

public getMatrixAtOrStatic(lineName: string, inputValue: number): * source

Params:

NameTypeAttributeDescription
lineName string
inputValue number
  • nullable: true

Return:

*

public getMatrixNotAnimated(): * source

Return:

*

public getQuaternionAt(lineName: string, inputValue: number): * source

Params:

NameTypeAttributeDescription
lineName string
inputValue number

Return:

*

public getQuaternionAtOrStatic(lineName: string, inputValue: number | nullliteral): * source

Params:

NameTypeAttributeDescription
lineName string
inputValue number | nullliteral

Return:

*

public getQuaternionNotAnimated(): * source

Return:

*

public getRotateAt(lineName: string, inputValue: number): * source

Params:

NameTypeAttributeDescription
lineName string
inputValue number

Return:

*

public getRotateAtOrStatic(lineName: string, inputValue: number): * source

Params:

NameTypeAttributeDescription
lineName string
inputValue number
  • nullable: true

Return:

*

public getRotateNotAnimated(): * source

Return:

*

public getScaleAt(lineName: string, inputValue: number): * source

Params:

NameTypeAttributeDescription
lineName string
inputValue number

Return:

*

public getScaleAtOrStatic(lineName: string, inputValue: number): * source

Params:

NameTypeAttributeDescription
lineName string
inputValue number
  • nullable: true

Return:

*

public getScaleNotAnimated(): * source

Return:

*

public getStartInputValueOfAnimation(lineName: string): * source

Params:

NameTypeAttributeDescription
lineName string

Return:

*

public getTranslateAt(lineName: string, inputValue: number): Vector3 source

Params:

NameTypeAttributeDescription
lineName string
inputValue number
  • nullable: true

Return:

Vector3 (nullable: true)

public getTranslateAtOrStatic(lineName: string, inputValue: number): * source

Params:

NameTypeAttributeDescription
lineName string
inputValue number
  • nullable: true

Return:

*

public getTranslateNotAnimated(): * source

Return:

*

public hasAnimation(lineName: string): boolean source

Params:

NameTypeAttributeDescription
lineName string

Return:

boolean

public headToDirection(fromVec: Vector3, toVec: Vector3) source

Params:

NameTypeAttributeDescription
fromVec Vector3
toVec Vector3

public isTrsMatrixNeeded(lineName: string, inputValue: number): * source

Params:

NameTypeAttributeDescription
lineName string
inputValue number

Return:

*

public removeCurrentAnimationValue(inputName: string) source

Params:

NameTypeAttributeDescription
inputName string

public setActiveAnimationLine(lineName: string) source

Params:

NameTypeAttributeDescription
lineName string

public setAnimationAtLine(lineName: string, attributeName: string, inputArray: Array<any>, outputArray: Array<any>, interpolationMethod: string) source

Params:

NameTypeAttributeDescription
lineName string
attributeName string
inputArray Array<any>
outputArray Array<any>
interpolationMethod string

public setCurrentAnimationValue(inputName: string, inputValue: number | Vector2 | Vector3 | Vector4 | Quaternion) source

Set animation input value (for instance frame value), This value affect all child elements in this scene graph (recursively).

Params:

NameTypeAttributeDescription
inputName string

inputName name of input value.

inputValue number | Vector2 | Vector3 | Vector4 | Quaternion

input value of animation.

public setPropertiesFromJson(arg: Object) source

Params:

NameTypeAttributeDescription
arg Object

public setRotationFromNewUpAndFront(UpVec: Vector3, FrontVec: Vector3) source

Params:

NameTypeAttributeDescription
UpVec Vector3
FrontVec Vector3

Private Methods

private __updateMatrix() source

private __updateRotation() source

private __updateScale() source

private __updateTransform() source

private __updateTranslate() source

private _copy(instance: L_Element) source

Override:

GLBoostObject#_copy

Params:

NameTypeAttributeDescription
instance L_Element

private _getAnimatedTransformValue(value: *, animation: *, type: *): * source

Params:

NameTypeAttributeDescription
value *
animation *
type *

Return:

*

private _getCurrentAnimationInputValue(inputName: string): number source

Params:

NameTypeAttributeDescription
inputName string
  • nullable: true

Return:

number (nullable: true)

private _needUpdate() source