editor › Globals › VisualizationFactory
Class: VisualizationFactory
The visualizationFactory generates a renderable THREE scenegraph based on a composite model
Hierarchy
↳ VisualizationFactory
Index
Constructors
Properties
Methods
- _createAssemblyRepresentation
- _destroyAssemblyRepresentation
- _getAssemblyTransformsDirty
- _onAsyncUpdate
- _resetAssemblyTransformsDirty
- getAssemblyRepresentationForAssembly
- getAsyncUpdateEventEmitter
- getCompositeModel
- getRepresentationFinishedPromise
- setCompositeModel
- updateAssemblyRepresentations
- updateAssemblyTransformations
Constructors
constructor
+ new VisualizationFactory(scenegraphRootNode: Object3D): VisualizationFactory
Defined in src/model/visualization/VisualizationFactory.ts:13
Parameters:
| Name | Type | Description |
|---|---|---|
scenegraphRootNode |
Object3D | the root THREE-Object3D where visualization should be added as child objects |
Returns: VisualizationFactory
Properties
Protected assemblyToRepresentation
• assemblyToRepresentation: Map‹Assembly‹›, AssemblyRepresentation‹RepresentationWrapper›› = new Map
Inherited from RepresentationFactory.assemblyToRepresentation
Defined in src/model/RepresentationFactory.ts:15
Private Readonly asyncUpdateEventEmitter
• asyncUpdateEventEmitter: EventEmitter‹void› = new EventEmitter
Defined in src/model/visualization/VisualizationFactory.ts:13
Protected compositeModel
• compositeModel: CompositeModel = null
Inherited from RepresentationFactory.compositeModel
Defined in src/model/RepresentationFactory.ts:14
Private Readonly scenegraphRootNode
• scenegraphRootNode: Object3D
Defined in src/model/visualization/VisualizationFactory.ts:12
Methods
Protected _createAssemblyRepresentation
▸ _createAssemblyRepresentation(assembly: Assembly): AssemblyVisualization
Overrides RepresentationFactory._createAssemblyRepresentation
Defined in src/model/visualization/VisualizationFactory.ts:39
Add a wrapper three Object3D if an assembly gets added
Parameters:
| Name | Type |
|---|---|
assembly |
Assembly |
Returns: AssemblyVisualization
Protected _destroyAssemblyRepresentation
▸ _destroyAssemblyRepresentation(assemblyVisualization: AssemblyVisualization): void
Overrides RepresentationFactory._destroyAssemblyRepresentation
Defined in src/model/visualization/VisualizationFactory.ts:30
Remove the wrapper three Object3D if an assembly gets removed
Parameters:
| Name | Type |
|---|---|
assemblyVisualization |
AssemblyVisualization |
Returns: void
Protected _getAssemblyTransformsDirty
▸ _getAssemblyTransformsDirty(assembly: Assembly): boolean
Overrides RepresentationFactory._getAssemblyTransformsDirty
Defined in src/model/visualization/VisualizationFactory.ts:47
Parameters:
| Name | Type |
|---|---|
assembly |
Assembly |
Returns: boolean
Private _onAsyncUpdate
▸ _onAsyncUpdate(): any[]
Defined in src/model/visualization/VisualizationFactory.ts:54
Returns: any[]
Protected _resetAssemblyTransformsDirty
▸ _resetAssemblyTransformsDirty(assembly: Assembly): boolean
Overrides RepresentationFactory._resetAssemblyTransformsDirty
Defined in src/model/visualization/VisualizationFactory.ts:50
Parameters:
| Name | Type |
|---|---|
assembly |
Assembly |
Returns: boolean
getAssemblyRepresentationForAssembly
▸ getAssemblyRepresentationForAssembly(assembly: Assembly): AssemblyRepresentation‹VisualisationWrapper›
Inherited from RepresentationFactory.getAssemblyRepresentationForAssembly
Defined in src/model/RepresentationFactory.ts:68
Parameters:
| Name | Type |
|---|---|
assembly |
Assembly |
Returns: AssemblyRepresentation‹VisualisationWrapper›
getAsyncUpdateEventEmitter
▸ getAsyncUpdateEventEmitter(): IPublicEventEmitterInterface‹void›
Defined in src/model/visualization/VisualizationFactory.ts:23
Returns: IPublicEventEmitterInterface‹void›
getCompositeModel
▸ getCompositeModel(): CompositeModel
Inherited from RepresentationFactory.getCompositeModel
Defined in src/model/RepresentationFactory.ts:35
Returns: CompositeModel
getRepresentationFinishedPromise
▸ getRepresentationFinishedPromise(): Promise‹void[]›
Inherited from RepresentationFactory.getRepresentationFinishedPromise
Defined in src/model/RepresentationFactory.ts:62
Returns: Promise‹void[]›
setCompositeModel
▸ setCompositeModel(compositeModel: CompositeModel): void
Inherited from RepresentationFactory.setCompositeModel
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
Inherited from RepresentationFactory.updateAssemblyRepresentations
Defined in src/model/RepresentationFactory.ts:53
Returns: boolean
updateAssemblyTransformations
▸ updateAssemblyTransformations(): boolean
Inherited from RepresentationFactory.updateAssemblyTransformations
Defined in src/model/RepresentationFactory.ts:39
Returns: boolean