Members
-
<constant> CURSOR_SIZE
-
绘制模式自定义光标:32×32,热点在几何中心
-
<constant> DEF_MATCH_REGEX
-
USDA (ASCII) parser for USD. Produces specsByPath used by USDToGltfConverter. Ported from Three.js USDAParser; no Three.js dependencies.
-
<constant> DEFAULT_LABEL_BACKGROUND_PADDING
-
与 LabelGraphic.backgroundPadding 默认 [7, 5] 一致:[水平, 垂直](像素)
-
<constant> DRAW_CURSOR_SVG
-
折线拾点光标:中心留空 + 双色描边,在深浅模型表面都易辨认 - 外描边白色、内线品牌蓝,与批注线默认色接近 - 中心小圆环提示落点,不遮挡十字中心像素
-
<constant> getTweensT
-
热路径:位置插值 t ∈ [0,1],无分配、单次除法,RealTimePath 每帧每车调用
-
<constant> MarkupType :Object.<string, string>
-
Type:
- Object.<string, string>
-
<constant> ROPE_SVG
-
细绳/封网绳
-
<constant> ROTATION_PACK_FLAG_NONE
-
旋转打包预留位(bit30-31):00 三轴均为 0;11 至少一轴角度严格 > 0
-
<constant> STRESS_CABLE_SVG
-
承载索
-
<constant> VARIANT_PATH_REGEX
-
Three.js USDComposer VARIANT_PATH_REGEX — sibling variant attribute fallbacks.
Methods
-
applyDrawCursor( [element])
-
Parameters:
Name Type Argument Description elementHTMLElement <optional>
-
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 -
applyTriangulationPattern(fvData, pattern)
-
Map face-varying data (one scalar/entry per face-vertex in faceVertexIndices order) to triangulated corners.
Parameters:
Name Type Description fvDataArray.<number> | ArrayLike.<number> — length = sum(faceVertexCounts) patternArray.<number> — from triangulateFaceVertexMesh -
augmentVariantSetMetadata(specsByPath, SpecTypePrim)
-
Infer variant set / variant child metadata from prim paths (VARIANT_PATH_REGEX segments).
Parameters:
Name Type Description specsByPathObject SpecTypePrimnumber -
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
-
buildUsdGeomPrimitiveMesh()
-
UsdGeom Gprim → triangle mesh (Three.js USDComposer._buildGeomPrimitive). Capsule approximated as cylinder.
Returns:
- Type
- Object | null
-
buildUsdHoleMap()
-
Arnold-style polygon holes: [holeFaceIdx, parentFaceIdx, ...]. Three.js USDComposer._buildHoleMap
-
cesiumToDefinesClassificationType()
-
Returns:
Global.Defines.ClassificationType 字符串(TERRAIN / TILES3D / BOTH)- Type
- string | undefined
-
collectRawCompositionStrings(fields)
-
USD 组合:可有多个 prepend references,且可与 payload 并存;顺序上先展开 references 再 payload(弱/强因资产而异,此处全部合并进 dst)。
Parameters:
Name Type Description fieldsObject | undefined Returns:
原始 @...@ 片段字符串列表(每项再交给 parseAllRefTokensInString)- Type
- Array.<string>
-
collectReferencedUsdLayerPaths(specsByPath)
-
Collect layer paths from prepend references / payload (@file.usd@), like Three.js _getReferences.
Parameters:
Name Type Description specsByPathObject Returns:
- Type
- Array.<string>
-
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>
-
computeCameraDependentLutSignature(s)
-
Signature for LUTs that depend on view / camera relative atmosphere state.
Parameters:
Name Type Description sobject frameState.skyAtmosphereState Returns:
- Type
- string
-
computeFaceTriangleStarts()
-
For each face index i, starts[i] is the first triangle index (0-based) for that face. numTriangles is total triangle count.
-
computeFaceTriangleStartsWithHoles()
-
Face → first triangle index, with hole faces skipped and parent+hull tri count (Three.js USDComposer).
-
computeStaticAtmosphereLutSignature(s)
-
Signature for LUTs that only depend on atmosphere coefficients (not camera).
Parameters:
Name Type Description sobject frameState.skyAtmosphereState Returns:
- Type
- string
-
convertToGltf(params)
-
Parameters:
Name Type Description paramsObject Properties
Name Type Argument Default Description specsByPathObject assetsObject <optional>
basePathstring <optional>
diagnosticboolean <optional>
emitGltfSkinSkeletonboolean <optional>
false externalVariantSelectionsRecord.<string, string> <optional>
Returns:
- Type
- Object
-
copyPrimSubtree()
-
Copy prim subtree (prims + attribute specs) from innerSpecs into dstSpecs.
-
copyShadingVariantOverrideBranches()
-
拓扑在 /Root/Geom,displayColor 等常只在 /Root/{shadingVariant=V}/Geom/...(USDC 变体覆盖)。 仅合并 Geom 时 dst 缺少这些路径,getAttributes 无法命中 variant 覆盖。拷贝各 shading 分支下已有 spec(跳过已存在键)。
-
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 槽位。
-
effectiveMergeChildren()
-
primChildren 可能仍指向无网格的旧 Geom 壳(USDC),真实 Mesh 只在 `{variantSet=value}` 下(如 Bottle.geom)。 此时改用推断出的变体子节点;若 primChildren 子树已有 Mesh(冰箱等),保持原样。
-
expandMeshUvFromUsdPrimvar()
-
Expand a UV primvar to per-corner (triangulated) data matching positions.
-
extractUsdCustomAttributes(attributeSpecs)
-
Extract OpenUSD custom attributes from attribute specs. A USD property is custom only when its authored `custom` metadata is true.
Parameters:
Name Type Description attributeSpecsMap.<string, Object> | Record.<string, Object> | undefined Returns:
- Type
- Object | undefined
-
faceTrianglesPerFace()
-
Triangle count for one USD face; must match
triangulateIndicesfan order. -
<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>>
-
<async> fetchReferencedUsdLayers(resource, specsByPath [, alreadyLoaded])
-
Recursively fetch referenced USD layers (same origin or absolute URL) into assets for mergeUsdReferences. Relative paths (e.g. payload @./Kitchen_payload.usd@) resolve against the **layer file that contained the reference** — same as Three.js USDComposer._resolveFilePath with per-layer basePath. Previously all paths used the root Resource, so nested ./foo.usd resolved next to the root .usd (wrong).
Parameters:
Name Type Argument Description resourceObject Cesium Resource for the root USD layer specsByPathObject alreadyLoadedObject <optional>
optional map path -> truthy (e.g. existing ZIP entries) to skip fetch Returns:
- Type
- Promise.<Object.<string, {specsByPath: Object}>>
-
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
-
findUV2Primvar()
-
Second UV set (lightmaps / AO), same rules as Three.js _findUV2Primvar.
-
findUV3Primvar()
-
Third UV set (primvars:st2), same rules as Three.js PrimvarReader varname st2.
-
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.
-
getDrawCursorCss()
-
Returns:
可直接赋给 element.style.cursor- Type
- String
-
inferDirectPrimChildNames()
-
USDC 解析器常不填 primChildren,但子 prim 路径已存在(如 /Chair/{modelingVariant=ChairB}/Geom)。 USDA walkTree 会填 primChildren;合并必须两边行为一致,否则 Chair 等变体几何无法挂到引用 prim 下。
-
installSetVisiblePrototypeExtensions()
-
Patches Cesium primitives with setVisible; exported so bundlers retain this module.
-
isFiniteCartesian3(c)
-
Parameters:
Name Type Description cCesium.Cartesian3 -
isMatrix4Identity()
-
True if the 16-element column-major matrix is effectively identity (within IDENTITY_EPS).
-
isModelBoundingSphereFlyable()
-
glTF/Model 在部分资产上会得到 center/radius 含 NaN 或极端半径的 boundingSphere, flyToBoundingSphere 会触发 eastNorthUpToFixedFrame →「origin has a NaN component」并搞坏渲染。
-
<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.
-
mergeLayerRootIntoDst(dstSpecs, assets, basePath, inner, innerRoot, dstPrimPath, chainGuard, depth)
-
将子层 inner 中 innerRoot 的网格/子树合并到 dstPrimPath。若该 prim 无 primChildren(壳层仅含 payload/reference), 则沿链继续解析,直至 Kitchen_set 类资产中 Kitchen → Kitchen_payload → Kitchen.geom 的几何被挂到场景 prim 上。
Parameters:
Name Type Description dstSpecsObject assetsObject basePathstring innerObject innerRootstring dstPrimPathstring chainGuardSet.<string> depthnumber -
mergeUsdReferences(specsByPath, assets [, basePath])
-
多轮合并:copyPrimSubtree 写入的新 prim 若仍带子层引用,需在后续轮次继续展开。
Parameters:
Name Type Argument Description specsByPathObject assetsObject basePathstring <optional>
-
mergeUsdReferencesOnePass(specsByPath, assets [, basePath])
-
单轮:对每个带 reference/payload 的 prim 做合并(含壳层链式解析)。
Parameters:
Name Type Argument Description specsByPathObject assetsObject basePathstring <optional>
-
multiplyNodeMatrices()
-
Multiply node matrices from root down to targetIndex.
Returns:
16-element column-major matrix- Type
- Array.<number>
-
newellBasisForPolygon()
-
Newell normal + tangent basis for projecting polygon to 2D (Three.js USDComposer).
-
normalizeMarkupType( [type])
-
Parameters:
Name Type Argument Description typeString <optional>
Returns:
- Type
- String
-
parseAllRefTokensInString(raw)
-
同一 metadata 字符串里可出现多个
Parameters:
Name Type Description rawstring Returns:
- Type
- Array.<{file: string, primInRef: (string|null)}>
-
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)>
-
propagateReferencingVariantSelections()
-
USD composition: variant selections on a referencing prim (e.g. ChairB_1) apply to the composed reference root (e.g. …/ChairB_1/Chair). Three.js passes local variant selections into nested compose; after flatten-merge the inner prim still has asset defaults (ChairA). Copy overlapping selections down so getVariantPathsForParent picks ChairB meshes. Refrigerator works without this when the instance adds no override and the asset default matches the geom layer.
-
resetCursor( [element])
-
Parameters:
Name Type Argument Description elementHTMLElement <optional>
-
resolveCursorElement(map)
-
Parameters:
Name Type Description mapGlodon.CIMCube Returns:
- Type
- HTMLElement
-
resolveSkeletonPath()
-
Resolve skeleton path to full stage path. Relative/single-name refs (e.g. \"
\" -> \"/Skeleton\") become meshParentPath + \"/\" + name. -
triangulateFaceVertexMesh()
-
Triangulate USD mesh: point indices + face-vertex slot pattern (Three.js USDComposer._triangulateIndicesWithPattern). Optional polygonHoles: Arnold primvars:arnold:polygon_holes.
Returns:
- Type
- Object
-
triangulateFaceWithHolesPattern()
-
Triangulate one face with holes via earcut (2D projection); append to triangulated + pattern.
Returns:
false if earcut failed- Type
- boolean
-
trySplitMeshByGeomSubsets()
-
GeomSubset face indices → per-triangle material paths, then sort/group like Three.js USDComposer.
Returns:
- Type
- Array.<{positions: Array.<number>, normals: Array.<number>, uvs: (Array.<number>|null), uvs1: (Array.<number>|null), uvs2: (Array.<number>|null), indices: Array.<number>, materialBindingPath: (string|null)}> | null
-
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>>
-
usdColorTemperatureRgb()
-
Three.js USDComposer._colorTemperature (Tanner Helland), returns linear RGB 0–1.
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 模糊处理步长 biasnumber <optional>
0.9 角度剔除偏置,越大越不易产生暗边 directionCountnumber <optional>
AO 采样方向数(1–8),越小越快;不设则使用引擎默认 stepCountnumber <optional>
每方向最大步数上限,越小越快;不设则使用引擎默认 debugShowAmbientOcclusionboolean <optional>
false 是否仅显示 AO 纹理 debugShowNormalboolean <optional>
false 是否仅显示法线纹理 -
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 文本坐标点与文本框垂直相对位置 -
MarkupItemData
-
Type:
- Object
Properties:
Name Type Argument Description idString typeString graphicGlodon.CIMCube.Graphic.PolylineGraphic vertexGraphicsArray.<Glodon.CIMCube.Graphic.PointGraphic> <optional>
segmentsArray.<MarkupSegment> <optional>
-
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 是否启用鼠标右键点击事件 -
ModelMarkupLabelStyleOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description showBoolean <optional>
true 是否显示段中点标签 textString <optional>
默认标签文字 fontString <optional>
字体 CSS fillColorString <optional>
文字颜色 outlineColorString <optional>
"#000000" 字体描边颜色 outlineWidthNumber <optional>
1 字体描边宽度(像素) backgroundColorString <optional>
背景色 backgroundPaddingArray.<Number> <optional>
[7,5] 背景内边距 [水平, 垂直](像素) -
ModelMarkupLineStyleOptions
-
折线样式
Type:
- Object
Properties:
Name Type Argument Default Description typeString <optional>
"solid" 线型:`solid` | `dash`(或 `dashes`) colorString <optional>
"#F99D0B" 线颜色(CSS 色值) widthNumber <optional>
2 线宽(像素) gapColorString <optional>
虚线间隔色(type 为 dash 时有效) dashLengthNumber <optional>
虚线长度 gapLengthNumber <optional>
虚线间隔长度 disableDepthTestBoolean <optional>
false 是否禁用深度测试 -
ModelMarkupOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description typeString <optional>
"polyline" 批注几何类型,见 MarkupTypelineStyleModelMarkupLineStyleOptions <optional>
折线样式 vertexStyleModelMarkupVertexStyleOptions <optional>
顶点样式 labelStyleModelMarkupLabelStyleOptions <optional>
段标签样式 -
ModelMarkupVertexStyleOptions
-
顶点样式
Type:
- Object
Properties:
Name Type Argument Default Description sizeNumber <optional>
8 点大小(像素) fillColorString <optional>
"#F99D0B" 填充色 outlineColorString <optional>
"#FFFFFF" 描边色 outlineWidthNumber <optional>
2 描边宽度(像素) disableDepthTestBoolean <optional>
false 是否禁用深度测试 -
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