English中文

VoxelProvider

new Cesium.VoxelProvider()

提供体素数据。旨在与 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

获取元数据组件类型。 Gets the metadata component types.
获取图块每个维度的体素数。这对于数据集中的所有图块都是相同的。 Gets the number of voxels per dimension of a tile. This is the same for all tiles in the dataset.
从局部空间到全局空间的转变。 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.

readonly maximumTileCount : number|undefined

该提供程序存在的最大切片数。该值用作体素渲染器分配适当数量的 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.

readonly maximumValues : Array.<Array.<number>>|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.

readonly minimumValues : Array.<Array.<number>>|undefined

获取元数据最小值。 Gets the metadata minimum values.

readonly names : Array.<string>

获取元数据名称。 Gets the metadata names.
获取图块后的填充体素数。这可以提高对图块边缘进行采样时的渲染质量,但会增加内存使用量。 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
获取图块之前的填充体素数。这可以提高对图块边缘进行采样时的渲染质量,但会增加内存使用量。 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
得到 Gets the VoxelShapeType
从形状空间到局部空间的变换。 A transform from shape space to local space.
默认值: Default Value: Matrix4.IDENTITY
获取元数据类型。 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:
名称 Name 类型 Type 默认值 Default 说明 Description
tileLevel number 0 可选 optional 瓷砖的水平度。 The tile's level.
tileX number 0 可选 optional 图块的 X 坐标。 The tile's X coordinate.
tileY number 0 可选 optional 图块的 Y 坐标。 The tile's Y coordinate.
tileZ number 0 可选 optional 图块的 Z 坐标。 The tile's Z coordinate.
返回: 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.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.