Appearance
KBE3D / KBCore / Cesium / MetadataClassProperty
类: MetadataClassProperty
A metadata property, as part of a MetadataClass. <p> See the 3D Metadata Specification for 3D Tiles </p>
参数
Object with the following properties:
参数
The ID of the property.
参数
The type of the property such as SCALAR, VEC2, VEC3.
参数
The component type of the property. This includes integer (e.g. INT8 or UINT16), and floating point (FLOAT32 and FLOAT64) values.
参数
The enum type of the property. Only defined when type is ENUM.
参数
True if a property is an array (either fixed length or variable length), false otherwise.
参数
True if a property is a variable length array, false otherwise.
参数
The number of array elements. Only defined for fixed length arrays.
参数
Whether the property is normalized.
参数
A number or an array of numbers storing the minimum allowable value of this property. Only defined when type is a numeric type.
参数
A number or an array of numbers storing the maximum allowable value of this property. Only defined when type is a numeric type.
参数
The offset to be added to property values as part of the value transform.
参数
The scale to be multiplied to property values as part of the value transform.
参数
The no-data sentinel value that represents null values.
参数
A default value to use when an entity's property value is not defined.
参数
Whether the property is required.
参数
The name of the property.
参数
The description of the property.
参数
An identifier that describes how this property should be interpreted.
参数
Extra user-defined properties.
参数
An object containing extensions.
属性
id
readonlyid:string
The ID of the property.
name
readonlyname:string
The name of the property.
description
readonlydescription:string
The description of the property.
type
readonlytype:MetadataType
The type of the property such as SCALAR, VEC2, VEC3
enumType
readonlyenumType:MetadataEnum
The enum type of the property. Only defined when type is ENUM.
componentType
readonlycomponentType:MetadataComponentType
The component type of the property. This includes integer (e.g. INT8 or UINT16), and floating point (FLOAT32 and FLOAT64) values
isArray
readonlyisArray:boolean
True if a property is an array (either fixed length or variable length), false otherwise.
isVariableLengthArray
readonlyisVariableLengthArray:boolean
True if a property is a variable length array, false otherwise.
arrayLength
readonlyarrayLength:number
The number of array elements. Only defined for fixed-size arrays.
normalized
readonlynormalized:boolean
Whether the property is normalized.
max
readonlymax:number|number[] |number[][]
A number or an array of numbers storing the maximum allowable value of this property. Only defined when type is a numeric type.
min
readonlymin:number|number[] |number[][]
A number or an array of numbers storing the minimum allowable value of this property. Only defined when type is a numeric type.
noData
readonlynoData:string|number|any[]
The no-data sentinel value that represents null values
default
readonlydefault:string|number|any[]
A default value to use when an entity's property value is not defined.
required
readonlyrequired:boolean
Whether the property is required.
semantic
readonlysemantic:string
An identifier that describes how this property should be interpreted.
offset
readonlyoffset:number|number[] |number[][]
The offset to be added to property values as part of the value transform.
This is always defined, even when hasValueTransform is false. If the class property JSON itself did not define it, then it will be initialized to the default value.
scale
readonlyscale:number|number[] |number[][]
The scale to be multiplied to property values as part of the value transform.
This is always defined, even when hasValueTransform is false. If the class property JSON itself did not define it, then it will be initialized to the default value.
extras
readonlyextras:any
Extra user-defined properties.
extensions
readonlyextensions:any
An object containing extensions.
构造函数
构造函数
new MetadataClassProperty(
options: {id:string;type:MetadataType;componentType?:MetadataComponentType;enumType?:MetadataEnum;isArray?:boolean;isVariableLengthArray?:boolean;arrayLength?:number;normalized?:boolean;min?:number|number[] |number[][];max?:number|number[] |number[][];offset?:number|number[] |number[][];scale?:number|number[] |number[][];noData?:string|number|any[];default?:string|number|any[];required?:boolean;name?:string;description?:string;semantic?:string;extras?:any;extensions?:any; }):MetadataClassProperty
参数
options
id
string
type
componentType?
enumType?
isArray?
boolean
isVariableLengthArray?
boolean
arrayLength?
number
normalized?
boolean
min?
number | number[] | number[][]
max?
number | number[] | number[][]
offset?
number | number[] | number[][]
scale?
number | number[] | number[][]
noData?
string | number | any[]
default?
string | number | any[]
required?
boolean
name?
string
description?
string
semantic?
string
extras?
any
extensions?
any
返回
MetadataClassProperty
