Skip to main content

Class: FragmentManager

components.FragmentManager

Object that can efficiently load binary files that contain fragment geometry.

Hierarchy

Implements

Properties

enabled

enabled: boolean = true

enabled

Overrides

Component.enabled

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"

name

Overrides

Component.name

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

get

Returns

void

Implementation of

Disposable.dispose

Defined in

temp/components/fragments/FragmentManager/index.ts:48


export

export(ids?): Uint8Array

Export the specified fragments.

Parameters

NameTypeDescription
idsstring[]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[]

get

Returns

Fragment[]

Overrides

Component.get

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

Component.hasUI

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

Component.isDisposeable

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

Component.isHideable

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

Component.isResizeable

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

Component.isUpdateable

Defined in

temp/components/base-types/component.ts:38


load

load(data): string[]

Loads one or many fragments into the scene.

Parameters

NameTypeDescription
dataUint8Arraythe 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