Members
-
<constant> DEF_MATCH_REGEX
-
USDA (ASCII) parser for USD. Produces specsByPath used by USDToGltfConverter. Ported from Three.js USDAParser; no Three.js dependencies.
-
<constant> getTweensT
-
热路径:位置插值 t ∈ [0,1],无分配、单次除法,RealTimePath 每帧每车调用
-
<constant> ROTATION_PACK_FLAG_NONE
-
旋转打包预留位(bit30-31):00 三轴均为 0;11 至少一轴角度严格 > 0
Methods
-
applySkelDataToMeshPayload(meshPayload, skelData, numVertices)
-
Compute per-vertex JOINTS_0 (Uint16) and WEIGHTS_0 (Float32) for a mesh payload. Mutates meshPayload with skinJoints4, skinWeights4, skinData.
Parameters:
Name Type Description meshPayloadObject Mesh payload with skinRawIndices, skinRawWeights, skinElementSize, skinExpandIndices, skinLocalJointList skelDataObject Skeleton data with jointPaths, jointNodeIndices numVerticesnumber Number of vertices -
buildAnimations()
-
Build xform and SkelAnimation animations. Appends to ctx.bufferParts, bufferViews, accessors. Sets ctx.animChannels, ctx.animSamplers, ctx.gltfAnimations, ctx.animByteOffset. Expects ctx: specsByPath, pathToNodeIndex, skeletonDataByPath, rootSpec, bufferParts, bufferViews, accessors, animByteOffset.
-
buildMaterials()
-
Build glTF images, textures, samplers, materials. Mutates ctx with: gltfImages, gltfTextures, gltfSamplers, gltfMaterials, materialPathToIndex, usesTextureTransform Expects ctx: specsByPath, assets, basePath, getAttributes, childrenByPath, uniqueMaterialPaths
-
buildMeshBuffers()
-
Build buffer parts, bufferViews, accessors, meshes, gltfSkins, skinIndexBySkeletonPath. Sets ctx.animByteOffset after the last mesh buffer for animations. Expects ctx: meshResults (each with materialIndex set), nodeList, skeletonDataByPath.
-
buildNodeHierarchy()
-
Build node hierarchy and collect meshes. Mutates ctx with: nodeList, meshResults, rootNodeIndices, skeletonDataByPath Expects ctx to have: specsByPath, childrenByPath, getAttributes, rootSpec
-
collectTexturePaths(specsByPath)
-
Collect all texture file paths referenced by UsdUVTexture inputs:file in specsByPath. Used for bare .usdc/.usda so we can fetch them from the same origin as the USD file.
Parameters:
Name Type Description specsByPathObject Parsed USD specs Returns:
Unique relative paths (e.g. ["0/Elefant_Diff.packed.png"])- Type
- Array.<string>
-
convertToGltf(params)
-
Parameters:
Name Type Description paramsReturns:
- Type
- Object
-
createImage()
-
SVG 等转成指定尺寸的 canvas,供 Billboard/TextureAtlas 使用。 返回带 src 的 thenable 包装对象(不直接给 Promise 挂 src),满足: 1. 引擎 resolveImage 会 await 得到 canvas; 2. Billboard 用 image.src 作为 TextureAtlas 的 id,必须用 id(含尺寸)避免与“直接传 URL”的槽位冲突。 性能:相同 (url, width, height, scale) 会命中 cache,直接返回已缓存的 thenable,不重复请求、不重复建 canvas、不重复占 atlas 槽位。
-
<async> fetchExternalTextures(resource, specsByPath)
-
Fetch external texture assets relative to the USD resource URL. Resolves paths like "0/Elefant_Diff.packed.png" against the directory of the USD file.
Parameters:
Name Type Description resourceResource Resource that was used to load the USD (provides base URL) specsByPathObject Parsed USD specs (used to collect paths) Returns:
assets map keyed by path string- Type
- Promise.<Object.<string, Uint8Array>>
-
fieldsToMatrix()
-
Build 4x4 matrix from USD xformOpOrder (column-major for glTF). Order matches UsdGeomXformable GetOrderedXformOps "least-to-most-local": first op in list is applied first (stack order). We compose as m = m * temp so that combined (column-major) = M_0 * M_1 * ... for glTF M*p semantics.
-
findUSD(zip)
-
Per AOUSD 16.4.1.2: first ZIP entry is the root layer.
Parameters:
Name Type Description zipObject.<string, Uint8Array> from unzipUSDZ Returns:
- Type
- Object
-
findUVPrimvar()
-
Find UV primvar from mesh attributes. Returns { uvs, uvIndices, interpolation } or null. USD V is flipped: V_gltf = 1 - V_usd.
-
flattenMatrixArray()
-
Flatten an array-of-arrays or a flat array of USD matrix values. Returns a plain number[] of length count*16, or null.
-
isMatrix4Identity()
-
True if the 16-element column-major matrix is effectively identity (within IDENTITY_EPS).
-
<async> loadUSD(resource)
-
Load USD from a URL or Resource and return { specsByPath, assets, basePath }.
Parameters:
Name Type Description resourceResource | string URL or Resource Returns:
- Type
- Promise.<{specsByPath: Object, assets: Object, basePath: string}>
-
matrix4FromUsdFlat()
-
Build a Cesium Matrix4 from 16 USD flat floats (row-major: m[0..3]=row0, m[4..7]=row1 ...). USD GfMatrix4d stores rows contiguously; glTF/Cesium needs column-major.
-
multiplyNodeMatrices()
-
Multiply node matrices from root down to targetIndex.
Returns:
16-element column-major matrix- Type
- Array.<number>
-
parseAssets(zip, usdaParser, usdcParser)
-
Parse all USD and image assets from a zip (from unzipUSDZ).
Parameters:
Name Type Description zipObject.<string, Uint8Array> usdaParserUSDAParser usdcParserUSDCParser Returns:
- filename -> { specsByPath } or image bytes- Type
- Object.<string, (Object|Uint8Array)>
-
resolveSkeletonPath()
-
Resolve skeleton path to full stage path. Relative/single-name refs (e.g. \"
\" -> \"/Skeleton\") become meshParentPath + \"/\" + name. -
unzipUSDZ(blobOrBuffer)
-
Unzip USDZ and return a map of filename -> Uint8Array. Uses fflate so the order of keys matches Three.js (central directory order).
Parameters:
Name Type Description blobOrBufferBlob | ArrayBuffer | Uint8Array USDZ data Returns:
- Type
- Promise.<Object.<string, Uint8Array>>
Type Definitions
-
AmbientOcclusion
-
Type:
- Object
Properties:
Name Type Argument Default Description enableboolean <optional>
false 是否开启环境光遮蔽 intensitynumber <optional>
1 环境光遮蔽强度 rangenumber <optional>
1.0 环境光遮蔽范围 blurStepSizenumber <optional>
1.0 模糊处理步长 -
AngleOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description anglePrecisionNumber <optional>
2 角度精度,保留小数位数 markerSizeNumber <optional>
12 标记点大小,单位像素 fillColorString | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象 outlineColorString | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象 outlineWidthNumber <optional>
2 标记点边框宽度,单位像素 lineColorString | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象 lineWidthNumber <optional>
2 连线宽度,单位像素 fontColorString | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象 labelColorString | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象 fontSizeNumber <optional>
14 标注字体大小,单位像素 showResultString <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示) enableMouseMoveBoolean <optional>
true 是否启用鼠标移动事件 enableMouseLeftClickBoolean <optional>
true 是否启用鼠标左键点击事件 enableMouseRightClickBoolean <optional>
true 是否启用鼠标右键点击事件 -
AzimuthOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description anglePrecisionNumber <optional>
2 角度精度,保留小数位数 markerSizeNumber <optional>
12 标记点大小,单位像素 fillColorString | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象 outlineColorString | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象 outlineWidthNumber <optional>
2 标记点边框宽度,单位像素 lineColorString | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象 lineWidthNumber <optional>
2 连线宽度,单位像素 fontColorString | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象 labelColorString | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象 fontSizeNumber <optional>
14 标注字体大小,单位像素 showResultString <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示) enableMouseMoveBoolean <optional>
true 是否启用鼠标移动事件 enableMouseLeftClickBoolean <optional>
true 是否启用鼠标左键点击事件 enableMouseRightClickBoolean <optional>
true 是否启用鼠标右键点击事件 -
BackgroundColorOptions
-
Type:
- Object
Properties:
Name Type Argument Description stopNumber <optional>
间隔 colorString <optional>
背景色 -
BillboardStyleOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description typestring <optional>
'icon' 仅支持icon类型 symbolstring <optional>
图片 sizeArray <optional>
[5, 5] 图片大小 scaleNumber <optional>
1.0 比例 fillColorstring <optional>
'WHITE' 颜色 rotationNumber <optional>
0 旋转角度,单位度数 sizeInMetersBoolean <optional>
false 是否按照真实大小显示(m) pixelOffsetArray | Glodon.CIMCube.Graphic.TwoDimensionPoint <optional>
[0, 0] 像素偏移量(单位像素) -
ClusterCategoryOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description valueNumber 聚合参考值 imageUrlString <optional>
聚合图标 imageSizeArray.<Number> <optional>
聚合图标大小 textString <optional>
聚合图标文字 labelOffsetArray.<Number> <optional>
聚合图标文字偏移 showBackgroundBoolean <optional>
false 是否显示聚合图标文字背景 backgroundColorArray.<BackgroundColorOptions> <optional>
聚合图标文字背景颜色参数 outlineColorString <optional>
showBackground为true时,聚合图标文字外边框颜色 outlineWidthNumber <optional>
1 showBackground为true时,聚合图标文字外边框宽度 -
CoordinateOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description lonLatPrecisionNumber <optional>
6 经纬度精度,保留小数位数 heightPrecisionNumber <optional>
3 高度精度,保留小数位数 isShowAnchorIconBoolean <optional>
false 是否显示锚点图标 markerSizeNumber | Array <optional>
12 标记点大小,如果显示图标则为[width, height]数组 fillColorString | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象 outlineColorString | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象 outlineWidthNumber <optional>
2 标记点边框宽度,单位像素 iconUrlString <optional>
锚点图标URL路径 showResultString <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示) enableMouseMoveBoolean <optional>
true 是否启用鼠标移动事件 enableMouseLeftClickBoolean <optional>
true 是否启用鼠标左键点击事件 -
GeoJsonLayerCluster
-
聚合对象
Type:
- Object
Properties:
Name Type Argument Default Description cluster.clusterCategoryArray.<ClusterCategoryOptions> <optional>
聚合分类对象 cluster.pixelRangeNumber <optional>
10 扩展屏幕空间边界框的像素范围 cluster.minimumClusterSizeNumber <optional>
2 可以聚集的最小屏幕空间对象数 cluster.imageSizeArray <optional>
全局图片大小 cluster.labelSizeNumber <optional>
全局文字大小 cluster.labelColorString <optional>
全局文字颜色 cluster.labelOffsetArray <optional>
标注偏移量,(0,0)在中下方,水平向右为正,垂直向下为正 cluster.boundaryObject <optional>
聚合范围 cluster.expandTolerancenumber <optional>
0.5 聚合三维距离,点位距离小于这个值将不自动展开 cluster.expandRadiusObject <optional>
{lessThanSix:25,moreThanSix:50} 扩展半径 -
GroundAreaOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description areaPrecisionNumber <optional>
3 面积精度,保留小数位数 areaUnitNumber | Array <optional>
Glodon.CIMCube.Global.Defines.AreaUnit.S_M 面积单位,S_M(平方米) areaUnitSeparatorString <optional>
"|" 面积单位分隔符 markerSizeNumber <optional>
12 标记点大小,单位像素 fillColorString | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象 outlineColorString | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象 outlineWidthNumber <optional>
2 标记点边框宽度,单位像素 lineColorString | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象 lineWidthNumber <optional>
2 连线宽度,单位像素 fontColorString | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象 labelColorString | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象 fontSizeNumber <optional>
14 标注字体大小,单位像素 polygonColorString | Array | Object <optional>
"rgba(255, 157, 11, 0.2)" 多边形填充颜色,支持十六进制字符串、RGB数组或颜色对象 showResultString <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示) enableMouseMoveBoolean <optional>
true 是否启用鼠标移动事件 enableMouseLeftClickBoolean <optional>
true 是否启用鼠标左键点击事件 enableMouseRightClickBoolean <optional>
true 是否启用鼠标右键点击事件 -
GroundDistanceOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description lengthPrecisionNumber <optional>
3 长度精度,保留小数位数 lengthUnitNumber <optional>
Glodon.CIMCube.Global.Defines.LengthUnit.M 长度单位,M(米) markerSizeNumber <optional>
12 标记点大小,单位像素 fillColorString | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象 outlineColorString | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象 outlineWidthNumber <optional>
2 标记点边框宽度,单位像素 lineColorString | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象 lineWidthNumber <optional>
2 连线宽度,单位像素 fontColorString | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象 labelColorString | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象 fontSizeNumber <optional>
14 标注字体大小,单位像素 showResultString <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示) enableMouseMoveBoolean <optional>
true 是否启用鼠标移动事件 enableMouseLeftClickBoolean <optional>
true 是否启用鼠标左键点击事件 enableMouseRightClickBoolean <optional>
true 是否启用鼠标右键点击事件 -
IClipPlaneUI
-
剖切UI接口 该接口定义了剖切平面UI组件需要实现的方法和属性,用于控制剖切平面的可视化显示和交互。 可以通过实现此接口来自定义剖切平面的UI表现,默认实现为
DefaultClipPlaneUI。Type:
- Object
Properties:
Name Type Description destroyfunction 销毁UI组件,释放所有资源(如Primitive、事件监听器等) updatefunction 更新UI显示状态 Properties
Name Type Description sizeInMetersArray.<Number> 剖切平面的尺寸(米),数组包含两个元素:[宽度, 高度] convertToWorldFuncfunction 将拖拽空间坐标转换为世界坐标的函数 - 参数 `inPos` {Cesium.Cartesian3} 输入:拖拽空间中的位置 - 参数 `outPos` {Cesium.Cartesian3} 输出:世界空间中的位置 - 返回 {Boolean} 转换是否成功 convertToScreenSpaceXYfunction 将世界坐标转换为屏幕空间坐标的函数 - 参数 `posInWorldVec4` {Cesium.Cartesian4} 输入:世界空间中的位置(w=1) - 参数 `outPosVec2` {Object} 输出:屏幕空间坐标(Vec2,范围0-1) - 返回 {Boolean} 转换是否成功 worldMatrixCesium.Matrix4 从拖拽空间到世界空间的变换矩阵 registEventListenerfunction 注册鼠标事件监听器 Properties
Name Type Description mouseDownfunction 鼠标按下事件回调函数 - 参数 `position` {Cesium.Cartesian2} 鼠标在屏幕空间的位置 - 参数 `type` {Number} 交互类型(INTERACT_TYPE枚举值) - 返回 {Boolean} 是否开始拖拽操作,true表示同意开始拖拽 mouseMovefunction 鼠标移动事件回调函数 - 参数 `endPosition` {Cesium.Cartesian2} 鼠标在屏幕空间的结束位置 mouseUpfunction 鼠标抬起事件回调函数 setPlaneColorfunction 设置剖切平面颜色 Properties
Name Type Argument Description colorString | Cesium.Color 颜色值,可以是CSS颜色字符串或Cesium.Color对象 alphaNumber <optional>
透明度,范围0-1,默认使用当前值 setBorderColorfunction 设置剖切平面边框颜色 Properties
Name Type Argument Description colorString | Cesium.Color 颜色值,可以是CSS颜色字符串或Cesium.Color对象 alphaNumber <optional>
透明度,范围0-1,默认使用当前值 setBorderWidthfunction 设置剖切平面边框宽度 Properties
Name Type Description widthNumber 边框宽度(像素),必须大于0 setAxisColorfunction 设置拖拽轴颜色 Properties
Name Type Argument Description colorString | Cesium.Color 颜色值,可以是CSS颜色字符串或Cesium.Color对象 alphaNumber <optional>
透明度,范围0-1,默认使用当前值 hidefunction 隐藏UI,移除所有可见的Primitive showfunction 显示UI,添加所有可见的Primitive visibilityBoolean 获取或设置UI可见性 getStatefunction 获取UI的完整状态 Properties
Name Type Description returnsObject UI状态对象,包含以下属性: - `borderColor` {String} 边框颜色 - `borderWidth` {Number} 边框宽度 - `borderAlpha` {Number} 边框透明度 - `planeColor` {String} 平面颜色 - `planeAlpha` {Number} 平面透明度 - `axisColor` {String} 轴颜色 - `axisAlpha` {Number} 轴透明度 - `showed` {Boolean} 是否显示 - `worldMatrix` {Array } 世界变换矩阵(16个元素的数组) setStatefunction 设置UI状态 Properties
Name Type Description stateObject UI状态对象,格式与getState返回值相同 Example
// 自定义UI实现示例 class CustomClipPlaneUI { constructor(options) { // 初始化代码 } destroy() { // 清理资源 } update(sizeInMeters, convertToWorldFunc, convertToScreenSpaceXY, worldMatrix) { // 更新UI显示 } registEventListener(mouseDown, mouseMove, mouseUp) { // 注册事件监听 } setPlaneColor(color, alpha) { // 设置平面颜色 } setBorderColor(color, alpha) { // 设置边框颜色 } setBorderWidth(width) { // 设置边框宽度 } setAxisColor(color, alpha) { // 设置轴颜色 } hide() { // 隐藏UI } show() { // 显示UI } get visibility() { return this._visible; } set visibility(v) { this._visible = v; } getState() { return { // 返回状态对象 }; } setState(state) { // 恢复状态 } } // 使用自定义UI const sceneClip = new SceneClip(map, { clipPlaneUI: new CustomClipPlaneUI({ viewer: map.viewer }) }); -
LabelStyleOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description typestring <optional>
'label' 仅支持文本类型 textstring <optional>
'' 文本 fontstring <optional>
'30px sans-serif' 字体 styleGlodon.CIMCube.Graphic.LabelStyle <optional>
Glodon.CIMCube.Graphic.LabelStyle.FILL 注记样式 scaleNumber <optional>
1.0 比例 fillColorstring <optional>
'white' 字体颜色 outlineColorstring <optional>
'black' 边界颜色 outlineWidthNumber <optional>
1.0 边界勾绘粗度(单位像素) showBackgroundBoolean <optional>
false 是否显示背景 backgroundColorstring <optional>
'rgba(42,42,42,0.8)' 背景颜色 backgroundPaddingArray <optional>
[7,5] 缩进尺寸(单位像素) pixelOffsetArray | Glodon.CIMCube.Graphic.TwoDimensionPoint <optional>
[0,0] 注记偏移值(单位像素) horizontalOriginGlodon.CIMCube.Graphic.HorizontalOrigin <optional>
Glodon.CIMCube.Graphic.HorizontalOrigin.CENTER 文本坐标点与文本框水平相对位置 verticalOriginGlodon.CIMCube.Graphic.VerticalOrigin <optional>
Glodon.CIMCube.Graphic.VerticalOrigin.CENTER 文本坐标点与文本框垂直相对位置 -
ModelDistanceOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description lengthPrecisionNumber <optional>
3 长度精度,保留小数位数 lengthUnitNumber <optional>
Glodon.CIMCube.Global.Defines.LengthUnit.M 长度单位,M(米) markerSizeNumber <optional>
12 标记点大小,单位像素 fillColorString | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象 outlineColorString | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象 outlineWidthNumber <optional>
2 标记点边框宽度,单位像素 lineColorString | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象 lineWidthNumber <optional>
2 连线宽度,单位像素 fontColorString | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象 labelColorString | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象 fontSizeNumber <optional>
14 标注字体大小,单位像素 showResultString <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示) enableMouseMoveBoolean <optional>
true 是否启用鼠标移动事件 enableMouseLeftClickBoolean <optional>
true 是否启用鼠标左键点击事件 enableMouseRightClickBoolean <optional>
true 是否启用鼠标右键点击事件 -
PointStyleOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description typestring <optional>
'vector' 仅支持矢量点类型 sizeNumber | Array <optional>
5 点绘制粗度(单位像素) fillColorstring <optional>
'#FFFF00' 填充颜色 outlineColorstring <optional>
'#000000' 边界颜色 outlineWidthNumber <optional>
0 边界勾绘粗度(单位像素) -
PolygonStyleOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description fillColorstring <optional>
"#FFFF00" 填充颜色 outlineObject <optional>
边界选项 Properties
Name Type Argument Description typestring <optional>
边界线样式,支持Solid:实线;Dashes:虚线;Glow:发光线 colorstring <optional>
边界颜色 widthnumber <optional>
边界宽度 imageObject <optional>
填充图片材质 Properties
Name Type Argument Description urlstring <optional>
材质url colorstring <optional>
材质颜色 repeatArray <optional>
材质重复次数 transparentboolean <optional>
材质透明度 rotationnumber <optional>
材质旋转角度 -
PolylineStyleOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description typestring <optional>
'Solid' 线样式(Solid:实线;Dashes:虚线;Glow:发光线) colorString <optional>
'#FFFFFF' 颜色 widthNumber <optional>
1.0 宽度 gapColorstring <optional>
'rgba(0,0,0,0)' 间隔颜色 gapLengthNumber <optional>
8.0 间隔长度 dashLengthNumber <optional>
8.0 虚线长度 dashWidthPatternNumber <optional>
1.0 虚线宽度模式 glowPowerNumber <optional>
0.25 发光线强度 taperPowerNumber <optional>
1.0 发光线衰减 occludedLineObject <optional>
遮挡线(被地形遮挡部分) Properties
Name Type Argument Default Description typeString <optional>
'Solid' 遮挡线-线类型 colorString <optional>
"#FFFF00" 遮挡线-颜色 gapColorString <optional>
"#000000" 线类型为Defines.LineType.DASHES,间隔颜色 -
PostProcessWaterOptions
-
水体渲染选项
Type:
- Object
Properties:
Name Type Argument Default Description colorstring <optional>
"rgb(0,127,204)" 水颜色 alphanumber <optional>
0.8 水透明度 mixFactornumber <optional>
0.5 水混合因子 frequencynumber <optional>
900 频率 animationSpeednumber <optional>
0.03 动画速度 amplitudenumber <optional>
5.0 振幅 -
ProjectDistanceOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description lengthPrecisionNumber <optional>
3 长度精度,保留小数位数 lengthUnitNumber <optional>
Glodon.CIMCube.Global.Defines.LengthUnit.M 长度单位,M(米) markerSizeNumber <optional>
12 标记点大小,单位像素 fillColorString | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象 outlineColorString | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象 outlineWidthNumber <optional>
2 标记点边框宽度,单位像素 lineColorString | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象 lineWidthNumber <optional>
2 连线宽度,单位像素 fontColorString | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象 labelColorString | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象 fontSizeNumber <optional>
14 标注字体大小,单位像素 showResultString <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示) enableMouseMoveBoolean <optional>
true 是否启用鼠标移动事件 enableMouseLeftClickBoolean <optional>
true 是否启用鼠标左键点击事件 enableMouseRightClickBoolean <optional>
true 是否启用鼠标右键点击事件 -
ProjectedAreaOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description areaPrecisionNumber <optional>
3 面积精度,保留小数位数 areaUnitNumber | Array <optional>
Glodon.CIMCube.Global.Defines.AreaUnit.S_M 面积单位,S_M(平方米) areaUnitSeparatorString <optional>
"|" 面积单位分隔符 markerSizeNumber <optional>
12 标记点大小,单位像素 fillColorString | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象 outlineColorString | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象 outlineWidthNumber <optional>
2 标记点边框宽度,单位像素 lineColorString | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象 lineWidthNumber <optional>
2 连线宽度,单位像素 fontColorString | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象 labelColorString | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象 fontSizeNumber <optional>
14 标注字体大小,单位像素 polygonColorString | Array | Object <optional>
"rgba(255, 157, 11, 0.2)" 多边形填充颜色,支持十六进制字符串、RGB数组或颜色对象 showResultString <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示) enableMouseMoveBoolean <optional>
true 是否启用鼠标移动事件 enableMouseLeftClickBoolean <optional>
true 是否启用鼠标左键点击事件 enableMouseRightClickBoolean <optional>
true 是否启用鼠标右键点击事件 -
RealisticRenderingOptions
-
真实感渲染选项
Type:
- Object
Properties:
Name Type Argument Description originObject <optional>
原点 Properties
Name Type Argument Description lonnumber <optional>
经度 latnumber <optional>
纬度 heightnumber <optional>
高度 skyLightObject <optional>
天光 skyAtmosphereObject <optional>
天空大气 exponentialHeightFogObject <optional>
指数高度雾 volumetricCloudsObject <optional>
体积云 bloomObject <optional>
泛光 lightShaftObject <optional>
光晕光束 eyeAdaptationObject <optional>
自动曝光 -
SlopeOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description anglePrecisionNumber <optional>
2 角度精度,保留小数位数 markerSizeNumber <optional>
12 标记点大小,单位像素 fillColorString | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象 outlineColorString | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象 outlineWidthNumber <optional>
2 标记点边框宽度,单位像素 lineColorString | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象 lineWidthNumber <optional>
2 连线宽度,单位像素 fontColorString | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象 labelColorString | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象 fontSizeNumber <optional>
14 标注字体大小,单位像素 showResultString <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示) enableMouseMoveBoolean <optional>
true 是否启用鼠标移动事件 enableMouseLeftClickBoolean <optional>
true 是否启用鼠标左键点击事件 enableMouseRightClickBoolean <optional>
true 是否启用鼠标右键点击事件 -
SpaceAreaOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description areaPrecisionNumber <optional>
3 面积精度,保留小数位数 areaUnitNumber | Array <optional>
Glodon.CIMCube.Global.Defines.AreaUnit.S_M 面积单位,S_M(平方米) areaUnitSeparatorString <optional>
"|" 面积单位分隔符 markerSizeNumber <optional>
12 标记点大小,单位像素 fillColorString | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象 outlineColorString | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象 outlineWidthNumber <optional>
2 标记点边框宽度,单位像素 lineColorString | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象 lineWidthNumber <optional>
2 连线宽度,单位像素 fontColorString | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象 labelColorString | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象 fontSizeNumber <optional>
14 标注字体大小,单位像素 polygonColorString | Array | Object <optional>
"rgba(255, 157, 11, 0.2)" 多边形填充颜色,支持十六进制字符串、RGB数组或颜色对象 heightOffsetNumber <optional>
2 拾取高度偏移量,单位米 showResultString <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示) enableMouseMoveBoolean <optional>
true 是否启用鼠标移动事件 enableMouseLeftClickBoolean <optional>
true 是否启用鼠标左键点击事件 enableMouseRightClickBoolean <optional>
true 是否启用鼠标右键点击事件 -
SpaceDistanceOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description lengthPrecisionNumber <optional>
3 长度精度,保留小数位数 lengthUnitNumber <optional>
Glodon.CIMCube.Global.Defines.LengthUnit.M 长度单位,M(米) markerSizeNumber <optional>
12 标记点大小,单位像素 fillColorString | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象 outlineColorString | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象 outlineWidthNumber <optional>
2 标记点边框宽度,单位像素 lineColorString | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象 lineWidthNumber <optional>
2 连线宽度,单位像素 fontColorString | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象 labelColorString | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象 fontSizeNumber <optional>
14 标注字体大小,单位像素 showResultString <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示) enableMouseMoveBoolean <optional>
true 是否启用鼠标移动事件 enableMouseLeftClickBoolean <optional>
true 是否启用鼠标左键点击事件 enableMouseRightClickBoolean <optional>
true 是否启用鼠标右键点击事件 -
TMSOptions
-
Type:
- Object
Properties:
Name Type Argument Description urlString <optional>
影像图层URL subdomainsArray <optional>
影像图层子域名,例:["0", "1", "2", "3"] customTagsObject <optional>
允许替换URL模板中的自定义关键字。该对象必须以字符串为键,以函数为值。 tilingSchemeString <optional>
瓦片方案,默认geographic,可选webmercator -
TriangulationOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description lengthPrecisionNumber <optional>
3 长度精度,保留小数位数 lengthUnitNumber <optional>
Glodon.CIMCube.Global.Defines.LengthUnit.M 长度单位,M(米) triangulationTypeString <optional>
Glodon.CIMCube.Global.Defines.TriangulationType.DEFAULT 三角测量类型 markerSizeNumber <optional>
12 标记点大小,单位像素 fillColorString | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象 outlineColorString | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象 outlineWidthNumber <optional>
2 标记点边框宽度,单位像素 lineColorString | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象 lineWidthNumber <optional>
2 连线宽度,单位像素 fontColorString | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象 labelColorString | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象 fontSizeNumber <optional>
14 标注字体大小,单位像素 showResultString <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示) enableMouseMoveBoolean <optional>
true 是否启用鼠标移动事件 enableMouseLeftClickBoolean <optional>
true 是否启用鼠标左键点击事件 enableMouseRightClickBoolean <optional>
true 是否启用鼠标右键点击事件 -
VolumeOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description volumePrecisionNumber <optional>
3 测量体积精度,保留小数位数 markerSizeNumber <optional>
12 标记点大小,单位像素 fillColorString | Array | Object <optional>
"#F99D0B" 标记点填充颜色,支持十六进制字符串、RGB数组或颜色对象 outlineColorString | Array | Object <optional>
"white" 标记点边框颜色,支持十六进制字符串、RGB数组或颜色对象 outlineWidthNumber <optional>
2 标记点边框宽度,单位像素 lineColorString | Array | Object <optional>
"#F99D0B" 连线颜色,支持十六进制字符串、RGB数组或颜色对象 lineWidthNumber <optional>
2 连线宽度,单位像素 polygonColorString | Array | Object <optional>
"rgba(1,0.615686274509804,0.043137254901960784,0.2)" 多边形填充颜色,支持十六进制字符串、RGB数组或颜色对象 datumObject <optional>
{mode: Glodon.CIMCube.Global.Defines.DatumMode.CustomPlane, altitude: 0} 测量的基准面 fontColorString | Array | Object <optional>
"white" 标注文字颜色,支持十六进制字符串、RGB数组或颜色对象 labelColorString | Array | Object <optional>
"rgba(32, 38, 47, 0.85)" 标注背景颜色,支持十六进制字符串、RGB数组或颜色对象 fontSizeNumber <optional>
14 标注字体大小,单位像素 showResultString <optional>
Glodon.CIMCube.Global.Defines.MeasureShowResult.ALWAYS 测量结果显示模式:ALWAYS(始终显示)、NEVER(从不显示)、TRIGGER_HOVER(鼠标悬停显示) enableMouseMoveBoolean <optional>
true 是否启用鼠标移动事件 enableMouseLeftClickBoolean <optional>
true 是否启用鼠标左键点击事件 enableMouseRightClickBoolean <optional>
true 是否启用鼠标右键点击事件 -
WMSOptions
-
Type:
- Object
Properties:
Name Type Argument Description urlString <optional>
影像图层URL layersString <optional>
图层名称,多个图层用逗号分隔 parametersObject <optional>
参数 versionstring <optional>
版本 servicestring <optional>
服务类型 requeststring <optional>
请求类型 stylesstring <optional>
样式名称 tiledstring <optional>
是否瓦片化 transparentstring <optional>
是否透明 formatstring <optional>
瓦片格式 crsstring <optional>
坐标参考系统, WMS specification >= 1.3.0. srsstring <optional>
坐标参考系统, WMS specification 1.1.0 or 1.1.1 tilingSchemeString <optional>
瓦片方案,默认geographic,可选webmercator subdomainsArray <optional>
影像图层子域名,例:["0", "1", "2", "3"] -
WMTSOptions
-
Type:
- Object
Properties:
Name Type Argument Description urlString <optional>
影像图层URL layerString <optional>
图层名称 styleString <optional>
样式名称 formatString <optional>
瓦片格式,默认image/jpeg tileMatrixSetIDString <optional>
瓦片矩阵集ID tileMatrixLabelsArray <optional>
瓦片矩阵标签 tilingSchemeString <optional>
瓦片方案,默认geographic,可选webmercator subdomainsArray <optional>
影像图层子域名,例:["0", "1", "2", "3"] -
XYZOptions
-
Type:
- Object
Properties:
Name Type Argument Description urlString <optional>
影像图层URL subdomainsArray <optional>
影像图层子域名,例:["0", "1", "2", "3"] customTagsObject <optional>
允许替换URL模板中的自定义关键字。该对象必须以字符串为键,以函数为值。 tilingSchemeString <optional>
瓦片方案,默认geographic,可选webmercator
Events
-
dataSourceAdded
-
数据源添加
Type: Object
-
dataSourceRemoved
-
数据源移除
Type: Object