Class: ShapeSet
M3D.ShapeSet
Memberof
M3D
Implements
Utility.Subscriber
Implements
Utility.Publisher
Description
Shape对象管理类
Date
2022-1-17
Version
1.0
Copyright
All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd
Hierarchy
-
↳
ShapeSet
Implements
Table of contents
Constructors
Properties
Methods
- addShape
- addShapes
- clearShapes
- getBodyByObjectId
- getEvents
- getId
- getModelByPath
- getModelByProtoId
- getModelBySVLPath
- getMultiInstance
- getNonInstance
- getPMIByPMIId
- getProtoMap
- getScene
- getShape
- getShapeByObjectId
- getShapeByPlcPath
- getShapes
- load
- post
- registerEvent
- removeEvent
- removeShape
- removeShapes
- send
- setAllShapesVisible
- setId
- setScene
- unload
- update
- updateShape
Constructors
constructor
• new ShapeSet(scene
): ShapeSet
Parameters
Name | Type | Description |
---|---|---|
scene | Scene | 场景对象 |
Returns
Description
构造函数
Overrides
Properties
id
• id: number
Inherited from
count
▪ Static
count: number
Inherited from
Methods
addShape
▸ addShape(v
, immediately?
): boolean
Parameters
Name | Type | Description |
---|---|---|
v | Shape | Shape对象 |
immediately? | boolean | 是否需要立即添加 |
Returns
boolean
Description
添加可视化对象