editor › Globals › RepresentationFactory
Class: RepresentationFactory ‹RepresentationWrapper›
This serves as the base class for factories of different representations of assemblies (e.g. visualization and physics).
Type parameters
▪ RepresentationWrapper
Hierarchy
- RepresentationFactory
Index
Properties
Methods
- _addAssemblyRepresentation
- _createAssemblyRepresentation
- _createInitialRepresentations
- _destroyAssemblyRepresentation
- _getAssemblyTransformsDirty
- _removeAssemblyRepresentation
- _resetAssemblyTransformsDirty
- getAssemblyRepresentationForAssembly
- getCompositeModel
- getRepresentationFinishedPromise
- setCompositeModel
- updateAssemblyRepresentations
- updateAssemblyTransformations
Properties
Protected assemblyToRepresentation
• assemblyToRepresentation: Map‹Assembly‹›, AssemblyRepresentation‹RepresentationWrapper›› = new Map
Defined in src/model/RepresentationFactory.ts:15
Protected compositeModel
• compositeModel: CompositeModel = null
Defined in src/model/RepresentationFactory.ts:14
Methods
Private _addAssemblyRepresentation
▸ _addAssemblyRepresentation(assembly: Assembly): AssemblyRepresentation‹RepresentationWrapper›
Defined in src/model/RepresentationFactory.ts:86
Parameters:
| Name | Type |
|---|---|
assembly |
Assembly |
Returns: AssemblyRepresentation‹RepresentationWrapper›
Protected Abstract _createAssemblyRepresentation
▸ _createAssemblyRepresentation(assembly: Assembly): AssemblyRepresentation‹RepresentationWrapper›
Defined in src/model/RepresentationFactory.ts:72
Parameters:
| Name | Type |
|---|---|
assembly |
Assembly |
Returns: AssemblyRepresentation‹RepresentationWrapper›
Private _createInitialRepresentations
▸ _createInitialRepresentations(): void
Defined in src/model/RepresentationFactory.ts:105
Returns: void
Protected Abstract _destroyAssemblyRepresentation
▸ _destroyAssemblyRepresentation(representation: AssemblyRepresentation‹RepresentationWrapper›, assembly: Assembly): void
Defined in src/model/RepresentationFactory.ts:74
Parameters:
| Name | Type |
|---|---|
representation |
AssemblyRepresentation‹RepresentationWrapper› |
assembly |
Assembly |
Returns: void
Protected Abstract _getAssemblyTransformsDirty
▸ _getAssemblyTransformsDirty(assembly: Assembly): boolean
Defined in src/model/RepresentationFactory.ts:79
Parameters:
| Name | Type |
|---|---|
assembly |
Assembly |
Returns: boolean
Private _removeAssemblyRepresentation
▸ _removeAssemblyRepresentation(assembly: Assembly): void
Defined in src/model/RepresentationFactory.ts:94
Parameters:
| Name | Type |
|---|---|
assembly |
Assembly |
Returns: void
Protected Abstract _resetAssemblyTransformsDirty
▸ _resetAssemblyTransformsDirty(assembly: Assembly): boolean
Defined in src/model/RepresentationFactory.ts:84
Parameters:
| Name | Type |
|---|---|
assembly |
Assembly |
Returns: boolean
the value of the flag before reset
getAssemblyRepresentationForAssembly
▸ getAssemblyRepresentationForAssembly(assembly: Assembly): AssemblyRepresentation‹RepresentationWrapper›
Defined in src/model/RepresentationFactory.ts:68
Parameters:
| Name | Type |
|---|---|
assembly |
Assembly |
Returns: AssemblyRepresentation‹RepresentationWrapper›
getCompositeModel
▸ getCompositeModel(): CompositeModel
Defined in src/model/RepresentationFactory.ts:35
Returns: CompositeModel
getRepresentationFinishedPromise
▸ getRepresentationFinishedPromise(): Promise‹void[]›
Defined in src/model/RepresentationFactory.ts:62
Returns: Promise‹void[]›
setCompositeModel
▸ setCompositeModel(compositeModel: CompositeModel): void
Defined in src/model/RepresentationFactory.ts:20
Sets or updates the composite model to be visualized
Parameters:
| Name | Type |
|---|---|
compositeModel |
CompositeModel |
Returns: void
updateAssemblyRepresentations
▸ updateAssemblyRepresentations(): boolean
Defined in src/model/RepresentationFactory.ts:53
Returns: boolean
updateAssemblyTransformations
▸ updateAssemblyTransformations(): boolean
Defined in src/model/RepresentationFactory.ts:39
Returns: boolean