指南
- 开始
- 指南
- 基础绘图
- 交互绘图
- 图纸编辑
- 数据库
- 最佳实践
MxCAD API 文档
- 类
- 2d.Color
- 2d.McAppType
- 2d.McCmColor
- 2d.McDbAlignedDimension
- 2d.McDbArc
- 2d.McDbAttribute
- 2d.McDbAttributeDefinition
- 2d.McDbBlockReference
- 2d.McDbBlockTable
- 2d.McDbBlockTableRecord
- 2d.McDbCircle
- 2d.McDbCurve
- 2d.McDbDatabase
- 2d.McDbDimension
- 2d.McDbEllipse
- 2d.McDbEntity
- 2d.McDbHatch
- 2d.McDbLayerTable
- 2d.McDbLayerTableRecord
- 2d.McDbLine
- 2d.McDbLinetypeTable
- 2d.McDbLinetypeTableRecord
- 2d.McDbMText
- 2d.McDbObject
- 2d.McDbObjectArray
- 2d.McDbPoint
- 2d.McDbPolyline
- 2d.McDbProxyEntity
- 2d.McDbRasterImage
- 2d.McDbRasterImageDef
- 2d.McDbRotatedDimension
- 2d.McDbText
- 2d.McDbTextStyleTable
- 2d.McDbTextStyleTableRecord
- 2d.McGeLongArray
- 2d.McGeMatrix3d
- 2d.McGePoint3d
- 2d.McGePoint3dArray
- 2d.McGeStringArray
- 2d.McGeVector3d
- 2d.McObject
- 2d.McObjectId
- 2d.McRxObject
- 2d.MdGeDoubleArray
- 2d.MxCADResbuf
- 2d.MxCADSelectionSet
- 2d.MxCADUiPrAngle
- 2d.MxCADUiPrBase
- 2d.MxCADUiPrDist
- 2d.MxCADUiPrEntity
- 2d.MxCADUiPrInt
- 2d.MxCADUiPrKeyWord
- 2d.MxCADUiPrPoint
- 2d.MxCADUiPrString
- 2d.MxCADUtilityClass
- 2d.MxCppType
- 2d.MxPropertiesWindowCustom
- 2d.MxPropertiesWindowCustomValue
- 2d.ObjectInheritance
- 3d.MdGeAngleDim
- 3d.MdGeArray1OfInteger
- 3d.MdGeArray1OfPnt
- 3d.MdGeArray1OfReal
- 3d.MdGeArray2OfPnt
- 3d.MdGeArray2OfReal
- 3d.MdGeArrowAspect
- 3d.MdGeAxis
- 3d.MdGeBezierCurve
- 3d.MdGeBezierSurface
- 3d.MdGeBox
- 3d.MdGeBRep
- 3d.MdGeBSplineCurve
- 3d.MdGeBSplineSurface
- 3d.MdGeChamfer
- 3d.MdGeCircle
- 3d.MdGeColor
- 3d.MdGeCompound
- 3d.MdGeCompSolid
- 3d.MdGeCone
- 3d.MdGeCSYS
- 3d.MdGeCSYSR
- 3d.MdGeCylinder
- 3d.MdGeDiameterDim
- 3d.MdGeDimAspect
- 3d.MdGeDir
- 3d.MdGeEdge
- 3d.MdGeEllipse
- 3d.MdGeExplorer
- 3d.MdGeFace
- 3d.MdGeFillet
- 3d.MdGeHGeomPlane
- 3d.MdGeHGeomSurface
- 3d.MdGeHypr
- 3d.MdGeInterpolateBSpl
- 3d.MdGeLengthDim
- 3d.MdGeLight
- 3d.MdGeLine
- 3d.MdGeLineAspect
- 3d.MdGeListIteratorOfListOfShape
- 3d.MdGeListOfShape
- 3d.MdGeLoft
- 3d.MdGeMakeArcOfCircle
- 3d.MdGeMakeFace
- 3d.MdGeMakeThickSolid
- 3d.MdGeMakeWires
- 3d.MdGeMat
- 3d.MdGeMaterialAspect
- 3d.MdGeObject
- 3d.MdGeParab
- 3d.MdGePipe
- 3d.MdGePlane
- 3d.MdGePoint
- 3d.MdGePointsToBSpl
- 3d.MdGePointsToBSplSurface
- 3d.MdGePrism
- 3d.MdGeRadiusDim
- 3d.MdGeRect
- 3d.MdGeRevol
- 3d.MdGeSequenceIteratorOfSequenceOfShape
- 3d.MdGeSequenceOfShape
- 3d.MdGeShape
- 3d.MdGeShell
- 3d.MdGeSolid
- 3d.MdGeSphere
- 3d.MdGeText
- 3d.MdGeTextAspect
- 3d.MdGeTextLabel
- 3d.MdGeTopo
- 3d.MdGeTorus
- 3d.MdGeTransform
- 3d.MdGeTrsf
- 3d.MdGeVec
- 3d.MdGeVertex
- 3d.MdGeWedge
- 3d.MdGeWire
- 3d.MdGeXYZ
- 3d.MxDraw3d
- Color
- McAppType
- McCmColor
- McDbAlignedDimension
- McDbArc
- McDbAttribute
- McDbAttributeDefinition
- McDbBlockReference
- McDbBlockTable
- McDbBlockTableRecord
- McDbCircle
- McDbCurve
- McDbDatabase
- McDbDimension
- McDbEllipse
- McDbEntity
- McDbHatch
- McDbLayerTable
- McDbLayerTableRecord
- McDbLine
- McDbLinetypeTable
- McDbLinetypeTableRecord
- McDbMText
- McDbObject
- McDbObjectArray
- McDbPoint
- McDbPolyline
- McDbProxyEntity
- McDbRasterImage
- McDbRasterImageDef
- McDbRotatedDimension
- McDbText
- McDbTextStyleTable
- McDbTextStyleTableRecord
- McGeLongArray
- McGeMatrix3d
- McGePoint3d
- McGePoint3dArray
- McGeStringArray
- McGeVector3d
- McObject
- McObjectId
- McRxObject
- MdGeAngleDim
- MdGeArray1OfInteger
- MdGeArray1OfPnt
- MdGeArray1OfReal
- MdGeArray2OfPnt
- MdGeArray2OfReal
- MdGeArrowAspect
- MdGeAxis
- MdGeBezierCurve
- MdGeBezierSurface
- MdGeBox
- MdGeBRep
- MdGeBSplineCurve
- MdGeBSplineSurface
- MdGeChamfer
- MdGeCircle
- MdGeColor
- MdGeCompound
- MdGeCompSolid
- MdGeCone
- MdGeCSYS
- MdGeCSYSR
- MdGeCylinder
- MdGeDiameterDim
- MdGeDimAspect
- MdGeDir
- MdGeDoubleArray
- MdGeEdge
- MdGeEllipse
- MdGeExplorer
- MdGeFace
- MdGeFillet
- MdGeHGeomPlane
- MdGeHGeomSurface
- MdGeHypr
- MdGeInterpolateBSpl
- MdGeLengthDim
- MdGeLight
- MdGeLine
- MdGeLineAspect
- MdGeListIteratorOfListOfShape
- MdGeListOfShape
- MdGeLoft
- MdGeMakeArcOfCircle
- MdGeMakeFace
- MdGeMakeThickSolid
- MdGeMakeWires
- MdGeMat
- MdGeMaterialAspect
- MdGeObject
- MdGeParab
- MdGePipe
- MdGePlane
- MdGePoint
- MdGePointsToBSpl
- MdGePointsToBSplSurface
- MdGePrism
- MdGeRadiusDim
- MdGeRect
- MdGeRevol
- MdGeSequenceIteratorOfSequenceOfShape
- MdGeSequenceOfShape
- MdGeShape
- MdGeShell
- MdGeSolid
- MdGeSphere
- MdGeText
- MdGeTextAspect
- MdGeTextLabel
- MdGeTopo
- MdGeTorus
- MdGeTransform
- MdGeTrsf
- MdGeVec
- MdGeVertex
- MdGeWedge
- MdGeWire
- MdGeXYZ
- MxCADResbuf
- MxCADSelectionSet
- MxCADUiPrAngle
- MxCADUiPrBase
- MxCADUiPrDist
- MxCADUiPrEntity
- MxCADUiPrInt
- MxCADUiPrKeyWord
- MxCADUiPrPoint
- MxCADUiPrString
- MxCADUtilityClass
- MxCppType
- MxDraw3d
- MxPropertiesWindowCustom
- MxPropertiesWindowCustomValue
- ObjectInheritance
- 2d.ColorIndexType
- 2d.ColorMethod
- 2d.FetchAttributes
- 2d.McDb.AttachmentPoint
- 2d.McDb.ClipBoundaryType
- 2d.McDb.HatchEdgeType
- 2d.McDb.HatchLoopType
- 2d.McDb.HatchPatternType
- 2d.McDb.HatchStyle
- 2d.McDb.Intersect
- 2d.McDb.LineWeight
- 2d.McDb.TextHorzMode
- 2d.McDb.TextVertMode
- 2d.McObjectIdType
- 2d.MxCADResbufDataType
- 2d.MxCADSelectionSetStatus
- 2d.MxPropertiesWindowCustomValueType
- 3d.MdGe.MxCameraProjection
- 3d.MdGe.MxCF3dFilletShapeEnum
- 3d.MdGe.MxCFDSChamfMode
- 3d.MdGe.MxDimensionArrowOrientation
- 3d.MdGe.MxDimensionTextHorizontalPosition
- 3d.MdGe.MxDimensionTextVerticalPosition
- 3d.MdGe.MxDisplayMode
- 3d.MdGe.MxFontAspect
- 3d.MdGe.MxGAJoinTypeEnum
- 3d.MdGe.MxGAShapeEnum
- 3d.MdGe.MxGFTrihedron
- 3d.MdGe.MxHorizontalTextAlignment
- 3d.MdGe.MxKindOfDimension
- 3d.MdGe.MxNameOfColor
- 3d.MdGe.MxNameOfMaterial
- 3d.MdGe.MxOffsetModeEnum
- 3d.MdGe.MxShapeEnum
- 3d.MdGe.MxTextPath
- 3d.MdGe.MxTypeOfAngle
- 3d.MdGe.MxTypeOfAngleArrowVisibility
- 3d.MdGe.MxTypeOfColor
- 3d.MdGe.MxTypeOfDisplayText
- 3d.MdGe.MxTypeOfLightSource
- 3d.MdGe.MxTypeOfLine
- 3d.MdGe.MxTypeOfMaterial
- 3d.MdGe.MxTypeOfReflection
- 3d.MdGe.MxV3dTypeOfOrientation
- 3d.MdGe.MxVerticalTextAlignment
- 枚举
- ColorIndexType
- ColorMethod
- FetchAttributes
- McDb.AttachmentPoint
- McDb.ClipBoundaryType
- McDb.HatchEdgeType
- McDb.HatchLoopType
- McDb.HatchPatternType
- McDb.HatchStyle
- McDb.Intersect
- McDb.LineWeight
- McDb.TextHorzMode
- McDb.TextVertMode
- McObjectIdType
- MdGe.MxCameraProjection
- MdGe.MxCF3dFilletShapeEnum
- MdGe.MxCFDSChamfMode
- MdGe.MxDimensionArrowOrientation
- MdGe.MxDimensionTextHorizontalPosition
- MdGe.MxDimensionTextVerticalPosition
- MdGe.MxDisplayMode
- MdGe.MxFontAspect
- MdGe.MxGAJoinTypeEnum
- MdGe.MxGAShapeEnum
- MdGe.MxGFTrihedron
- MdGe.MxHorizontalTextAlignment
- MdGe.MxKindOfDimension
- MdGe.MxNameOfColor
- MdGe.MxNameOfMaterial
- MdGe.MxOffsetModeEnum
- MdGe.MxShapeEnum
- MdGe.MxTextPath
- MdGe.MxTypeOfAngle
- MdGe.MxTypeOfAngleArrowVisibility
- MdGe.MxTypeOfColor
- MdGe.MxTypeOfDisplayText
- MdGe.MxTypeOfLightSource
- MdGe.MxTypeOfLine
- MdGe.MxTypeOfMaterial
- MdGe.MxTypeOfReflection
- MdGe.MxV3dTypeOfOrientation
- MdGe.MxVerticalTextAlignment
- MxCADResbufDataType
- MxCADSelectionSetStatus
- MxPropertiesWindowCustomValueType
- 2d.MxCadConfig
- 2d.MxCADUI
- 3d.MxDraw3dConfig
- 3d.WasmConfig
- 接口
- 模块
MxDraw3d
mxcad API 文档 / MxDraw3d
Class: MxDraw3d
MxDraw3d的构造函数参数 的可配置选项
Hierarchy
default
<{eventAddToTree
: (node
:string
) =>void
;eventFileSave
: (fileName
:string
) =>void
;eventModesSelected
: (ids
:number
[]) =>void
;eventRebuildTree
: (tree_str
:string
) =>void
;eventRemoveFromTree
: (ids
:number
[]) =>void
}>↳
MxDraw3d
Implements
Indexable
▪ [x: string
]: any
Table of contents
Constructors
Properties
- HEAPU8
- MdGeAngleDim
- MdGeArray1OfInteger
- MdGeArray1OfPnt
- MdGeArray1OfReal
- MdGeArray2OfPnt
- MdGeArray2OfReal
- MdGeArrowAspect
- MdGeAxis
- MdGeBRep
- MdGeBSplineCurve
- MdGeBSplineSurface
- MdGeBezierCurve
- MdGeBezierSurface
- MdGeBox
- MdGeCSYS
- MdGeCSYSR
- MdGeChamfer
- MdGeCircle
- MdGeColor
- MdGeCompSolid
- MdGeCompound
- MdGeCone
- MdGeCylinder
- MdGeDiameterDim
- MdGeDimAspect
- MdGeDir
- MdGeEdge
- MdGeEllipse
- MdGeExplorer
- MdGeFace
- MdGeFillet
- MdGeHGeomPlane
- MdGeHGeomSurface
- MdGeHypr
- MdGeInterpolateBSpl
- MdGeLengthDim
- MdGeLight
- MdGeLine
- MdGeLineAspect
- MdGeListIteratorOfListOfShape
- MdGeListOfShape
- MdGeLoft
- MdGeMakeArcOfCircle
- MdGeMakeFace
- MdGeMakeThickSolid
- MdGeMakeWires
- MdGeMat
- MdGeMaterialAspect
- MdGeObject
- MdGeParab
- MdGePipe
- MdGePlane
- MdGePoint
- MdGePointsToBSpl
- MdGePointsToBSplSurface
- MdGePrism
- MdGeRadiusDim
- MdGeRect
- MdGeRevol
- MdGeSequenceIteratorOfSequenceOfShape
- MdGeSequenceOfShape
- MdGeShape
- MdGeShell
- MdGeSolid
- MdGeSphere
- MdGeText
- MdGeTextAspect
- MdGeTextLabel
- MdGeTopo
- MdGeTorus
- MdGeTransform
- MdGeTrsf
- MdGeVec
- MdGeVertex
- MdGeWedge
- MdGeWire
- MdGeXYZ
- MxCF3dFilletShapeEnum
- MxCFDSChamfMode
- MxDimensionArrowOrientation
- MxDimensionTextHorizontalPosition
- MxDimensionTextVerticalPosition
- MxDisplayMode
- MxFontAspect
- MxGAJoinTypeEnum
- MxGAShapeEnum
- MxGFTrihedron
- MxHorizontalTextAlignment
- MxKindOfDimension
- MxNameOfColor
- MxNameOfMaterial
- MxOffsetModeEnum
- MxShapeEnum
- MxTextPath
- MxTypeOfAngle
- MxTypeOfAngleArrowVisibility
- MxTypeOfColor
- MxTypeOfDisplayText
- MxTypeOfLine
- MxTypeOfMaterial
- MxTypeOfReflection
- MxVerticalTextAlignment
- _free
- _malloc
- canvas
- creatDocument
- ctx
- events
- executeRedo
- executeUndo
- fitSelectedObjects
- getFileArryBufferPointer
- getFileSize
- getViewCursorX
- getViewCursorY
- getViewCursorZ
- getViewHeight
- getViewScale
- getViewWidth
- loadTextureImg
- locateFile
- mdGeBRep
- mdGeHGeomPlane
- mdGeTopo
- onRuntimeInitialized
- open3DFile
- openFromUrl
- printErr
- ready
- removeSelectedObjects
- setObjectShowState
- updateCanvasSize
- wasmBinary
- onloadWasmMxDraw3dModel
Methods
- displayGround
- displayObject
- emit
- eraseObject
- fitAllObjects
- highLightSelShape
- off
- on
- openBRepFromMemory
- openFromMemory
- pauseMainLoop
- removeAllObjects
- resumeMainLoop
- setCanvasSize
- setCubemapBackground
Constructors
constructor
• new MxDraw3d(options
)
Parameters
Name | Type |
---|---|
options | MxDraw3dConfig |
Overrides
PubSub<{ "eventModesSelected": (ids: number[]) =\> void "eventAddToTree": (node: string) =\> void "eventRemoveFromTree": (ids: number[]) =\> void "eventFileSave": (fileName: string) =\> void "eventRebuildTree": (tree_str: string) =\> void
}\>.constructor
Properties
HEAPU8
• HEAPU8: Uint8Array
MdGeAngleDim
• MdGeAngleDim: typeof MdGeAngleDim
表示角度标注
MdGeArray1OfInteger
• MdGeArray1OfInteger: typeof MdGeArray1OfInteger
表示一维整数数组
MdGeArray1OfPnt
• MdGeArray1OfPnt: typeof MdGeArray1OfPnt
表示一维点数组
MdGeArray1OfReal
• MdGeArray1OfReal: typeof MdGeArray1OfReal
表示一维实数数组
MdGeArray2OfPnt
• MdGeArray2OfPnt: typeof MdGeArray2OfPnt
表示二维点数组
MdGeArray2OfReal
• MdGeArray2OfReal: typeof MdGeArray2OfReal
表示二维实数数组
MdGeArrowAspect
• MdGeArrowAspect: typeof MdGeArrowAspect
箭头样式
MdGeAxis
• MdGeAxis: typeof MdGeAxis
表示一个轴
MdGeBRep
• MdGeBRep: typeof MdGeBRep
表示BRep工具
MdGeBSplineCurve
• MdGeBSplineCurve: typeof MdGeBSplineCurve
表示B样条曲线
MdGeBSplineSurface
• MdGeBSplineSurface: typeof MdGeBSplineSurface
表示B样条曲面
MdGeBezierCurve
• MdGeBezierCurve: typeof MdGeBezierCurve
表示贝塞尔曲线
MdGeBezierSurface
• MdGeBezierSurface: typeof MdGeBezierSurface
表示贝塞尔曲面
MdGeBox
• MdGeBox: typeof MdGeBox
表示一个Box
MdGeCSYS
• MdGeCSYS: typeof MdGeCSYS
表示一个坐标系(左手或右手)
MdGeCSYSR
• MdGeCSYSR: typeof MdGeCSYSR
表示一个右手坐标系
MdGeChamfer
• MdGeChamfer: typeof MdGeChamfer
表示倒斜角
MdGeCircle
• MdGeCircle: typeof MdGeCircle
表示一个圆
MdGeColor
• MdGeColor: typeof MdGeColor
表示颜色
MdGeCompSolid
• MdGeCompSolid: typeof MdGeCompSolid
表示一个CompSolid形状
MdGeCompound
• MdGeCompound: typeof MdGeCompound
表示一个Compound形状
MdGeCone
• MdGeCone: typeof MdGeCone
表示一个圆锥
MdGeCylinder
• MdGeCylinder: typeof MdGeCylinder
表示一个圆柱
MdGeDiameterDim
• MdGeDiameterDim: typeof MdGeDiameterDim
表示直径标注
MdGeDimAspect
• MdGeDimAspect: typeof MdGeDimAspect
标注样式
MdGeDir
• MdGeDir: typeof MdGeDir
表示一个方向
MdGeEdge
• MdGeEdge: typeof MdGeEdge
表示一个Edge形状
MdGeEllipse
• MdGeEllipse: typeof MdGeEllipse
表示一个椭圆
MdGeExplorer
• MdGeExplorer: typeof MdGeExplorer
表示拓扑元素遍历
MdGeFace
• MdGeFace: typeof MdGeFace
表示一个Face形状
MdGeFillet
• MdGeFillet: typeof MdGeFillet
表示倒圆角
MdGeHGeomPlane
• MdGeHGeomPlane: typeof MdGeHGeomPlane
表示几何平面句柄
MdGeHGeomSurface
• MdGeHGeomSurface: typeof MdGeHGeomSurface
表示几何曲面句柄
MdGeHypr
• MdGeHypr: typeof MdGeHypr
表示双曲线
MdGeInterpolateBSpl
• MdGeInterpolateBSpl: typeof MdGeInterpolateBSpl
表示插值B样条曲线
MdGeLengthDim
• MdGeLengthDim: typeof MdGeLengthDim
表示长度标注
MdGeLight
• MdGeLight: typeof MdGeLight
表示光照
MdGeLine
• MdGeLine: typeof MdGeLine
表示一条直线
MdGeLineAspect
• MdGeLineAspect: typeof MdGeLineAspect
线样式
MdGeListIteratorOfListOfShape
• MdGeListIteratorOfListOfShape: typeof MdGeListIteratorOfListOfShape
表示形状链表迭代器
MdGeListOfShape
• MdGeListOfShape: typeof MdGeListOfShape
表示形状链表
MdGeLoft
• MdGeLoft: typeof MdGeLoft
表示放样
MdGeMakeArcOfCircle
• MdGeMakeArcOfCircle: typeof MdGeMakeArcOfCircle
表示三点圆弧
MdGeMakeFace
• MdGeMakeFace: typeof MdGeMakeFace
表示Wire生成Face
MdGeMakeThickSolid
• MdGeMakeThickSolid: typeof MdGeMakeThickSolid
表示薄实体
MdGeMakeWires
• MdGeMakeWires: typeof MdGeMakeWires
表示合并Edges成Wires
MdGeMat
• MdGeMat: typeof MdGeMat
表示一个矩阵
MdGeMaterialAspect
• MdGeMaterialAspect: typeof MdGeMaterialAspect
表示材质
MdGeObject
• MdGeObject: typeof MdGeObject
所有类的父类,除MdGeTopo,MdGeBRep
MdGeParab
• MdGeParab: typeof MdGeParab
表示抛物线
MdGePipe
• MdGePipe: typeof MdGePipe
表示管道
MdGePlane
• MdGePlane: typeof MdGePlane
表示一个平面
MdGePoint
• MdGePoint: typeof MdGePoint
表示一个点
MdGePointsToBSpl
• MdGePointsToBSpl: typeof MdGePointsToBSpl
表示拟合点B样条曲线
MdGePointsToBSplSurface
• MdGePointsToBSplSurface: typeof MdGePointsToBSplSurface
表示拟合B样条曲面
MdGePrism
• MdGePrism: typeof MdGePrism
表示拉伸体
MdGeRadiusDim
• MdGeRadiusDim: typeof MdGeRadiusDim
表示半径标注
MdGeRect
• MdGeRect: typeof MdGeRect
表示一个矩形
MdGeRevol
• MdGeRevol: typeof MdGeRevol
表示旋转体
MdGeSequenceIteratorOfSequenceOfShape
• MdGeSequenceIteratorOfSequenceOfShape: typeof MdGeSequenceIteratorOfSequenceOfShape
表示形状序列集合迭代器
MdGeSequenceOfShape
• MdGeSequenceOfShape: typeof MdGeSequenceOfShape
表示形状序列集合
MdGeShape
• MdGeShape: typeof MdGeShape
表示一个形状
MdGeShell
• MdGeShell: typeof MdGeShell
表示一个Shell形状
MdGeSolid
• MdGeSolid: typeof MdGeSolid
表示一个Solid形状
MdGeSphere
• MdGeSphere: typeof MdGeSphere
表示一个球体
MdGeText
• MdGeText: typeof MdGeText
表示文字
MdGeTextAspect
• MdGeTextAspect: typeof MdGeTextAspect
文本样式
MdGeTextLabel
• MdGeTextLabel: typeof MdGeTextLabel
表示文字标签
MdGeTopo
• MdGeTopo: typeof MdGeTopo
拓扑转换类
MdGeTorus
• MdGeTorus: typeof MdGeTorus
表示圆环
MdGeTransform
• MdGeTransform: typeof MdGeTransform
形状变换类
MdGeTrsf
• MdGeTrsf: typeof MdGeTrsf
表示一个变换
MdGeVec
• MdGeVec: typeof MdGeVec
表示一个向量
MdGeVertex
• MdGeVertex: typeof MdGeVertex
表示一个Vertex形状
MdGeWedge
• MdGeWedge: typeof MdGeWedge
表示一个楔形
MdGeWire
• MdGeWire: typeof MdGeWire
表示一个Wire形状
MdGeXYZ
• MdGeXYZ: typeof MdGeXYZ
表示一个坐标
MxCF3dFilletShapeEnum
• MxCF3dFilletShapeEnum: typeof MxCF3dFilletShapeEnum
MxCFDSChamfMode
• MxCFDSChamfMode: typeof MxCFDSChamfMode
MxDimensionArrowOrientation
• MxDimensionArrowOrientation: typeof MxDimensionArrowOrientation
MxDimensionTextHorizontalPosition
• MxDimensionTextHorizontalPosition: typeof MxDimensionTextHorizontalPosition
MxDimensionTextVerticalPosition
• MxDimensionTextVerticalPosition: typeof MxDimensionTextVerticalPosition
MxDisplayMode
• MxDisplayMode: typeof MxDisplayMode
MxFontAspect
• MxFontAspect: typeof MxFontAspect
MxGAJoinTypeEnum
• MxGAJoinTypeEnum: typeof MxGAJoinTypeEnum
MxGAShapeEnum
• MxGAShapeEnum: typeof MxGAShapeEnum
MxGFTrihedron
• MxGFTrihedron: typeof MxGFTrihedron
MxHorizontalTextAlignment
• MxHorizontalTextAlignment: typeof MxHorizontalTextAlignment
MxKindOfDimension
• MxKindOfDimension: typeof MxKindOfDimension
MxNameOfColor
• MxNameOfColor: typeof MxNameOfColor
MxNameOfMaterial
• MxNameOfMaterial: typeof MxNameOfMaterial
MxOffsetModeEnum
• MxOffsetModeEnum: typeof MxOffsetModeEnum
MxShapeEnum
• MxShapeEnum: typeof MxShapeEnum
MxTextPath
• MxTextPath: typeof MxTextPath
MxTypeOfAngle
• MxTypeOfAngle: typeof MxTypeOfAngle
MxTypeOfAngleArrowVisibility
• MxTypeOfAngleArrowVisibility: typeof MxTypeOfAngleArrowVisibility
MxTypeOfColor
• MxTypeOfColor: typeof MxTypeOfColor
MxTypeOfDisplayText
• MxTypeOfDisplayText: typeof MxTypeOfDisplayText
MxTypeOfLine
• MxTypeOfLine: typeof MxTypeOfLine
MxTypeOfMaterial
• MxTypeOfMaterial: typeof MxTypeOfMaterial
MxTypeOfReflection
• MxTypeOfReflection: typeof MxTypeOfReflection
MxVerticalTextAlignment
• MxVerticalTextAlignment: typeof MxVerticalTextAlignment
_free
• _free: (ptr
: number
) => void
Type declaration
▸ (ptr
): void
Parameters
Name | Type |
---|---|
ptr | number |
Returns
void
_malloc
• _malloc: (len
: number
) => number
Type declaration
▸ (len
): number
Parameters
Name | Type |
---|---|
len | number |
Returns
number
canvas
• canvas: HTMLCanvasElement
Implementation of
creatDocument
• creatDocument: () => boolean
Type declaration
▸ (): boolean
新建文档
Returns
boolean
ctx
• ctx: null
| WebGLRenderingContext
| WebGL2RenderingContext
events
• events: Object
Index signature
▪ [x: EventType
]: Events
[keyof Events
][]
Inherited from
PubSub.events
executeRedo
• executeRedo: () => boolean
Type declaration
▸ (): boolean
执行redo
Returns
boolean
executeUndo
• executeUndo: () => boolean
Type declaration
▸ (): boolean
执行undo
Returns
boolean
fitSelectedObjects
• fitSelectedObjects: () => void
Type declaration
▸ (): void
适应选中的对象
Returns
void
getFileArryBufferPointer
• getFileArryBufferPointer: (theFileName
: string
) => number
Type declaration
▸ (theFileName
): number
获取文件的BufferPointer
Parameters
Name | Type |
---|---|
theFileName | string |
Returns
number
getFileSize
• getFileSize: (theFileName
: string
) => number
Type declaration
▸ (theFileName
): number
获取文件的长度
Parameters
Name | Type |
---|---|
theFileName | string |
Returns
number
getViewCursorX
• getViewCursorX: () => number
Type declaration
▸ (): number
获取视图中鼠标X位置
Returns
number
getViewCursorY
• getViewCursorY: () => number
Type declaration
▸ (): number
获取视图中鼠标Y位置
Returns
number
getViewCursorZ
• getViewCursorZ: () => number
Type declaration
▸ (): number
获取视图中鼠标Z位置
Returns
number
getViewHeight
• getViewHeight: () => number
Type declaration
▸ (): number
获取视图高度
Returns
number
getViewScale
• getViewScale: () => number
Type declaration
▸ (): number
获取视图缩放比例
Returns
number
getViewWidth
• getViewWidth: () => number
Type declaration
▸ (): number
获取视图宽度
Returns
number
loadTextureImg
• loadTextureImg: (fileUrl
: string
, fileName
: string
) => void
Type declaration
▸ (fileUrl
, fileName
): void
加载贴图图片
Parameters
Name | Type |
---|---|
fileUrl | string |
fileName | string |
Returns
void
locateFile
• Optional
locateFile: (wasmURL
: string
, baseURL
: string
| URL
) => string
Type declaration
▸ (wasmURL
, baseURL?
): string
手动指定wasm文件位置
Parameters
Name | Type | Default value | |
---|---|---|---|
wasmURL | string | undefined | |
baseURL | string \ | URL | self.location.href |
Returns
string
Implementation of
Inherited from
mdGeBRep
• mdGeBRep: MdGeBRep
mdGeHGeomPlane
• mdGeHGeomPlane: MdGeHGeomPlane
mdGeTopo
• mdGeTopo: MdGeTopo
onRuntimeInitialized
• Optional
onRuntimeInitialized: () => void
Type declaration
▸ (): void
监听运行时初始化
Returns
void
Implementation of
MxDraw3dConfig.onRuntimeInitialized
Inherited from
WasmConfig.onRuntimeInitialized
open3DFile
• open3DFile: (file
: File
) => void
Type declaration
▸ (file
): void
通过浏览器器File对象打开3D文件
Parameters
Name | Type | Description |
---|---|---|
file | File | File对象 |
Returns
void
openFromUrl
• openFromUrl: (name
: string
, fileUrl
: string
) => void
Type declaration
▸ (name
, fileUrl
): void
从Url打开
Parameters
Name | Type | Description |
---|---|---|
name | string | 名称 是生成渲染3D对象的唯一标识 |
fileUrl | string | 文件路径 |
Returns
void
• Optional
print: (theText
: string
) => string
Type declaration
▸ (theText
): string
打印
Parameters
Name | Type |
---|---|
theText | string |
Returns
string
Implementation of
Inherited from
printErr
• Optional
printErr: (theText
: string
) => void
Type declaration
▸ (theText
): void
打印错误
Parameters
Name | Type |
---|---|
theText | string |
Returns
void
Implementation of
Inherited from
ready
完成初始化
removeSelectedObjects
• removeSelectedObjects: () => void
Type declaration
▸ (): void
删除选中实体
Returns
void
setObjectShowState
• setObjectShowState: (theId
: number
, theToShow
: boolean
) => void
Type declaration
▸ (theId
, theToShow
): void
设置显示/隐藏模型
Parameters
Name | Type |
---|---|
theId | number |
theToShow | boolean |
Returns
void
updateCanvasSize
• updateCanvasSize: () => void
Type declaration
▸ (): void
更新画布大小
Returns
void
Implementation of
MxDraw3dConfig.updateCanvasSize
wasmBinary
• Optional
wasmBinary: ArrayBuffer
二进制数据 设置wasmBinary 则 locateFile 不生效*
Implementation of
Inherited from
onloadWasmMxDraw3dModel
▪ Static
onloadWasmMxDraw3dModel: (mxDraw3d
: MxDraw3d
) => void
Type declaration
▸ (mxDraw3d
): void
监听wasm 文件加载成功事件
Parameters
Name | Type |
---|---|
mxDraw3d | MxDraw3d |
Returns
void
Methods
displayGround
▸ displayGround(is
): void
- 显示地面或地面网格
Parameters
Name | Type |
---|---|
is | boolean |
Returns
void
displayObject
▸ displayObject(name
): boolean
显示对象
Parameters
Name | Type |
---|---|
name | string |
Returns
boolean
emit
▸ emit<Key
>(event
, ...data
): void
发布
Type parameters
Name | Type | ||||
---|---|---|---|---|---|
Key | extends "eventModesSelected" \ | "eventAddToTree" \ | "eventRemoveFromTree" \ | "eventFileSave" \ | "eventRebuildTree" |
Parameters
Name | Type | Description | |
---|---|---|---|
event | number \ | Key | 事件名称 |
...data | Parameters <{ eventAddToTree : (node : string ) => void ; eventFileSave : (fileName : string ) => void ; eventModesSelected : (ids : number []) => void ; eventRebuildTree : (tree_str : string ) => void ; eventRemoveFromTree : (ids : number []) => void }[Key ]> | 载荷 |
Returns
void
Inherited from
PubSub.emit
eraseObject
▸ eraseObject(name
): boolean
擦除对象
Parameters
Name | Type |
---|---|
name | string |
Returns
boolean
fitAllObjects
▸ fitAllObjects(is
): void
适应所有对象
Parameters
Name | Type |
---|---|
is | boolean |
Returns
void
highLightSelShape
▸ highLightSelShape(theEntry
): void
高亮entry对应模型
Parameters
Name | Type |
---|---|
theEntry | number |
Returns
void
off
▸ off<Key
>(event
, callback?
): void
销毁事件
Type parameters
Name | Type | ||||
---|---|---|---|---|---|
Key | extends "eventModesSelected" \ | "eventAddToTree" \ | "eventRemoveFromTree" \ | "eventFileSave" \ | "eventRebuildTree" |
Parameters
Name | Type | Description | ||||
---|---|---|---|---|---|---|
event | Key | 事件名称 | ||||
callback? | (ids : number []) => void \ | (node : string ) => void \ | (ids : number []) => void \ | (fileName : string ) => void \ | (tree_str : string ) => void | 事件方法 |
Returns
void
Inherited from
PubSub.off
on
▸ on<Key
>(event
, callback
): void
订阅
Type parameters
Name | Type | ||||
---|---|---|---|---|---|
Key | extends "eventModesSelected" \ | "eventAddToTree" \ | "eventRemoveFromTree" \ | "eventFileSave" \ | "eventRebuildTree" |
Parameters
Name | Type | Description | ||||
---|---|---|---|---|---|---|
event | Key | 事件名称 | ||||
callback | (ids : number []) => void \ | (node : string ) => void \ | (ids : number []) => void \ | (fileName : string ) => void \ | (tree_str : string ) => void | 事件回调 |
Returns
void
Inherited from
PubSub.on
openBRepFromMemory
▸ openBRepFromMemory(fileName
, dataBuffer
, len
, is?
): boolean
从内存打开
Parameters
Name | Type | Description |
---|---|---|
fileName | string | 表示文件名称 (可通过浏览器 File对象的name属性或者自定义) 是生成渲染3D对象的唯一标识 |
dataBuffer | Buffer | 文件数据的缓冲区 |
len | number | 缓冲区的长度 |
is? | boolean | 是否为压缩格式 |
Returns
boolean
openFromMemory
▸ openFromMemory(fileName
, dataBuffer
, len
, is?
): boolean
从内存打开
Parameters
Name | Type | Description |
---|---|---|
fileName | string | 表示文件名称 (可通过浏览器 File对象的name属性或者自定义) 是生成渲染3D对象的唯一标识 |
dataBuffer | number | 文件数据的缓冲区 |
len | number | 缓冲区的长度 |
is? | boolean | 是否为压缩格式 |
Returns
boolean
pauseMainLoop
▸ pauseMainLoop(): void
暂停主循环
Returns
void
removeAllObjects
▸ removeAllObjects(): void
删除所有对象
Returns
void
resumeMainLoop
▸ resumeMainLoop(): void
恢复主循环
Returns
void
setCanvasSize
▸ setCanvasSize(w
, h
, noUpdate?
): void
设置Canvas大小
Parameters
Name | Type | Description |
---|---|---|
w | number | 宽度 |
h | number | 高度 |
noUpdate? | boolean | 不更新调整侦听器大小 默认 是true |
Returns
void
setCubemapBackground
▸ setCubemapBackground(url
): void
设置多维数据集贴图背景
Parameters
Name | Type |
---|---|
url | string |
Returns
void
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论