new Cesium.MetadataClassProperty(options)

A metadata property, as part of a MetadataClass.

See the 3D Metadata Specification for 3D Tiles

Name Type Description
options object 下列属性的对象 :
Name Type Default Description
id string 财产的标识.
type MetadataType 地产类型如 NT 0 , NT 1 , NT 2 .
componentType MetadataComponentType optional 属性的组件类型 。 这包括整数( e.g . INT8 或 UINT16 ),和浮点( FLOAT32 和 FLOAT64 )值.
enumType MetadataEnum optional 财产的enum类型. 仅当类型为 ENUM 时定义 .
isArray boolean false optional True if a property is an array (either fixed length or variable length), false otherwise.
isVariableLengthArray boolean false optional True if a property is a variable length array, false otherwise.
arrayLength number optional 数组元素的数量 。 仅定义固定长度数组 .
normalized boolean false optional Whether the property is normalized.
min number | Array.<number> | Array.<Array.<number>> optional 存储此属性最低允许值的数字或数组数 。 仅在类型为数字类型时定义 .
max number | Array.<number> | Array.<Array.<number>> optional 存储此属性最大允许值的数字或数组 。 仅在类型为数字类型时定义 .
offset number | Array.<number> | Array.<Array.<number>> optional 作为价值转变的一部分,财产价值将增加抵消额.
scale number | Array.<number> | Array.<Array.<number>> optional 作为价值转换的一部分,将乘以属性值的尺度.
noData number | string | Array optional 代表无效值的无数据发送值 .
default number | string | Array optional 未定义实体属性值时使用的默认值 .
required boolean false optional Whether the property is required.
name string optional 财产名称.
description string optional 财产简介.
semantic string optional 描述该属性应如何解释的标识符 .
extras * optional 额外的用户定义属性 .
extensions object optional 包含扩展的对象 .
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.

Members

readonly arrayLength : number

数组元素的数量 。 仅定义固定大小 arrays.

readonly componentType : MetadataComponentType

属性的组件类型 。 包括整数 ( e.g . INT8 或 UINT16 ),和浮点值( FLOAT32 和 FLOAT64 )

readonly default : number|string|Array

未定义实体属性值时使用的默认值 .

readonly description : string

财产简介.

readonly enumType : MetadataEnum

财产的enum类型. 仅当类型为 ENUM 时定义 .

readonly extensions : object

包含扩展的对象 .

readonly extras : *

额外的用户定义属性 .

readonly id : string

财产的标识.

readonly isArray : boolean

如果一个属性是一个数组(固定长度或可变长度),则为真, false otherwise.

readonly isVariableLengthArray : boolean

如果属性是可变长度数组, 则不正确 .

readonly max : number|Array.<number>|Array.<Array.<number>>

存储此属性最大允许值的数字或数组 。 仅在类型为数字类型时定义 .

readonly min : number|Array.<number>|Array.<Array.<number>>

存储此属性最低允许值的数字或数组数 。 仅在类型为数字类型时定义 .

readonly name : string

财产名称.

readonly noData : number|string|Array

代表无效值的无数据发送值

readonly normalized : boolean

财产是否正常化 .

readonly offset : number|Array.<number>|Array.<Array.<number>>

作为价值转变的一部分,财产价值将增加抵消额. This is always defined, even when `hasValueTransform` is `false`. If the class property JSON itself did not define it, then it will be 初始化为默认值.

readonly required : boolean

是否需要财产 .

readonly scale : number|Array.<number>|Array.<Array.<number>>

作为价值转换的一部分,将乘以属性值的尺度. This is always defined, even when `hasValueTransform` is `false`. If the class property JSON itself did not define it, then it will be 初始化为默认值.

readonly semantic : string

描述该属性应如何解释的标识符 .

readonly type : MetadataType

地产类型如 NT 0 , NT 1 , NT 2 等
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.