mxcad API 文档 / 3d / MxCAD3DObject
Class: MxCAD3DObject
3d.MxCAD3DObject
Table of contents
Constructors
Properties
Methods
- callEvent
- create
- getCtx
- getDocument
- getImp
- getModelCounts
- init
- off
- on
- open3DFile
- setProjectionType
- showCenterTrihedron
- update
- updateCanvasSize
Constructors
constructor
• new MxCAD3DObject()
Properties
canvas
• Private
canvas: null
| HTMLCanvasElement
= null
ctx
• Private
ctx: null
| WebGLRenderingContext
| WebGL2RenderingContext
= null
event
• Private
event: any
= {}
imp
• Private
imp: any
updateCanvasSizeFun
• Private
updateCanvasSizeFun: null
| () => void
= null
Methods
callEvent
▸ callEvent(sEventName
, param?
): boolean
Parameters
Name | Type |
---|---|
sEventName | string |
param? | any |
Returns
boolean
create
▸ create(config
): void
Parameters
Name | Type |
---|---|
config | MxCAD3DConfig |
Returns
void
getCtx
▸ getCtx(): any
Returns
any
getDocument
▸ getDocument(): MxNewMx3dDbDocument
Returns
getImp
▸ getImp(): any
Returns
any
getModelCounts
▸ getModelCounts(): number
Returns
number
init
▸ init(imp
): void
Parameters
Name | Type |
---|---|
imp | any |
Returns
void
off
▸ off(name
, fun?
): void
Parameters
Name | Type |
---|---|
name | string |
fun? | Function |
Returns
void
on
▸ on(name
, fun
): void
Parameters
Name | Type |
---|---|
name | "init" |
fun | () => void |
Returns
void
open3DFile
▸ open3DFile(file
): void
Parameters
Name | Type |
---|---|
file | File |
Returns
void
setProjectionType
▸ setProjectionType(theProjection
): void
Parameters
Name | Type |
---|---|
theProjection | MxCameraProjection |
Returns
void
showCenterTrihedron
▸ showCenterTrihedron(theToShow
): void
Parameters
Name | Type |
---|---|
theToShow | boolean |
Returns
void
update
▸ update(isUpAllData
): void
Parameters
Name | Type |
---|---|
isUpAllData | boolean |
Returns
void
updateCanvasSize
▸ updateCanvasSize(): void
Returns
void