提供体素数据。旨在与 Provides voxel data. Intended to be used with
VoxelPrimitive。该类型描述了一个接口,并不打算直接实例化。 . This type describes an interface and is not intended to be instantiated directly.
实验性 Experimental
此功能不是最终版本,可能会在没有 Cesium 标准弃用政策的情况下进行更改。 This feature is not final and is subject to change without Cesium's standard deprecation policy.
另见: See:
成员 Members
readonly componentTypes : Array.<MetadataComponentType>
获取元数据组件类型。 Gets the metadata component types.
readonly dimensions : Cartesian3
获取图块每个维度的体素数。这对于数据集中的所有图块都是相同的。 Gets the number of voxels per dimension of a tile. This is the same for all tiles in the dataset.
readonly globalTransform : Matrix4
从局部空间到全局空间的转变。 A transform from local space to global space.
-
默认值: Default Value:
Matrix4.IDENTITY
readonly maxBounds : Cartesian3|undefined
获取最大边界。如果未定义,则将使用形状的默认最大边界。 Gets the maximum bounds. If undefined, the shape's default maximum bounds will be used instead.
该提供程序存在的最大切片数。该值用作体素渲染器分配适当数量的 GPU 内存的提示。如果该值未知,则它可能是未定义的。 The maximum number of tiles that exist for this provider. This value is used as a hint to the voxel renderer to allocate an appropriate amount of GPU memory. If this value is not known it can be undefined.
获取元数据最大值。 Gets the metadata maximum values.
readonly minBounds : Cartesian3|undefined
获取最小边界。如果未定义,则将使用形状的默认最小边界。 Gets the minimum bounds. If undefined, the shape's default minimum bounds will be used instead.
获取元数据最小值。 Gets the metadata minimum values.
获取元数据名称。 Gets the metadata names.
readonly paddingAfter : Cartesian3
获取图块后的填充体素数。这可以提高对图块边缘进行采样时的渲染质量,但会增加内存使用量。 Gets the number of padding voxels after the tile. This improves rendering quality when sampling the edge of a tile, but it increases memory usage.
-
默认值: Default Value:
Cartesian3.ZERO
readonly paddingBefore : Cartesian3
获取图块之前的填充体素数。这可以提高对图块边缘进行采样时的渲染质量,但会增加内存使用量。 Gets the number of padding voxels before the tile. This improves rendering quality when sampling the edge of a tile, but it increases memory usage.
-
默认值: Default Value:
Cartesian3.ZERO
readonly shape : VoxelShapeType
得到 Gets the
VoxelShapeType
readonly shapeTransform : Matrix4
从形状空间到局部空间的变换。 A transform from shape space to local space.
-
默认值: Default Value:
Matrix4.IDENTITY
readonly types : Array.<MetadataType>
获取元数据类型。 Gets the metadata types.
方法 Methods
requestData(options) → Promise.<VoxelContent>|undefined
请求给定图块的数据。 Requests the data for a given tile.
| 名称 Name | 类型 Type | 说明 Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
可选 optional
具有以下属性的对象: Object with the following properties:
|
返回: Returns:
解析为包含图块数据的 VoxelContent 的承诺,如果无法在此帧安排请求,则为未定义。 A promise resolving to a VoxelContent containing the data for the tile, or undefined if the request could not be scheduled this frame.
