Methods
drawCircle
- drawCircle(cen: Vector3, dRadius: number): void
Parameters
cen: Vector3
dRadius: number
Returns void
drawEntity
- drawEntity(ent: Object3D): void
drawLine
- drawLine(pt1: number | Vector3, pt2: number | Vector3, x2?: number, y2?: number): void
Parameters
pt1: number | Vector3
pt2: number | Vector3
Optional x2: number
Optional y2: number
Returns void
drawLines
- drawLines(points: Vector3[]): void
drawSelectLine
- drawSelectLine(pt1: number | Vector3, pt2: number | Vector3, x2?: number, y2?: number): void
Parameters
pt1: number | Vector3
pt2: number | Vector3
Optional x2: number
Optional y2: number
Returns void
drawSolid
- drawSolid(points: Vector3[]): void
drawText
- drawText(sText: string, iSize: number, dAngle: number, pt: Vector3): null | Sprite
Parameters
sText: string
iSize: number
dAngle: number
pt: Vector3
Returns null | Sprite
getLineWidthIsPixels
- getLineWidthIsPixels(): boolean
isDashLineDisplay
- isDashLineDisplay(): boolean
setColor
- setColor(iColor: string | number | Color): void
Parameters
iColor: string | number | Color
Returns void
setDash
- setDash(dDashArray: number, dDashRatio: number): void
Parameters
dDashArray: number
dDashRatio: number
Returns void
setDashLineDisplay
- setDashLineDisplay(isDashLine: boolean): void
setLineWidth
- setLineWidth(iLineWidth: number): void
setLineWidthIsPixels
- setLineWidthIsPixels(isPixels: boolean): void
setOpacity
- setOpacity(opacity: number): void
setRenderOrder
- setRenderOrder(iRenderOrder: number): void
McGiWorldDraw 用于构建一个动态绘制回调对象的规范接口
是 必须实现的抽象回调方法中的回调对象 通过回调对象完成一些动态绘制任务