English中文

I3SNode

internal constructor new Cesium.I3SNode()

该类实现了一个 I3S 节点。在CesiumJS中,每个I3SNode都会创建一个Cesium3DTile。 This class implements an I3S Node. In CesiumJS each I3SNode creates a Cesium3DTile.

不要直接构造它,而是通过访问图块 Do not construct this directly, instead access tiles through I3SLayer.

成员 Members

readonly children : Array.<I3SNode>

获取子节点。 Gets the children nodes.

readonly data : object

获取此对象的 I3S 数据。 Gets the I3S data for this object.

readonly featureData : Array.<I3SFeature>

获取特征集合。 Gets the collection of features.

readonly fields : Array.<I3SField>

获取字段的集合。 Gets the collection of fields.

readonly geometryData : Array.<I3SGeometry>

获取几何图形的集合。 Gets the collection of geometries.
获取父图层。 Gets the parent layer.

readonly parent : I3SNode|undefined

获取父节点。 Gets the parent node.
获取节点的资源。 Gets the resource for the node.
获取该节点的Cesium3DTile。 Gets the Cesium3DTile for this node.

方法 Methods

getFieldsForFeature(featureIndex)object

返回给定功能的字段 Returns the fields for a given feature
名称 Name 类型 Type 说明 Description
featureIndex number 我们想要获取其属性的特征的索引 Index of the feature whose attributes we want to get
返回: Returns:
包含字段名称及其值的对象 Object containing field names and their values

getFieldsForPickedPosition(pickedPosition)object

返回给定拾取位置的字段 Returns the fields for a given picked position
名称 Name 类型 Type 说明 Description
pickedPosition Cartesian3 所选择的位置 The picked position
返回: Returns:
包含字段名称及其值的对象 Object containing field names and their values

loadField(name)Promise.<void>

加载节点字段。 Loads the node field.
名称 Name 类型 Type 说明 Description
name string 字段名称 The field name
返回: Returns:
加载 I3S Node 字段时解决的承诺 A promise that is resolved when the I3S Node field is loaded

loadFields()Promise.<void>

加载节点字段。 Loads the node fields.
返回: Returns:
加载 I3S 节点字段时解决的承诺 A promise that is resolved when the I3S Node fields are loaded

类型定义 Type Definitions

Cesium.I3SNode.AttributeFilter

由属性名称和值给出的过滤器。如果未在值集合中指定 3D 要素对象的属性名称值,则应隐藏该 3D 要素对象。 A filter given by an attribute name and values. The 3D feature object should be hidden if its value for the attribute name is not specified in the collection of values.
属性: Properties:
名称 Name 类型 Type 说明 Description
name string 属性的名称 The name of the attribute
values Array.<string> | Array.<number> 值的集合 The collection of values
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.