35 lines
994 B
TypeScript
35 lines
994 B
TypeScript
import McGiWorldDraw from '../McGiWorldDraw';
|
|
import MxDbEntity from '../MxDbEntity';
|
|
import draw from './draw';
|
|
/**
|
|
* MxDbLine 直线对象.
|
|
*/
|
|
declare class MxDbLine extends MxDbEntity {
|
|
static cmd: string;
|
|
static draw: typeof draw;
|
|
/** 直线的开始点 */
|
|
pt1: THREE.Vector3;
|
|
/** 直线的结束点 */
|
|
pt2: THREE.Vector3;
|
|
getTypeName(): string;
|
|
worldDraw(pWorldDraw: McGiWorldDraw): void;
|
|
/** 设置的开始点 */
|
|
setPoint1(pt1: THREE.Vector3): void;
|
|
getPoint1(): THREE.Vector3;
|
|
/** 设置的结束点 */
|
|
setPoint2(pt2: THREE.Vector3): void;
|
|
getPoint2(): THREE.Vector3;
|
|
getGripPoints(): Array<THREE.Vector3>;
|
|
moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
|
|
dwgIn(obj: any): boolean;
|
|
dwgOut(obj: any): object;
|
|
create(): MxDbEntity;
|
|
getGeomExtents(): THREE.Box3 | null;
|
|
/**
|
|
* 返回曲线长度.
|
|
* @returns number
|
|
*/
|
|
getGetLength(): number;
|
|
}
|
|
export default MxDbLine;
|