ARNode class

ARNode is the model class for node-tree objects. It encapsulates the position, rotations, and other transforms of a node, which define a coordinate system. The coordinate systems of all the sub-nodes are relative to the one of their parent node.

Constructors

ARNode({required NodeType type, required String uri, String? name, Vector3? position, Vector3? scale, Vector4? rotation, Vector3? eulerAngles, Matrix4? transformation, Map<String, dynamic>? data})

Properties

data Map<String, dynamic>?
Holds any data attached to the node, especially useful when uploading serialized nodes to the cloud. This data is not shared with the underlying platform
getter/setter pair
eulerAngles ↔ Vector3
Determines the receiver's euler angles. The order of components in this vector matches the axes of rotation:
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name String
Determines the name of the receiver. Will be autogenerated if not defined.
final
position ↔ Vector3
Determines the receiver's position.
getter/setter pair
rotation ↔ Matrix3
Determines the receiver's rotation.
getter/setter pair
rotationFromQuaternion ← Quaternion
no getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale ↔ Vector3
Determines the receiver's scale.
getter/setter pair
transform Matrix4
Determines the receiver's transform. The transform is the combination of the position, rotation and scale defined below. So when the transform is set, the receiver's position, rotation and scale are changed to match the new transform.
getter/setter pair
transformNotifier ValueNotifier<Matrix4>
final
type NodeType
Specifies the receiver's NodeType
getter/setter pair
uri String
Specifies the path to the 3D model used for the ARNode. Depending on the type, this is either a relative path or an URL to an online asset
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromMap(Map<String, dynamic> map) ARNode