Skip to content

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

readonly id: string

The ID of the property.


name

readonly name: string

The name of the property.


description

readonly description: string

The description of the property.


type

readonly type: MetadataType

The type of the property such as SCALAR, VEC2, VEC3


enumType

readonly enumType: MetadataEnum

The enum type of the property. Only defined when type is ENUM.


componentType

readonly componentType: MetadataComponentType

The component type of the property. This includes integer (e.g. INT8 or UINT16), and floating point (FLOAT32 and FLOAT64) values


isArray

readonly isArray: boolean

True if a property is an array (either fixed length or variable length), false otherwise.


isVariableLengthArray

readonly isVariableLengthArray: boolean

True if a property is a variable length array, false otherwise.


arrayLength

readonly arrayLength: number

The number of array elements. Only defined for fixed-size arrays.


normalized

readonly normalized: boolean

Whether the property is normalized.


max

readonly max: 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

readonly min: 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

readonly noData: string | number | any[]

The no-data sentinel value that represents null values


default

readonly default: string | number | any[]

A default value to use when an entity's property value is not defined.


required

readonly required: boolean

Whether the property is required.


semantic

readonly semantic: string

An identifier that describes how this property should be interpreted.


offset

readonly offset: 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

readonly scale: 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

readonly extras: any

Extra user-defined properties.


extensions

readonly extensions: 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

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

KBE3D @3.0.0 Copyright © 2024-present KBE3D