Home Reference Source
public class | source

M_Mesh

Extends:

GLBoostObjectL_ElementM_Element → M_Mesh

Constructor Summary

Public Constructor
public

constructor(glBoostContext: glBoostContext, geometry: any, material: any)

Member Summary

Public Members
public get
public get
public
public set

geometry: any

public get
public get

gizmos: *

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

material: any

public get
public get
Private Members
private

_geometry: any

private
private
private
private
private
private
private
private

Method Summary

Public Methods
public
public
public

calcTransformedDepth(camera: any)

public

clone(): *

public

draw(data: any)

public
public

merge(meshOrMeshes: M_Mesh | Array<M_Mesh>)

public

mergeHarder(meshOrMeshes: M_Mesh | Array<M_Mesh>)

public

prepareToRender(expression: any, existCamera_f: any, lights: any)

public

rayCast(arg1: Vector3, arg2: number, camera: any, viewport: any): undefined[]

Private Methods
private

_copy(instance: *)

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
From class L_Element
public get
public get

matrix: *

public set
public get
public get
public set
public get

rotate: *

public set
public get
public set
public get

scale: *

public set
public get
public get
public set
public get
public

[key]: *

public
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
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
private
private
private
private
private

_copy(instance: L_Element)

private

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

private
private
From class M_Element
public set
public get
public get
public set
public get

gizmos: *

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

opacity: *

public set
public get
public get

parent: *

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

_masterElement: M_Element | nullliteral

private
private
private
private
private
private

_parent: M_Group | nullliteral

private
private
private
public

addGizmo(gizmo: M_Gizmo)

public
public
public
public
public
public
public
private
private
private

_copy(instance: M_Element)

private

_getCurrentAnimationInputValue(inputName: string): number | nullliteral

private

_multiplyMyAndParentRotateMatrices(currentElem: M_Element | nullliteral, withMySelf: boolean): *

private

_multiplyMyAndParentTransformMatrices(withMySelf: *, input: *): *

private
private
private
private
private

Public Constructors

public constructor(glBoostContext: glBoostContext, geometry: any, material: any) source

Override:

M_Element#constructor

Params:

NameTypeAttributeDescription
glBoostContext glBoostContext
geometry any
material any

Public Members

public get AABBInLocal: * source

public get AABBInWorld: * source

public bindShapeMatrix: Matrix44 source

public set geometry: any source

public get geometry: * source

public get gizmos: * source

Override:

M_Element#gizmos

public get isOutlineVisible: * source

public set isOutlineVisible: boolean source

public set isPickable: boolean source

public get isPickable: * source

public set isTransparent: boolean source

Override:

M_Element#isTransparent

public get isTransparent: * source

Override:

M_Element#isTransparent

public set isVisible: boolean source

Override:

M_Element#isVisible

public get isVisible: * source

Override:

M_Element#isVisible

public get material: * source

public set material: any source

public get rawAABBInLocal: * source

public get transformedDepth: * source

Private Members

private _geometry: any source

private _gizmos: Array<M_Mesh> source

Override:

M_Element#_gizmos

private _glBoostSystem: GLBoostSystem source

Override:

GLBoostObject#_glBoostSystem

private _isPickable: boolean source

private _isTransparentForce: * source

Override:

M_Element#_isTransparentForce

private _material: M_Mesh source

private _opacity: number source

Override:

M_Element#_opacity

private _outlineGizmo: any source

private _transformedDepth: number source

Public Methods

public bakeInverseTransformToGeometry() source

public bakeTransformToGeometry() source

public calcTransformedDepth(camera: any) source

Params:

NameTypeAttributeDescription
camera any

public clone(): * source

Return:

*

public draw(data: any) source

Params:

NameTypeAttributeDescription
data any

public getAppropriateMaterials(): * source

Return:

*

public merge(meshOrMeshes: M_Mesh | Array<M_Mesh>) source

Params:

NameTypeAttributeDescription
meshOrMeshes M_Mesh | Array<M_Mesh>

public mergeHarder(meshOrMeshes: M_Mesh | Array<M_Mesh>) source

Params:

NameTypeAttributeDescription
meshOrMeshes M_Mesh | Array<M_Mesh>

public prepareToRender(expression: any, existCamera_f: any, lights: any) source

Override:

M_Element#prepareToRender

Params:

NameTypeAttributeDescription
expression any
existCamera_f any
lights any

public rayCast(arg1: Vector3, arg2: number, camera: any, viewport: any): undefined[] source

Params:

NameTypeAttributeDescription
arg1 Vector3
arg2 number
camera any
viewport any

Return:

undefined[]

Private Methods

private _copy(instance: *) source

Override:

M_Element#_copy

Params:

NameTypeAttributeDescription
instance *

private _copyMaterials() source

private _needUpdate() source

Override:

M_Element#_needUpdate