Methods
drawCircle
- drawCircle(cen: Vector3, dRadius: number): void
Parameters
cen: Vector3
dRadius: number
Returns void
drawEntity
- drawEntity(ent: Object3D): void
drawGeometryLines
- drawGeometryLines(geometry: Geometry): 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[] | Vector2[]): void
Parameters
points: Vector3[] | Vector2[]
Returns 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, width?: number, callGetFontStyle?: ((iFontSize: number) => string)): null | Sprite
Parameters
sText: string
iSize: number
dAngle: number
pt: Vector3
Optional width: number
Optional callGetFontStyle: ((iFontSize: number) => string)
- (iFontSize: number): string
Returns null | Sprite
getLineWidthIsPixels
- getLineWidthIsPixels(): boolean
getMatrix
- getMatrix(): null | Matrix4
isDashLineDisplay
- isDashLineDisplay(): boolean
setDash
- setDash(dDashArray: number, dDashRatio: number): void
Parameters
dDashArray: number
dDashRatio: number
Returns void
setDashLineDisplay
- setDashLineDisplay(isDashLine: boolean): void
setLineWidth
- setLineWidth(iLineWidth: number): void
setLineWidthByPixels
- setLineWidthByPixels(isPixels: boolean): void
setMatrix
- setMatrix(matrix: null | Matrix4): void
setOpacity
- setOpacity(opacity: number): void
setRenderOrder
- setRenderOrder(iRenderOrder: number): void
setXData
- setXData(xData: any): void
McGiWorldDraw 用于构建一个动态绘制回调对象的规范接口
是 必须实现的抽象回调方法中的回调对象 通过回调对象完成一些动态绘制任务