DistanceMeasureModel
用于在3D场景中进行距离测量,支持多段线距离计算
关系
Implements
DistanceMeasureModel Implements IMeasurePartModel
实现接口: IMeasurePartModel
用于在3D场景中进行距离测量,支持多段线距离计算
构造函数
DistanceMeasureModel
构造函数
new DistanceMeasureModel(props)
参数
- props:
IMeasurePartModelProps模型属性
返回:DistanceMeasureModel DistanceMeasureModel对象
属性
graphicsLayer
绘图作用的几何图层
graphicsLayer: any
类型: any
labelPoint
标签点数组
labelPoint: Graphic
类型: Graphic
polyline
多段线几何
polyline: IPolyline
类型: IPolyline
props
模型属性
props: IMeasurePartModelProps
sectionDistances
分段距离数组
sectionDistances: number[] = []
类型: number[]
默认值:
totalDistance
总距离
totalDistance: number
类型: number
unit
测量单位
unit: Unit
类型: Unit
unitLabels
单位标签映射
unitLabels: object
类型: object
viewModel
Sketch实例
viewModel: any
类型: any
方法
addLabel
在对应点位置添加label
clear
清除测量结果
clear(): void
返回:void
drawLabelInfo
计算多边形的长度并绘制文本标签
start
开始距离测量
start(): void
返回:void

BIMFlux AI
