Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MxDrawObjectType

Hierarchy

  • MxDrawObjectType

Index

Properties

renderer: WebGLRenderer

Methods

  • addEvent(arg0: string, arg1: ((...parmes: any) => any)): void
  • Parameters

    • arg0: string
    • arg1: ((...parmes: any) => any)
        • (...parmes: any): any
        • Parameters

          • Rest ...parmes: any

          Returns any

    Returns void

  • addMxCurrentSelect(id: number): void
  • Parameters

    • id: number

    Returns void

  • addMxEntity(ent: any): number
  • Parameters

    • ent: any

    Returns number

  • addObject(obj: null | Object3D, isAddToSelect?: boolean): void
  • Parameters

    • obj: null | Object3D
    • Optional isAddToSelect: boolean

    Returns void

  • addViewObject(obj: Object3D): void
  • Parameters

    • obj: Object3D

    Returns void

  • clearMxCurrentSelect(): boolean
  • Returns boolean

  • createCanvasImageData(fun: ((imageData: string) => void), param?: object): void
  • Parameters

    • fun: ((imageData: string) => void)
        • (imageData: string): void
        • Parameters

          • imageData: string

          Returns void

    • Optional param: object

    Returns void

  • docCoord2Screen(x: number, y: number, z: number): Vector3
  • Parameters

    • x: number
    • y: number
    • z: number

    Returns Vector3

  • docCoord2World(x: number, y: number, z: number): Vector3
  • Parameters

    • x: number
    • y: number
    • z: number

    Returns Vector3

  • docCoordLong2Screen(l: number): number
  • Parameters

    • l: number

    Returns number

  • docCoordLong2World(l: number): number
  • Parameters

    • l: number

    Returns number

  • enablePan(isEnable: boolean): void
  • Parameters

    • isEnable: boolean

    Returns void

  • enableZoom(isEnable: boolean): void
  • Parameters

    • isEnable: boolean

    Returns void

  • eraseAllMxEntity(): void
  • Returns void

  • eraseMxEntity(id: number): boolean
  • Parameters

    • id: number

    Returns boolean

  • findMxEntityAtPoint(ptMouse: Vector3, isDocCoord?: boolean, retWordDrawXDataCall?: ((id: number, data: any) => void)): MxDbEntity[]
  • Parameters

    • ptMouse: Vector3
    • Optional isDocCoord: boolean
    • Optional retWordDrawXDataCall: ((id: number, data: any) => void)
        • (id: number, data: any): void
        • Parameters

          • id: number
          • data: any

          Returns void

    Returns MxDbEntity[]

  • getCamera(): Camera
  • Returns Camera

  • getCanvas(): HTMLCanvasElement
  • Returns HTMLCanvasElement

  • getFullDisplayRange(): object
  • Returns object

  • getIntersectObjects(ptMouse: Vector2): Intersection[]
  • Parameters

    • ptMouse: Vector2

    Returns Intersection[]

  • getMxAllSelect(): number[]
  • Returns number[]

  • getScene(): Scene
  • Returns Scene

  • getViewCenterDocCoord(): Vector3
  • Returns Vector3

  • getViewHeight(): number
  • Returns number

  • getViewWidth(): number
  • Returns number

  • initRendererParam(param: object): void
  • Parameters

    • param: object

    Returns void

  • initZoomW(pt1Doc: Vector3, pt2Doc: Vector3): void
  • Parameters

    • pt1Doc: Vector3
    • pt2Doc: Vector3

    Returns void

  • loadMxEntityFromJson(dataString: object): Promise<boolean>
  • Parameters

    • dataString: object

    Returns Promise<boolean>

  • makeCurrent(): void
  • Returns void

  • removeObject(obj: Object3D, isRemoveSelectObject?: boolean): void
  • Parameters

    • obj: Object3D
    • Optional isRemoveSelectObject: boolean

    Returns void

  • removeViewObject(obj: Object3D): void
  • Parameters

    • obj: Object3D

    Returns void

  • resetThreeJSControls(): void
  • Returns void

  • saveMxEntityToJson(isSaveToDWG?: boolean): object
  • Parameters

    • Optional isSaveToDWG: boolean

    Returns object

  • screenCoord2Doc(x: number, y: number, z: number): Vector3
  • Parameters

    • x: number
    • y: number
    • z: number

    Returns Vector3

  • screenCoord2World(x: number, y: number, z?: number): Vector3
  • Parameters

    • x: number
    • y: number
    • Optional z: number

    Returns Vector3

  • screenCoordLong2Doc(l: number): number
  • Parameters

    • l: number

    Returns number

  • screenCoordLong2World(l: number): number
  • Parameters

    • l: number

    Returns number

  • setMouseMiddlePan(isPan: number | boolean): void
  • Parameters

    • isPan: number | boolean

    Returns void

  • setMouseRightRotate(isRotate: boolean): void
  • Parameters

    • isRotate: boolean

    Returns void

  • setSize(width: number, height: number): void
  • Parameters

    • width: number
    • height: number

    Returns void

  • setViewColor(color: number): void
  • Parameters

    • color: number

    Returns void

  • updateCanvasSize(): void
  • Returns void

  • updateDisplay(): void
  • Returns void

  • worldCoord2Doc(x: number, y: number, z: number): Vector3
  • Parameters

    • x: number
    • y: number
    • z: number

    Returns Vector3

  • worldCoord2Screen(x: number, y: number, z: number): Vector3
  • Parameters

    • x: number
    • y: number
    • z: number

    Returns Vector3

  • worldCoordLong2Doc(l: number): number
  • Parameters

    • l: number

    Returns number

  • worldCoordLong2Screen(l: number): number
  • Parameters

    • l: number

    Returns number

  • zoomCenter(dCenX: number, dCenY: number): void
  • Parameters

    • dCenX: number
    • dCenY: number

    Returns void

  • zoomInitialStates(): void
  • Returns void

  • zoomScale(scale: number): void
  • Parameters

    • scale: number

    Returns void

  • zoomW(minPt: Vector3, maxPt: Vector3, isWorld?: boolean): void
  • Parameters

    • minPt: Vector3
    • maxPt: Vector3
    • Optional isWorld: boolean

    Returns void