cesium
Version:
CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.
127 lines (125 loc) • 5.22 kB
JavaScript
/**
* An enum of built-in semantics.
*
* @enum MetadataSemantic
*
* @private
* @experimental This feature is using part of the 3D Tiles spec that is not final and is subject to change without Cesium's standard deprecation policy.
*/
var MetadataSemantic = {
/**
* The horizon occlusion point for horizon culling, stored as an <code>ARRAY</code> of 3 <code>FLOAT32</code> or <code>FLOAT64</code> components.
*
* @see {https://cesium.com/blog/2013/04/25/horizon-culling/|Horizon Culling}
*
* @type {String}
* @constant
* @private
*/
HORIZON_OCCLUSION_POINT: "HORIZON_OCCLUSION_POINT",
/**
* A bounding sphere, stored as an <code>ARRAY</code> of 4 <code>FLOAT32</code> or a <code>FLOAT64</code> components. The components represent <code>[x, y, z, radius]</code>, i.e. the center and radius of the bounding sphere.
*
* @type {String}
* @constant
* @private
*/
BOUNDING_SPHERE: "BOUNDING_SPHERE",
/**
* A name, stored as a <code>STRING</code>. This does not have to be unique
*
* @type {String}
* @constant
* @private
*/
NAME: "NAME",
/**
* A unique identifier, stored as a <code>STRING</code>.
*
* @type {String}
* @constant
* @private
*/
ID: "ID",
/**
* A bounding box for a tile, stored as an array of 12 <code>FLOAT32</code> or <code>FLOAT64</code> components. The components are the same format as for <code>boundingVolume.box</code> in 3D Tiles 1.0. This semantic is used to provide a tighter bounding volume than the one implicitly calculated in <code>3DTILES_implicit_tiling</code>
*
* @type {String}
* @constant
* @private
*/
TILE_BOUNDING_BOX: "TILE_BOUNDING_BOX",
/**
* A bounding region for a tile, stored as an array of 6 <code>FLOAT64</code> components. The components are <code>[west, south, east, north, minimumHeight, maximumHeight]</code>. This semantic is used to provide a tighter bounding volume than the one implicitly calculated in <code>3DTILES_implicit_tiling</code>
*
* @type {String}
* @constant
* @private
*/
TILE_BOUNDING_REGION: "TILE_BOUNDING_REGION",
/**
* A bounding sphere for a tile, stored as an array of 4 <code>FLOAT32</code> or <code>FLOAT64</code> components. The components are <code>[centerX, centerY, centerZ, radius]</code>. This semantic is used to provide a tighter bounding volume than the one implicitly calculated in <code>3DTILES_implicit_tiling</code>
*
* @type {String}
* @constant
* @private
*/
TILE_BOUNDING_SPHERE: "TILE_BOUNDING_SPHERE",
/**
* The minimum height of a tile above (or below) the WGS84 ellipsoid, stored as a <code>FLOAT32</code> or a <code>FLOAT64</code>. This semantic is used to tighten bounding regions implicitly calculated in <code>3DTILES_implicit_tiling</code>.
*
* @type {String}
* @constant
* @private
*/
TILE_MINIMUM_HEIGHT: "TILE_MINIMUM_HEIGHT",
/**
* The maximum height of a tile above (or below) the WGS84 ellipsoid, stored as a <code>FLOAT32</code> or a <code>FLOAT64</code>. This semantic is used to tighten bounding regions implicitly calculated in <code>3DTILES_implicit_tiling</code>.
*
* @type {String}
* @constant
* @private
*/
TILE_MAXIMUM_HEIGHT: "TILE_MINIMUM_HEIGHT",
/**
* A bounding box for the content of a tile, stored as an array of 12 <code>FLOAT32</code> or <code>FLOAT64</code> components. The components are the same format as for <code>boundingVolume.box</code> in 3D Tiles 1.0. This semantic is used to provide a tighter bounding volume than the one implicitly calculated in <code>3DTILES_implicit_tiling</code>
*
* @type {String}
* @constant
* @private
*/
CONTENT_BOUNDING_BOX: "CONTENT_BOUNDING_BOX",
/**
* A bounding region for the content of a tile, stored as an array of 6 <code>FLOAT64</code> components. The components are <code>[west, south, east, north, minimumHeight, maximumHeight]</code>. This semantic is used to provide a tighter bounding volume than the one implicitly calculated in <code>3DTILES_implicit_tiling</code>
*
* @type {String}
* @constant
* @private
*/
CONTENT_BOUNDING_REGION: "CONTENT_BOUNDING_REGION",
/**
* A bounding sphere for the content of a tile, stored as an array of 4 <code>FLOAT32</code> or <code>FLOAT64</code> components. The components are <code>[centerX, centerY, centerZ, radius]</code>. This semantic is used to provide a tighter bounding volume than the one implicitly calculated in <code>3DTILES_implicit_tiling</code>
*
* @type {String}
* @constant
* @private
*/
CONTENT_BOUNDING_SPHERE: "CONTENT_BOUNDING_SPHERE",
/**
* The minimum height of the content of a tile above (or below) the WGS84 ellipsoid, stored as a <code>FLOAT32</code> or a <code>FLOAT64</code>
*
* @type {String}
* @constant
* @private
*/
CONTENT_MINIMUM_HEIGHT: "CONTENT_MINIMUM_HEIGHT",
/**
* The maximum height of the content of a tile above (or below) the WGS84 ellipsoid, stored as a <code>FLOAT32</code> or a <code>FLOAT64</code>
*
* @type {String}
* @constant
* @private
*/
CONTENT_MAXIMUM_HEIGHT: "CONTENT_MINIMUM_HEIGHT",
};
export default Object.freeze(MetadataSemantic);