Cesium for Unity 1.15.4
Loading...
Searching...
No Matches
CesiumPropertyTableProperty.cs
Go to the documentation of this file.
1using Reinterop;
2using System;
3using Unity.Mathematics;
4namespace CesiumForUnity
5{
31
38 [ReinteropNativeImplementation("CesiumForUnityNative::CesiumPropertyTablePropertyImpl", "CesiumPropertyTablePropertyImpl.h")]
39 public partial class CesiumPropertyTableProperty
40 {
41 #region Getters
42
48 {
49 get; internal set;
50 }
51
58 {
59 get; internal set;
60 }
61
65 public Int64 size
66 {
67 get; internal set;
68 }
69
75 {
76 get; internal set;
77 }
78
83 public bool isNormalized
84 {
85 get; internal set;
86 }
87
98 {
99 get; internal set;
100 }
101
112 {
113 get; internal set;
114 }
115
128 {
129 get; internal set;
130 }
131
144 {
145 get; internal set;
146 }
147
159 {
160 get; internal set;
161 }
162
172 {
173 get; internal set;
174 }
175 #endregion
176
178 {
179 this.status = CesiumPropertyTablePropertyStatus.ErrorInvalidProperty;
180 this.valueType = new CesiumMetadataValueType(CesiumMetadataType.Invalid, CesiumMetadataComponentType.None, false);
181 this.size = 0;
182 this.arraySize = 0;
183 this.isNormalized = false;
184 this.offset = new CesiumMetadataValue();
185 this.scale = new CesiumMetadataValue();
186 this.min = new CesiumMetadataValue();
187 this.max = new CesiumMetadataValue();
188 this.noData = new CesiumMetadataValue();
189 this.defaultValue = new CesiumMetadataValue();
190
191 this.CreateImplementation();
192 }
193
194 #region Public Methods
230 public partial Boolean GetBoolean(Int64 featureID, Boolean defaultValue = false);
231
232 #region Scalar Getters
233
270 public partial SByte GetSByte(Int64 featureID, SByte defaultValue = 0);
271
308 public partial Byte GetByte(Int64 featureID, Byte defaultValue = 0);
309
346 public partial Int16 GetInt16(Int64 featureID, Int16 defaultValue = 0);
347
384 public partial UInt16 GetUInt16(Int64 featureID, UInt16 defaultValue = 0);
385
423 public partial Int32 GetInt32(Int64 featureID, Int32 defaultValue = 0);
424
461 public partial UInt32 GetUInt32(Int64 featureID, UInt32 defaultValue = 0);
462
499 public partial Int64 GetInt64(Int64 featureID, Int64 defaultValue = 0);
500
537 public partial UInt64 GetUInt64(Int64 featureID, UInt64 defaultValue = 0);
538
578 public partial float GetFloat(Int64 featureID, float defaultValue = 0.0f);
579
618 public partial double GetDouble(Int64 featureID, double defaultValue = 0.0);
619
620 #endregion
621
622 #region Vector Getters
623
663 public partial int2 GetInt2(Int64 featureID, int2 defaultValue);
664
704 public partial uint2 GetUInt2(Int64 featureID, uint2 defaultValue);
705
744 public partial float2 GetFloat2(Int64 featureID, float2 defaultValue);
745
782 public partial double2 GetDouble2(Int64 featureID, double2 defaultValue);
783
826 public partial int3 GetInt3(Int64 featureID, int3 defaultValue);
827
870 public partial uint3 GetUInt3(Int64 featureID, uint3 defaultValue);
871
913 public partial float3 GetFloat3(Int64 featureID, float3 defaultValue);
914
954 public partial double3 GetDouble3(Int64 featureID, double3 defaultValue);
955
998 public partial int4 GetInt4(Int64 featureID, int4 defaultValue);
999
1042 public partial uint4 GetUInt4(Int64 featureID, uint4 defaultValue);
1043
1085 public partial float4 GetFloat4(Int64 featureID, float4 defaultValue);
1086
1126 public partial double4 GetDouble4(Int64 featureID, double4 defaultValue);
1127
1128 #endregion
1129
1130 #region Matrix Getters
1131
1172 public partial int2x2 GetInt2x2(Int64 featureID, int2x2 defaultValue);
1173
1214 public partial uint2x2 GetUInt2x2(Int64 featureID, uint2x2 defaultValue);
1215
1256 public partial float2x2 GetFloat2x2(Int64 featureID, float2x2 defaultValue);
1257
1295 public partial double2x2 GetDouble2x2(Int64 featureID, double2x2 defaultValue);
1296
1342 public partial int3x3 GetInt3x3(Int64 featureID, int3x3 defaultValue);
1343
1389 public partial uint3x3 GetUInt3x3(Int64 featureID, uint3x3 defaultValue);
1390
1436 public partial float3x3 GetFloat3x3(Int64 featureID, float3x3 defaultValue);
1437
1479 public partial double3x3 GetDouble3x3(Int64 featureID, double3x3 defaultValue);
1480
1523 public partial int4x4 GetInt4x4(Int64 featureID, int4x4 defaultValue);
1524
1567 public partial uint4x4 GetUInt4x4(Int64 featureID, uint4x4 defaultValue);
1568
1611 public partial float4x4 GetFloat4x4(Int64 featureID, float4x4 defaultValue);
1612
1651 public partial double4x4 GetDouble4x4(Int64 featureID, double4x4 defaultValue);
1652
1653 #endregion
1654
1680 public partial String GetString(Int64 featureID, String defaultValue = "");
1681
1697 public partial CesiumPropertyArray GetArray(Int64 featureID);
1698
1713 public partial CesiumMetadataValue GetValue(Int64 featureID);
1714
1731 public partial CesiumMetadataValue GetRawValue(Int64 featureID);
1732 #endregion
1733 }
1734}
Represents a value from a property in glTF metadata.
Represents an array value from a property in glTF metadata.
Represents a glTF property table property in EXT_structural_metadata.
partial CesiumPropertyArray GetArray(Int64 featureID)
Attempts to retrieve the value for the given feature as a CesiumPropertyArray.
CesiumMetadataValue defaultValue
The default value of this property, as defined by its class property.
partial int2x2 GetInt2x2(Int64 featureID, int2x2 defaultValue)
Attempts to retrieve the value for the given feature as a int2x2.
partial float3 GetFloat3(Int64 featureID, float3 defaultValue)
Attempts to retrieve the value for the given feature as a float3.
partial CesiumMetadataValue GetValue(Int64 featureID)
Retrieves the value of the property for the given feature as a CesiumMetadataValue.
CesiumMetadataValue min
The minimum value of this property.
partial Int64 GetInt64(Int64 featureID, Int64 defaultValue=0)
Attempts to retrieve the value for the given feature as a signed 64-bit integer.
partial UInt32 GetUInt32(Int64 featureID, UInt32 defaultValue=0)
Attempts to retrieve the value for the given feature as an unsigned 32-bit integer.
partial double3x3 GetDouble3x3(Int64 featureID, double3x3 defaultValue)
Attempts to retrieve the value for the given feature as a double3x3.
CesiumMetadataValue scale
The scale of this property.
partial float GetFloat(Int64 featureID, float defaultValue=0.0f)
Attempts to retrieve the value for the given feature as a single-precision floating-point number.
partial CesiumMetadataValue GetRawValue(Int64 featureID)
Retrieves the raw value of the property for the given feature.
CesiumMetadataValueType valueType
The type of the metadata value as defined in the EXT_structural_metadata extension.
partial uint4 GetUInt4(Int64 featureID, uint4 defaultValue)
Attempts to retrieve the value for the given feature as a uint4.
partial int3 GetInt3(Int64 featureID, int3 defaultValue)
Attempts to retrieve the value for the given feature as a int3.
Int64 arraySize
The number of elements in an array of this property.
partial Boolean GetBoolean(Int64 featureID, Boolean defaultValue=false)
Attempts to retrieve the value for the given feature as a boolean.
partial float4x4 GetFloat4x4(Int64 featureID, float4x4 defaultValue)
Attempts to retrieve the value for the given feature as a float4x4.
partial float4 GetFloat4(Int64 featureID, float4 defaultValue)
Attempts to retrieve the value for the given feature as a float4.
partial uint3x3 GetUInt3x3(Int64 featureID, uint3x3 defaultValue)
Attempts to retrieve the value for the given feature as a uint3x3.
partial float2x2 GetFloat2x2(Int64 featureID, float2x2 defaultValue)
Attempts to retrieve the value for the given feature as a float2x2.
partial uint2 GetUInt2(Int64 featureID, uint2 defaultValue)
Attempts to retrieve the value for the given feature as a uint2.
partial int4x4 GetInt4x4(Int64 featureID, int4x4 defaultValue)
Attempts to retrieve the value for the given feature as a int4x4.
partial double3 GetDouble3(Int64 featureID, double3 defaultValue)
Attempts to retrieve the value for the given feature as a double3.
partial int4 GetInt4(Int64 featureID, int4 defaultValue)
Attempts to retrieve the value for the given feature as a int4.
partial int3x3 GetInt3x3(Int64 featureID, int3x3 defaultValue)
Attempts to retrieve the value for the given feature as a int3x3.
partial float2 GetFloat2(Int64 featureID, float2 defaultValue)
Attempts to retrieve the value for the given feature as a float2.
partial double4 GetDouble4(Int64 featureID, double4 defaultValue)
Attempts to retrieve the value for the given feature as a double4.
partial double GetDouble(Int64 featureID, double defaultValue=0.0)
Attempts to retrieve the value for the given feature as a double-precision floating-point number.
partial Int16 GetInt16(Int64 featureID, Int16 defaultValue=0)
Attempts to retrieve the value for the given feature as a signed 16-bit integer.
Int64 size
The number of values in the property.
partial int2 GetInt2(Int64 featureID, int2 defaultValue)
Attempts to retrieve the value for the given feature as a int2.
partial float3x3 GetFloat3x3(Int64 featureID, float3x3 defaultValue)
Attempts to retrieve the value for the given feature as a float3x3.
bool isNormalized
Whether this property is normalized.
CesiumMetadataValue noData
The "no data" value of this property, as defined by its class property.
CesiumMetadataValue offset
The offset of this property.
partial double2 GetDouble2(Int64 featureID, double2 defaultValue)
Attempts to retrieve the value for the given feature as a double2.
partial UInt16 GetUInt16(Int64 featureID, UInt16 defaultValue=0)
Attempts to retrieve the value for the given feature as an unsigned 16-bit integer.
partial Int32 GetInt32(Int64 featureID, Int32 defaultValue=0)
Attempts to retrieve the value for the given feature as a signed 32-bit integer.
CesiumPropertyTablePropertyStatus status
The status of the property table property.
partial uint2x2 GetUInt2x2(Int64 featureID, uint2x2 defaultValue)
Attempts to retrieve the value for the given feature as a uint2x2.
partial uint4x4 GetUInt4x4(Int64 featureID, uint4x4 defaultValue)
Attempts to retrieve the value for the given feature as a uint4x4.
partial Byte GetByte(Int64 featureID, Byte defaultValue=0)
Attempts to retrieve the value for the given feature as an unsigned 8-bit integer.
partial UInt64 GetUInt64(Int64 featureID, UInt64 defaultValue=0)
Attempts to retrieve the value for the given feature as an unsigned 64-bit integer.
partial SByte GetSByte(Int64 featureID, SByte defaultValue=0)
Attempts to retrieve the value for the given feature as a signed 8-bit integer.
partial String GetString(Int64 featureID, String defaultValue="")
Attempts to retrieve the value for the given feature as a String.
CesiumMetadataValue max
The maximum value of this property.
partial uint3 GetUInt3(Int64 featureID, uint3 defaultValue)
Attempts to retrieve the value for the given feature as a uint3.
partial double2x2 GetDouble2x2(Int64 featureID, double2x2 defaultValue)
Attempts to retrieve the value for the given feature as a double2x2.
partial double4x4 GetDouble4x4(Int64 featureID, double4x4 defaultValue)
Attempts to retrieve the value for the given feature as a double4x4.
CesiumMetadataType
Identifies the type of a property in EXT_structural_metadata.
@ Valid
The feature ID attribute is valid.
CesiumMetadataComponentType
Identifies the component type of a property in EXT_structural_metadata.
CesiumPropertyTablePropertyStatus
Reports the status of a CesiumPropertyTableProperty.
@ EmptyPropertyWithDefault
The property table property is empty but has a specified default value.
@ ErrorInvalidProperty
The property table property does not exist in the glTF, or the property definition itself contains er...
@ ErrorInvalidPropertyData
The data associated with the property table property is malformed and cannot be retrieved.
Represents the value type of a metadata value or property, akin to the property types in EXT_structur...