跳到主要内容
版本:v10.0

M3D / M3D / Reader / PaintBrushFactory

Class: PaintBrushFactory

M3D.Reader.PaintBrushFactory

Memberof

SView.Reader

Description

手绘批注工厂类

Author

nihy

Date

2022-1-20

Version

1.0

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new PaintBrushFactory(): PaintBrushFactory

Returns

PaintBrushFactory

Inherited from

MObjectFactory.constructor

Properties

Serializer_XML_Element_Attributes

Static Serializer_XML_Element_Attributes: string = "attributes"

Methods

createMObject

createMObject<T>(arg): T

Type parameters

Name
T

Parameters

NameTypeDescription
argT泛型

Returns

T

Description

创建对象

Inherited from

MObjectFactory.createMObject


threeGestureNoteFromJson

threeGestureNoteFromJson(noteJson, scene): ThreeDGesturesNote

Parameters

NameTypeDescription
noteJsonstring批注内容
sceneScene场景

Returns

ThreeDGesturesNote

手绘对象

Static

Description

根据手绘内容JSON数据生成手绘对象


threeGestureNoteToJson

threeGestureNoteToJson(shape): string

Parameters

NameTypeDescription
shapeThreeDGesturesNote手绘对象

Returns

string

手绘对象对应的Json串

Static

Description

根据手绘对象列表生成JSON数据