Home Reference Source
public class | source

M_Group

Extends:

GLBoostObjectL_ElementM_Element → M_Group

Direct Subclass:

M_Gizmo, M_Scene

Constructor Summary

Public Constructor
public

constructor(glBoostContext: glBoostContext)

Member Summary

Public Members
public get

AABB: *

public set
public get
Private Members
private
private
private
private

_glBoostSystem: glBoostSystem

private
private

Method Summary

Public Methods
public

addChild(element: Element, isDuplicateOk: boolean)

Add the element to this group as a child.

public

clone(clonedOriginalRootElement: any, clonedRootElement: any, onCompleteFuncs: any): *

public

executeSpecifiedFunctionRecursively(func: Function, thisObj: any, args: Array<any>, childIndexToInsertToArgs: *)

public

getAnyJointAsChild(): M_Joint | nullliteral

public
public

getEndAnimationInputValue(inputLineName: string, element: M_Group): *

public

getStartAnimationInputValue(inputLineName: string, element: M_Group): *

public

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

public
public

remove all elements from this group.

public

remove the element from this group.

public

searchElement(query: string, queryMeta: QueryMeta, element: M_Group): *

public

searchElementByNameAndType(query: string, type: GLBoostObject, queryMeta: QueryMeta, element: M_Group): *

public

searchElementsByNameAndType(query: string, type: GLBoostObject, queryMeta: QueryMeta, element: M_Group): *

public

searchElementsByType(type: any, element: M_Element): *

public

searchGLBoostObjectByNameAndType(query: string, type: GLBoostObject, queryMeta: QueryMeta, element: M_Group | M_Element | M_Mesh): *

public

searchGLBoostObjectsByNameAndType(query: any, type: GLBoostObject, queryMeta: QueryMeta, element: M_Group): *

public

setSpecifiedPropertyRecursively(propertyName: string, value: any)

public

updateAABB(): *

Private Methods
private

_copy(instance: *)

private
private
private
private

_validateByQuery(object: GLBoostObject, query: string, queryMeta: QueryMeta): *

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) source

Override:

M_Element#constructor

Params:

NameTypeAttributeDescription
glBoostContext glBoostContext

Public Members

public get AABB: * source

public set isVisible: boolean source

Override:

M_Element#isVisible

public get isVisible: * source

Override:

M_Element#isVisible

Private Members

private _AABB: Object source

private _elements: Array<any> source

private _gizmos: Object source

Override:

M_Element#_gizmos

private _glBoostSystem: glBoostSystem source

Override:

GLBoostObject#_glBoostSystem

private _isRootJointGroup: boolean source

private _isVisible: boolean source

Override:

M_Element#_isVisible

Public Methods

public addChild(element: Element, isDuplicateOk: boolean) source

Add the element to this group as a child.

Params:

NameTypeAttributeDescription
element Element

a instance of Element class

isDuplicateOk boolean
  • optional
  • default: undefined

allow duplicating if need

public clone(clonedOriginalRootElement: any, clonedRootElement: any, onCompleteFuncs: any): * source

Params:

NameTypeAttributeDescription
clonedOriginalRootElement any
  • optional
  • default: undefined
clonedRootElement any
  • optional
  • default: undefined
onCompleteFuncs any
  • optional
  • default: undefined

Return:

*

public executeSpecifiedFunctionRecursively(func: Function, thisObj: any, args: Array<any>, childIndexToInsertToArgs: *) source

Params:

NameTypeAttributeDescription
func Function
thisObj any
args Array<any>
childIndexToInsertToArgs *
  • optional
  • default: undefined

public getAnyJointAsChild(): M_Joint | nullliteral source

Return:

M_Joint | nullliteral

public getChildren(): Array<M_Group> source

Return:

Array<M_Group>

public getEndAnimationInputValue(inputLineName: string, element: M_Group): * source

Params:

NameTypeAttributeDescription
inputLineName string
element M_Group
  • optional
  • default: undefined

Return:

*

public getStartAnimationInputValue(inputLineName: string, element: M_Group): * source

Params:

NameTypeAttributeDescription
inputLineName string
element M_Group
  • optional
  • default: undefined

Return:

*

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

Params:

NameTypeAttributeDescription
arg1 number
arg2 number
camera any
viewport any

Return:

undefined[]

public readyForDiscard() source

Override:

M_Element#readyForDiscard

public removeAll() source

remove all elements from this group.

public removeChild(element: M_Element) source

remove the element from this group.

Params:

NameTypeAttributeDescription
element M_Element

the element to remove

public searchElement(query: string, queryMeta: QueryMeta, element: M_Group): * source

Params:

NameTypeAttributeDescription
query string
queryMeta QueryMeta
  • optional
  • default: {[object Object],[object Object]}
element M_Group
  • optional
  • default: undefined

Return:

*

public searchElementByNameAndType(query: string, type: GLBoostObject, queryMeta: QueryMeta, element: M_Group): * source

Params:

NameTypeAttributeDescription
query string
type GLBoostObject
queryMeta QueryMeta
  • optional
  • default: {[object Object],[object Object]}
element M_Group
  • optional
  • default: undefined

Return:

*

public searchElementsByNameAndType(query: string, type: GLBoostObject, queryMeta: QueryMeta, element: M_Group): * source

Params:

NameTypeAttributeDescription
query string
type GLBoostObject
queryMeta QueryMeta
  • optional
  • default: {[object Object],[object Object]}
element M_Group
  • optional
  • default: undefined

Return:

*

public searchElementsByType(type: any, element: M_Element): * source

Params:

NameTypeAttributeDescription
type any
element M_Element
  • optional
  • default: undefined

Return:

*

public searchGLBoostObjectByNameAndType(query: string, type: GLBoostObject, queryMeta: QueryMeta, element: M_Group | M_Element | M_Mesh): * source

Params:

NameTypeAttributeDescription
query string
type GLBoostObject
queryMeta QueryMeta
  • optional
  • default: {[object Object],[object Object]}
element M_Group | M_Element | M_Mesh
  • optional
  • default: undefined

Return:

*

public searchGLBoostObjectsByNameAndType(query: any, type: GLBoostObject, queryMeta: QueryMeta, element: M_Group): * source

Params:

NameTypeAttributeDescription
query any
type GLBoostObject
queryMeta QueryMeta
  • optional
  • default: {[object Object],[object Object]}
element M_Group
  • optional
  • default: undefined

Return:

*

public setSpecifiedPropertyRecursively(propertyName: string, value: any) source

Params:

NameTypeAttributeDescription
propertyName string
value any

public updateAABB(): * source

Return:

*

Private Methods

private _copy(instance: *) source

Override:

M_Element#_copy

Params:

NameTypeAttributeDescription
instance *

private _needUpdate() source

Override:

M_Element#_needUpdate

private _setDirtyToAnimatedElement(inputName: string): void source

Override:

M_Element#_setDirtyToAnimatedElement

Params:

NameTypeAttributeDescription
inputName string

Return:

void

private _updateAABBGizmo() source

private _validateByQuery(object: GLBoostObject, query: string, queryMeta: QueryMeta): * source

Params:

NameTypeAttributeDescription
object GLBoostObject
query string
queryMeta QueryMeta

Return:

*