Skip to main content

Interface: IMaterialManager

Asset-Management.IMaterialManager

Hierarchy

Implemented by

Methods

findOrCreate

findOrCreate(info, params?): undefined | IMaterial<any>

Parameters

NameType
infostring
params?AnyOptions

Returns

undefined | IMaterial<any>

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:11


generateFromTemplate

generateFromTemplate(name, params?): undefined | IMaterial<any>

Parameters

NameType
namestring
params?AnyOptions

Returns

undefined | IMaterial<any>

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:12


generateFromTemplateType

generateFromTemplateType(type, params?): undefined | IMaterial<any>

Parameters

NameType
typestring
params?AnyOptions

Returns

undefined | IMaterial<any>

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:13


findTemplate

findTemplate(name): undefined | IMaterialTemplate

Parameters

NameType
namestring

Returns

undefined | IMaterialTemplate

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:15


registerMaterial

registerMaterial(material): void

Parameters

NameType
materialIMaterial<any>

Returns

void

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:17


registerMaterialObject

registerMaterialObject(material): void

Parameters

NameType
materialany

Returns

void

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:19


unregisterMaterial

unregisterMaterial(material): void

Parameters

NameType
materialIMaterial<any>

Returns

void

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:21


registerMaterialTemplate

registerMaterialTemplate(template): void

Parameters

NameType
templateIMaterialTemplate

Returns

void

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:22


unregisterMaterialTemplate

unregisterMaterialTemplate(template): void

Parameters

NameType
templateIMaterialTemplate

Returns

void

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:24


findMaterial

findMaterial(uuid): undefined | IMaterial<any>

Parameters

NameType
uuidstring

Returns

undefined | IMaterial<any>

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:26


findMaterialsByName

findMaterialsByName(name): IMaterial<any>[]

Parameters

NameType
namestring

Returns

IMaterial<any>[]

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:27


getMaterialsOfType

getMaterialsOfType<TM>(typeSlug): TM[]

Type parameters

NameType
TMextends IMaterial<any, TM> = IMaterial<any>

Parameters

NameType
typeSlugundefined | string

Returns

TM[]

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:28


getAllMaterials

getAllMaterials(): IMaterial<any>[]

Returns

IMaterial<any>[]

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:30


processModel

processModel(object, options): IModel<any>

Parameters

NameType
objectIModel<any>
optionsAnyOptions

Returns

IModel<any>

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:32


processMaterial

processMaterial(material, options): IMaterial<any>

Parameters

NameType
materialIMaterial<any>
optionsAnyOptions

Returns

IMaterial<any>

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:34


registerMaterialExtension

registerMaterialExtension(extension): void

Parameters

NameType
extensionMaterialExtension

Returns

void

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:36


unregisterMaterialExtension

unregisterMaterialExtension(extension): void

Parameters

NameType
extensionMaterialExtension

Returns

void

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:37


exportMaterial

exportMaterial(material, filename?, minify?, download?): File

Parameters

NameType
materialIMaterial<any>
filename?string
minify?boolean
download?boolean

Returns

File

Defined in

webgi/src/extras/asset_manager/AMaterialManager.ts:39


addEventListener

addEventListener(type, listener): void

Adds a listener to an event type.

Parameters

NameTypeDescription
typestringThe type of event to listen to.
listener(event: IEvent<string>) => voidThe function that gets called when the event is fired.

Returns

void

Inherited from

IEventDispatcher.addEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:14


hasEventListener

hasEventListener(type, listener): boolean

Checks if listener is added to an event type.

Parameters

NameTypeDescription
typestringThe type of event to listen to.
listener(event: IEvent<string>) => voidThe function that gets called when the event is fired.

Returns

boolean

Inherited from

IEventDispatcher.hasEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:21


removeEventListener

removeEventListener(type, listener): void

Removes a listener from an event type.

Parameters

NameTypeDescription
typestringThe type of the listener that gets removed.
listener(event: IEvent<string>) => voidThe listener function that gets removed.

Returns

void

Inherited from

IEventDispatcher.removeEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:28


dispatchEvent

dispatchEvent(event): void

Fire an event type.

Parameters

NameType
eventIEvent<string>

Returns

void

Inherited from

IEventDispatcher.dispatchEvent

Defined in

webgi/src/helpers/EventDispatcher.ts:34


dispose

dispose(): void

Returns

void

Inherited from

IDisposable.dispose

Defined in

webgi/src/interfaces.ts:34