Signature:
export default class SelectModel extends Tool Extends: Tool
| Constructor | Description |
|---|---|
| (constructor)(viewer) | Constructs a new instance of the SelectModel class |
| Property | Modifiers | Description |
|---|---|---|
| boundingBoxEnabled | ||
| currentHoveredModel | ||
| currentPosition | ||
| currentSelectedModel |
| Method | Description |
|---|---|
| pickModelById(modelId) | 根据模型id选中模型,传入空值则取消选择 |
| pickModelByMouseCoordinate(x, y) | 根据鼠标在canvas上的坐标获取模型 |
| updateBoundingBox() | 更新boundingBox,当其他操作更新模型位姿时,需要调用,如gizmo操作或者model接口设置模型位姿 |