Skip to content
On this page

mxcad API 文档 / 3d / MxCAD3DObject

Class: MxCAD3DObject

3d.MxCAD3DObject

Table of contents

Constructors

Properties

Methods

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

NameType
sEventNamestring
param?any

Returns

boolean


create

create(config): void

Parameters

NameType
configMxCAD3DConfig

Returns

void


getCtx

getCtx(): any

Returns

any


getDocument

getDocument(): MxNewMx3dDbDocument

Returns

MxNewMx3dDbDocument


getImp

getImp(): any

Returns

any


getModelCounts

getModelCounts(): number

Returns

number


init

init(imp): void

Parameters

NameType
impany

Returns

void


off

off(name, fun?): void

Parameters

NameType
namestring
fun?Function

Returns

void


on

on(name, fun): void

Parameters

NameType
name"init"
fun() => void

Returns

void


open3DFile

open3DFile(file): void

Parameters

NameType
fileFile

Returns

void


setProjectionType

setProjectionType(theProjection): void

Parameters

NameType
theProjectionMxCameraProjection

Returns

void


showCenterTrihedron

showCenterTrihedron(theToShow): void

Parameters

NameType
theToShowboolean

Returns

void


update

update(isUpAllData): void

Parameters

NameType
isUpAllDataboolean

Returns

void


updateCanvasSize

updateCanvasSize(): void

Returns

void