Class: FragmentManager
components.FragmentManager
Object that can efficiently load binary files that contain fragment geometry.
Hierarchy
Component<Fragment[]>↳
FragmentManager
Implements
Properties
enabled
• enabled: boolean = true
Overrides
Defined in
temp/components/fragments/FragmentManager/index.ts:18
list
• list: Object = {}
All the created fragments.
Index signature
▪ [guid: string]: Fragment
Defined in
temp/components/fragments/FragmentManager/index.ts:21
name
• name: string = "FragmentsComponent"
Overrides
Defined in
temp/components/fragments/FragmentManager/index.ts:15
Accessors
meshes
• get meshes(): Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[]>[]
The list of meshes of the created fragments.
Returns
Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[]>[]
Defined in
temp/components/fragments/FragmentManager/index.ts:29
Methods
dispose
▸ dispose(): void
Returns
void
Implementation of
Disposable.dispose
Defined in
temp/components/fragments/FragmentManager/index.ts:48
export
▸ export(ids?): Uint8Array
Export the specified fragments.
Parameters
| Name | Type | Description |
|---|---|---|
ids | string[] | the IDs of the fragments to export. By default, it's all the IDs of the existing fragments of list. |
Returns
Uint8Array
the exported data as binary buffer.
Defined in
temp/components/fragments/FragmentManager/index.ts:91
get
▸ get(): Fragment[]
Returns
Fragment[]
Overrides
Defined in
temp/components/fragments/FragmentManager/index.ts:43
hasUI
▸ hasUI(): this is UI
Whether is component implements any kind of UI.
Returns
this is UI
Inherited from
Defined in
temp/components/base-types/component.ts:48
isDisposeable
▸ isDisposeable(): this is Disposable
Whether is component is Disposable.
Returns
this is Disposable
Inherited from
Defined in
temp/components/base-types/component.ts:28
isHideable
▸ isHideable(): this is Hideable
Whether is component is Hideable.
Returns
this is Hideable
Inherited from
Defined in
temp/components/base-types/component.ts:43
isResizeable
▸ isResizeable(): this is Resizeable
Whether is component is Resizeable.
Returns
this is Resizeable
Inherited from
Defined in
temp/components/base-types/component.ts:33
isUpdateable
▸ isUpdateable(): this is Updateable
Whether is component is Updateable.
Returns
this is Updateable
Inherited from
Defined in
temp/components/base-types/component.ts:38
load
▸ load(data): string[]
Loads one or many fragments into the scene.
Parameters
| Name | Type | Description |
|---|---|---|
data | Uint8Array | the bytes containing the data for the fragments to load. |
Returns
string[]
the list of IDs of the loaded fragments.
Defined in
temp/components/fragments/FragmentManager/index.ts:71
reset
▸ reset(): void
Disposes all existing fragments
Returns
void
Defined in
temp/components/fragments/FragmentManager/index.ts:58