AnnotationToolbar
类:批注工具栏
Constructor
new Glodon.Bimface.Plugins.Annotation.AnnotationToolbar(annotationToolbarConfig)
构造批注工具栏对象的方法
Parameters:
| Name | Type | Description |
|---|---|---|
| annotationToolbarConfig | Glodon.Bimface.Plugins.Annotation.AnnotationToolbarConfig | 构造批注工具栏的配置项 |
Methods
addEventListener(eventName, handler)
增加监听事件
Parameters:
| Name | Type | Description |
|---|---|---|
| eventName | Glodon.Bimface.Plugins.Annotation.AnnotationToolbarEvent | 批注工具栏的点击事件 |
| handler | Function | 触发点击事件执行的函数 |
exit()
退出批注绘制
getAnnotationManager()
获取批注管理器
Returns:
| Type | Description |
|---|---|
| Glodon.Bimface.Plugins.Annotation.AnnotationManager | 批注管理器 |
removeEventListener(eventName, handler)
移除监听事件
Parameters:
| Name | Type | Description |
|---|---|---|
| eventName | Glodon.Bimface.Plugins.Annotation.AnnotationToolbarEvent | 批注工具栏的点击事件 |
| handler | Function | 触发点击事件执行的函数 |
show()
显示批注工具栏