RawAccessor class

Inheritance

Constructors

RawAccessor({required GltfRoot root, required GltfRef<BufferView> bufferView, required int byteOffset, required ComponentType componentType, required bool normalized, required int count, required AccessorType type, required List<double>? max, required List<double>? min, required SparseAccessor? sparse})
RawAccessor.parse(GltfRoot root, Map<String, Object?> map)

Properties

bufferView → GltfRef<BufferView>
The reference to the buffer view. When undefined, the accessor MUST be initialized with zeros; sparse property or extensions MAY override zeros with actual values.
final
byteOffset → int
The offset relative to the start of the buffer view in bytes.
final
componentType → ComponentType
The datatype of the accessor's components. UNSIGNED_INT type MUST NOT be used for any accessor that is not referenced by mesh.primitive.indices.
final
count → int
The number of elements referenced by this accessor, not to be confused with the number of bytes or number of components.
final
hashCode → int
The hash code for this object.
no setterinherited
max → List<double>?
Maximum value of each component in this accessor. Array elements MUST be treated as having the same data type as accessor's componentType.
final
min → List<double>?
Minimum value of each component in this accessor.
final
normalized → bool
Specifies whether integer data values are normalized (true) to 0, 1 (for unsigned types) or to -1, 1 (for signed types) when they are accessed.
final
root → GltfRoot
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sparse → SparseAccessor?
Sparse storage of elements that deviate from their initialization value.
final
type → AccessorType
Specifies if the accessor's elements are scalars, vectors, or matrices. This should match the type used for a TypedAccessor.
final

Methods

asFloat() → FloatAccessor
asInt() → IntAccessor
asMatrix4() → Matrix4Accessor
asQuaternion() → QuaternionAccessor
asVector2() → Vector2Accessor
asVector3() → Vector3Accessor
asVector4() → Vector4Accessor
data() → Iterable<num>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited