yanchengPowerSupply/node_modules/mxdraw/dist/lib/MxModule/MxDbPolyline/index.d.ts

31 lines
1.0 KiB
TypeScript

import McGiWorldDraw from '../McGiWorldDraw';
import MxDbEntity from '../MxDbEntity';
import drawMxDbPolyline from './draw';
/**
* MxDbPolyline 多义线对象(多个点构成的线段)
*/
declare class MxDbPolyline extends MxDbEntity {
static cmd: string;
static draw: typeof drawMxDbPolyline;
/** 顶点位置集合 */
points: THREE.Vector3[];
getTypeName(): string;
worldDraw(pWorldDraw: McGiWorldDraw): void;
getGripPoints(): THREE.Vector3[];
moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
create(): MxDbEntity;
dwgIn(obj: any): boolean;
dwgOut(obj: any): object;
/** 添加顶点位置 */
addVertexAt(pt: THREE.Vector3): void;
/** 顶点数量 */
numVerts(): number;
getPointAt(index: number): THREE.Vector3 | null;
/** 设置顶点
* @param index 替换的顶点在当前points集合的下标位置
* @param pt 要替换设置的顶点
* */
setPointAt(index: number, pt: THREE.Vector3): boolean;
}
export default MxDbPolyline;