You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
976 B
40 lines
976 B
import type Viewport from '@/core/engine/Viewport.ts'
|
|
import BaseRenderer from '@/core/base/BaseRenderer.ts'
|
|
|
|
/**
|
|
* 辅助测量工具渲染器
|
|
*/
|
|
export default class MeasureRenderer extends BaseRenderer {
|
|
|
|
// 开始更新, 可能暂停动画循环对本渲染器的动画等
|
|
beginUpdate(viewport: Viewport) {
|
|
}
|
|
|
|
// 创建一个点
|
|
createPoint(item: ItemJson, option?: RendererCudOption) {
|
|
}
|
|
|
|
// 删除一个点
|
|
deletePoint(id, option?: RendererCudOption) {
|
|
}
|
|
|
|
// 更新一个点
|
|
updatePoint(item: ItemJson, option?: RendererCudOption) {
|
|
}
|
|
|
|
// 创建一根线
|
|
createLine(start: ItemJson, end: ItemJson, type: LinkType, option?: RendererCudOption) {
|
|
}
|
|
|
|
// 更新一根线
|
|
updateLine(start: ItemJson, end: ItemJson, type: LinkType, option?: RendererCudOption) {
|
|
}
|
|
|
|
// 删除一根线
|
|
deleteLine(start: ItemJson, end: ItemJson, type: LinkType, option?: RendererCudOption) {
|
|
}
|
|
|
|
// 结束更新
|
|
endUpdate(viewport: Viewport) {
|
|
}
|
|
}
|