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

M3D / M3D / Reader / GeometryFactory

Class: GeometryFactory

M3D.Reader.GeometryFactory

Memberof

SView.Reader

Description

几何工厂类

Author

nihy

Date

2022-1-20

Version

1.0

Hierarchy

Table of contents

Constructors

Methods

Constructors

constructor

new GeometryFactory(): GeometryFactory

Returns

GeometryFactory

Inherited from

MObjectFactory.constructor

Methods

createMObject

createMObject<T>(arg): T

Type parameters

Name
T

Parameters

NameTypeDescription
argT泛型

Returns

T

Description

创建对象

Inherited from

MObjectFactory.createMObject


fromJson

fromJson(geo, scene, version?): Shape

Parameters

NameTypeDescription
geoany-
sceneScene场景
version?string版本

Returns

Shape

生成的shape对象

Static

Description

根据JSON数据生成shape对象


getMaxObjectId

getMaxObjectId(geoJsonArray): number

Parameters

NameTypeDescription
geoJsonArrayany批注json数组

Returns

number

获取几何对象ID的最大值

Static

Description

获取最大objectId