该类实现了一个 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.
获取此对象的 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.
readonly layer : I3SLayer
获取父图层。 Gets the parent layer.
readonly parent : I3SNode|undefined
获取父节点。 Gets the parent node.
readonly resource : Resource
获取节点的资源。 Gets the resource for the node.
readonly tile : Cesium3DTile
获取该节点的Cesium3DTile。 Gets the Cesium3DTile for this node.
方法 Methods
返回给定功能的字段 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
返回给定拾取位置的字段 Returns the fields for a given picked position
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
pickedPosition |
Cartesian3 | 所选择的位置 The picked position |
返回: Returns:
包含字段名称及其值的对象 Object containing field names and their values
加载节点字段。 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
加载节点字段。 Loads the node fields.
返回: Returns:
加载 I3S 节点字段时解决的承诺 A promise that is resolved when the I3S Node fields are loaded
类型定义 Type Definitions
由属性名称和值给出的过滤器。如果未在值集合中指定 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 |
