M3D / M3D / Reader / PaintBrushFactory
Class: PaintBrushFactory
Memberof
SView.Reader
Description
手绘批注工厂类
Author
nihy
Date
2022-1-20
Version
1.0
Hierarchy
-
↳
PaintBrushFactory
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new PaintBrushFactory(): PaintBrushFactory
Returns
Inherited from
Properties
Serializer_XML_Element_Attributes
▪ Static Serializer_XML_Element_Attributes: string = "attributes"
Methods
createMObject
▸ createMObject<T>(arg): T
Type parameters
| Name |
|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
arg | T | 泛型 |
Returns
T
Description
创建对象
Inherited from
threeGestureNoteFromJson
▸ threeGestureNoteFromJson(noteJson, scene): ThreeDGesturesNote
Parameters
| Name | Type | Description |
|---|---|---|
noteJson | string | 批注内容 |
scene | Scene | 场景 |
Returns
手绘对象
Static
Description
根据手绘内容JSON数据生成手绘对象
threeGestureNoteToJson
▸ threeGestureNoteToJson(shape): string
Parameters
| Name | Type | Description |
|---|---|---|
shape | ThreeDGesturesNote | 手绘对象 |
Returns
string
手绘对象对应的Json串
Static
Description
根据手绘对象列表生成JSON数据