M3D / M3D / Reader / WorkerReader
Class: WorkerReader
Description
解析子线程返回数据的Reader类
Memberof
SView.Reader
Author
YW
Date
2022-1-17
Version
1.0
Hierarchy
-
↳
WorkerReader
Table of contents
Constructors
Properties
Methods
- addFile
- cancel
- cancle
- getAnimation
- getAnimationRes
- getAnnotation
- getAnnotations
- getAttribute
- getCenter
- getDecals
- getEdges
- getEntities
- getEntitiesFile
- getEvents
- getFaces
- getFile
- getFileId
- getGeometries
- getGeometryFeature
- getGeometryFeatures
- getGroups
- getHotSpot
- getHotSpots
- getHotspotRes
- getId
- getImages
- getIsRequesting
- getLocalModelViewContent
- getMaterialById
- getMaterials
- getMaxObjectId
- getMeasure
- getMeasures
- getMesh
- getMesh_1
- getModelBoard
- getModelBoards
- getModelProperties
- getModelViewContent
- getModelViewList
- getModels
- getPMIs
- getParentModel
- getProtoProperties
- getProtos
- getScene
- getSection
- getSections
- getServerModelViewContent
- getServerModelViewList
- getShapes
- getShapesFile
- getSignRes
- getThreeDGesture
- getThreeDGestures
- getTopModel
- getUrl
- isCancle
- isJson
- load
- onBegin
- onCancel
- onEnd
- onException
- onProgress
- onUpdata
- post
- registerEvent
- registerReaderEvent
- removeEvent
- send
- setFile
- setFileId
- setId
- setIsParseInfo
- setIsReferenceReader
- setParentModel
- setScene
- setSvlxFile
- setTopModel
- setUrl
- updata
- getMaxSvlxVersion
- getMinSvlxVersion
- parseData
Constructors
constructor
• new WorkerReader(options?
): WorkerReader
Parameters
Name | Type | Description |
---|---|---|
options? | any | 选项 |
Returns
Description
构造函数
Inherited from
Properties
center
• center: M3DMessageCenter
Inherited from
id
• id: number
Inherited from
parseMap
• parseMap: Map
<any
, any
>
Inherited from
count
▪ Static
count: number
Inherited from
parseWorker1
▪ Static
parseWorker1: any
Methods
addFile
▸ addFile(file
): void
Parameters
Name | Type | Description |
---|---|---|
file | any | 文件 |
Returns
void
Description
添加文件
Inherited from
cancel
▸ cancel(): void
Returns
void
Description
取消接口
Inherited from
cancle
▸ cancle(): void
Returns
void
Description
设置取消
Inherited from
getAnimation
▸ getAnimation(): Promise
<Map
<string
, string
>>
Returns
Promise
<Map
<string
, string
>>
动画数据字符串
Description
获取动画数据,数据格式为xml字符串
Inherited from
getAnimationRes
▸ getAnimationRes(): Promise
<Map
<string
, ArrayBuffer
>>
Returns
Promise
<Map
<string
, ArrayBuffer
>>
动画关联资源数据ArrayBuffer
Description
获取动画关联资源数据
Inherited from
LocalSvlxReader.getAnimationRes
getAnnotation
▸ getAnnotation(annotationId
): Promise
<Annotation
>
Parameters
Name | Type | Description |
---|---|---|
annotationId | number | 批注Id |
Returns
Promise
<Annotation
>
Annotation 批注对象
Description
根据id获取单个批注对象
Inherited from
getAnnotations
▸ getAnnotations(): Promise
<Map
<number
, Annotation
>>
Returns
Promise
<Map
<number
, Annotation
>>
批注对象 Map
Description
获取所有批注对象的Map
Inherited from
LocalSvlxReader.getAnnotations
getAttribute
▸ getAttribute(model
): Promise
<Map
<string
, Object
>>