M3D / M3D / Reader / GeometryFactory
Class: GeometryFactory
Memberof
SView.Reader
Description
几何工厂类
Author
nihy
Date
2022-1-20
Version
1.0
Hierarchy
-
↳
GeometryFactory
Table of contents
Constructors
Methods
Constructors
constructor
• new GeometryFactory(): GeometryFactory
Returns
Inherited from
Methods
createMObject
▸ createMObject<T
>(arg
): T
Type parameters
Name |
---|
T |
Parameters
Name | Type | Description |
---|---|---|
arg | T | 泛型 |
Returns
T
Description
创建对象
Inherited from
fromJson
▸ fromJson(geo
, scene
, version?
): Shape
Parameters
Name | Type | Description |
---|---|---|
geo | any | - |
scene | Scene | 场景 |
version? | string | 版本 |
Returns
生成的shape对象
Static
Description
根据JSON数据生成shape对象
getMaxObjectId
▸ getMaxObjectId(geoJsonArray
): number
Parameters
Name | Type | Description |
---|---|---|
geoJsonArray | any | 批注json数组 |
Returns
number
获取几何对象ID的最大值
Static
Description
获取最大objectId