Files
water-management-system/frontend/node_modules/@cesium/engine/Source/Scene/VoxelShape.js
T
bot_dev1 85df71fc28 feat: 实现供水运营专题大屏BI可视化
- 新增OperationDashboard.vue全屏大屏组件
- 添加6个核心KPI指标卡片: 进水总量/出水总量/产销差率/营收额/平均水质/报警次数
- 实现6个ECharts图表: 供水趋势/水质分布/报警统计/管网空间/设备状态/营收分析
- 创建静态HTML版本operation-dashboard.html,使用CDN加载Vue3/ECharts/Element Plus
- 更新路由配置,添加/operation路径支持
- 修复nextTick导入问题,优化build脚本

🚧 开发者: bot_dev1
📝 任务: #38 [BI] 运营仪表盘 + 供水专题大屏
2026-06-15 09:06:11 +08:00

180 lines
4.7 KiB
JavaScript

import DeveloperError from "../Core/DeveloperError.js";
/**
* Controls per-shape behavior for culling and rendering voxel grids.
* This type describes an interface and is not intended to be instantiated directly.
*
* @alias VoxelShape
* @constructor
*
* @see VoxelBoxShape
* @see VoxelEllipsoidShape
* @see VoxelCylinderShape
* @see VoxelShapeType
*
* @private
*/
function VoxelShape() {
DeveloperError.throwInstantiationError();
}
Object.defineProperties(VoxelShape.prototype, {
/**
* An oriented bounding box containing the bounded shape.
*
* @memberof VoxelShape.prototype
* @type {OrientedBoundingBox}
* @readonly
* @private
*/
orientedBoundingBox: {
get: DeveloperError.throwInstantiationError,
},
/**
* A bounding sphere containing the bounded shape.
*
* @memberof VoxelShape.prototype
* @type {BoundingSphere}
* @readonly
* @private
*/
boundingSphere: {
get: DeveloperError.throwInstantiationError,
},
/**
* A transformation matrix containing the bounded shape.
*
* @memberof VoxelShape.prototype
* @type {Matrix4}
* @readonly
* @private
*/
boundTransform: {
get: DeveloperError.throwInstantiationError,
},
/**
* A transformation matrix containing the shape, ignoring the bounds.
*
* @memberof VoxelShape.prototype
* @type {Matrix4}
* @readonly
* @private
*/
shapeTransform: {
get: DeveloperError.throwInstantiationError,
},
/**
* @memberof VoxelShape.prototype
* @type {Object<string, any>}
* @readonly
* @private
*/
shaderUniforms: {
get: DeveloperError.throwInstantiationError,
},
/**
* @memberof VoxelShape.prototype
* @type {Object<string, any>}
* @readonly
* @private
*/
shaderDefines: {
get: DeveloperError.throwInstantiationError,
},
/**
* The maximum number of intersections against the shape for any ray direction.
* @memberof VoxelShape.prototype
* @type {number}
* @readonly
* @private
*/
shaderMaximumIntersectionsLength: {
get: DeveloperError.throwInstantiationError,
},
});
/**
* Update the shape's state.
* @private
* @param {Matrix4} modelMatrix The model matrix.
* @param {Cartesian3} minBounds The minimum bounds.
* @param {Cartesian3} maxBounds The maximum bounds.
* @param {Cartesian3} [clipMinBounds] The minimum clip bounds.
* @param {Cartesian3} [clipMaxBounds] The maximum clip bounds.
* @returns {boolean} Whether the shape is visible.
*/
VoxelShape.prototype.update = DeveloperError.throwInstantiationError;
/**
* Update any view-dependent transforms.
* @private
* @param {FrameState} frameState The frame state.
*/
VoxelShape.prototype.updateViewTransforms =
DeveloperError.throwInstantiationError;
/**
* Converts a local coordinate to the shape's UV space.
* @private
* @param {Cartesian3} positionLocal The local coordinate to convert.
* @param {Cartesian3} result The Cartesian3 to store the result in.
* @returns {Cartesian3} The converted UV coordinate.
*/
VoxelShape.prototype.convertLocalToShapeUvSpace =
DeveloperError.throwInstantiationError;
/**
* Computes an oriented bounding box for a specified tile.
* @private
* @param {number} tileLevel The tile's level.
* @param {number} tileX The tile's x coordinate.
* @param {number} tileY The tile's y coordinate.
* @param {number} tileZ The tile's z coordinate.
* @param {OrientedBoundingBox} result The oriented bounding box that will be set to enclose the specified tile.
* @returns {OrientedBoundingBox} The oriented bounding box.
*/
VoxelShape.prototype.computeOrientedBoundingBoxForTile =
DeveloperError.throwInstantiationError;
/**
* Computes an oriented bounding box for a specified sample within a specified tile.
* @private
* @param {SpatialNode} spatialNode The spatial node containing the sample
* @param {Cartesian3} tileDimensions The size of the tile in number of samples, before padding
* @param {Cartesian3} tileUv The sample coordinate within the tile
* @param {OrientedBoundingBox} result The oriented bounding box that will be set to enclose the specified sample
* @returns {OrientedBoundingBox} The oriented bounding box.
*/
VoxelShape.prototype.computeOrientedBoundingBoxForSample =
DeveloperError.throwInstantiationError;
/**
* Defines the minimum bounds of the shape. The meaning can vary per-shape.
*
* @type {Cartesian3}
* @constant
* @readonly
*
* @private
*/
VoxelShape.DefaultMinBounds = DeveloperError.throwInstantiationError;
/**
* Defines the maximum bounds of the shape. The meaning can vary per-shape.
*
* @type {Cartesian3}
* @constant
* @readonly
*
* @private
*/
VoxelShape.DefaultMaxBounds = DeveloperError.throwInstantiationError;
export default VoxelShape;