A primitive that renders voxel data from a
VoxelProvider.
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
optional
下列属性的对象 :
|
Experimental
This feature is not final and is subject to change without Cesium's standard deprecation policy.
See:
Members
allTilesLoaded : Event
发射事件是为了表示所有遇到屏幕空间错误的瓷砖都装入了这个框架. 阴道
原始内容已完全装入此视图 .
此事件在拍摄场景后在框架的尽头开火.
Example:
voxelPrimitive.allTilesLoaded.addEventListener(function() {
console.log('All tiles are loaded');
});
readonly boundingSphere : BoundingSphere
获得界圆.
clippingPlanes : ClippingPlaneCollection
The
ClippingPlaneCollection used to selectively disable rendering the primitive.
customShader : CustomShader
Gets or sets the custom shader. If undefined,
VoxelPrimitive.DefaultCustomShader is set.
See:
readonly customShaderCompilationEvent : Event
获取自定义阴影编辑器时要提起的事件 .
获取或设定是否渲染调试可视化 .
获取或设定在渲染时是否对深度进行测试.
readonly dimensions : Cartesian3
获得每个voxel瓦的尺寸,在z-up方向.
不包括贴纸.
获取或设定原始是否应当在视图变化时更新 .
initialTilesLoaded : Event
发射事件是为了表示所有遇到屏幕空间错误的瓷砖都装入了这个框架. 这个事件
当初始视图中的所有瓷砖都装入时,就会发射一次.
此事件在拍摄场景后在框架的尽头开火.
Example:
voxelPrimitive.initialTilesLoaded.addEventListener(function() {
console.log('Initial tiles are loaded');
});
See:
readonly inputDimensions : Cartesian3
在输入方向中获取输入阴道数据的一个瓦的尺寸.
Includes padding.
loadProgress : Event
这次事件是为了表明加载新瓷砖的进展。 此事件在新瓦片时被解除
当所请求的瓷砖下载完成时,以及下载的瓷砖已经下载时,请求
已处理完毕,准备完成.
The number of pending tile requests, numberOfPendingRequests, and number of tiles
处理中, 数字 TilesProcessing 被传递给事件听众.
此事件在拍摄场景后在框架的尽头开火.
Example:
voxelPrimitive.loadProgress.addEventListener(function(numberOfPendingRequests, numberOfTilesProcessing) {
if ((numberOfPendingRequests === 0) && (numberOfTilesProcessing === 0)) {
console.log('Finished loading');
return;
}
console.log(`Loading: requests: ${numberOfPendingRequests}, processing: ${numberOfTilesProcessing}`);
});
maxBounds : Cartesian3
获取或设置形状局部坐标系统中的最大界限.
Voxel 数据被拉伸或挤压以适应边界.
maxClippingBounds : Cartesian3
在形状的局部坐标系统中获取或设置最大剪切位置.
任何超出范围的内容都会被剪切.
获得阴道数据每个通道的最大值.
minBounds : Cartesian3
在形状的局部坐标系统中获取或设定最小界限.
Voxel 数据被拉伸或挤压以适应边界.
minClippingBounds : Cartesian3
在形状的局部坐标系统中获取或设置最小剪切位置.
任何超出范围的内容都会被剪切.
获得阴道数据每个通道的最低值.
readonly modelMatrix : Matrix4
获得模型矩阵.
获取或设置最近的采样.
readonly orientedBoundingBox : OrientedBoundingBox
得到方向边框.
readonly paddingAfter : Cartesian3
获取 Voxel 数据后的粘贴.
readonly paddingBefore : Cartesian3
在输入阴道数据之前得到粘贴.
readonly provider : VoxelProvider
获得与这个原始事物相关的
VoxelProvider .
获得一个表示原始是否准备使用的值.
用像素获取或设置屏幕空间错误。 如果屏幕的空间大小
的字段.
下屏幕空间错误对应更高细节渲染,但可能
导致性能下降和内存消耗增加.
readonly shape : VoxelShapeType
获得形状类型.
获取或设定此原始是否应当显示 .
获取或设置在射线布局中使用的步积乘数.
数值越低,渲染质量越高,但是
表现也越差.
tileFailed : Event
该事件是为了表明一瓷砖的内容未能加载.
Example:
voxelPrimitive.tileFailed.addEventListener(function() {
console.log('An error occurred loading tile.');
});
tileLoad : Event
该事件是为了表明一瓷砖的内容被装上.
此事件在调制框架时在平板转盘时发射 因此,对瓦片的更新在同一框架中生效。 不创建或修改 NT 0 事件听器期间的实体或原始人.
Example:
voxelPrimitive.tileLoad.addEventListener(function() {
console.log('A tile was loaded.');
});
tileUnload : Event
该事件是为了表明一瓷砖的内容被卸下.
Example:
voxelPrimitive.tileUnload.addEventListener(function() {
console.log('A tile was unloaded from the cache.');
});
tileVisible : Event
此事件会在框架内为每个可见的瓦片发射一次.
此事件在转向架打开时发射.
Example:
voxelPrimitive.tileVisible.addEventListener(function() {
console.log('A tile is visible.');
});
Methods
Destroys the WebGL resources held by this object. Destroying an object allows for deterministic
释放 WebGL 资源,而不是依赖垃圾收集器来摧毁此对象.
Once an object is destroyed, it should not be used; calling any function other than
Once an object is destroyed, it should not be used; calling any function other than
isDestroyed will result in a DeveloperError exception. Therefore,
assign the return value (undefined) to the object as done in the example.
Throws:
-
DeveloperError : This object was destroyed, i.e., destroy() was called.
Example:
voxelPrimitive = voxelPrimitive && voxelPrimitive.destroy();
See:
如果此对象被销毁, 返回真实; 否则, 错误 .
If this object was destroyed, it should not be used; calling any function other than
If this object was destroyed, it should not be used; calling any function other than
isDestroyed will result in a DeveloperError exception.
Returns:
true if this object was destroyed; otherwise, false.