ObjectData class

Represents a detected object within the scanned room.

Constructors

ObjectData({required String uuid, required Position position, required ObjectCategory category, required double width, required double height, required double length, required Confidence confidence, RoomDimensions? dimensions, Matrix4? transform})
Creates an ObjectData.
const
ObjectData.fromJson(Map<String, dynamic> json)
Creates an ObjectData from a JSON map.
factory

Properties

category → ObjectCategory
The category of the detected object.
final
confidence → Confidence
The confidence level of the detected object.
final
dimensions → RoomDimensions?
The detailed dimensions (width, height, depth) from the new API.
final
hashCode → int
The hash code for this object.
no setteroverride
height → double
The height of the object.
final
length → double
The length (depth) of the object.
final
position → Position
The 3D position of the object's center.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transform → Matrix4?
The 3D transformation matrix (position, rotation) from the new API.
final
uuid → String
A unique identifier for the object.
final
width → double
The width of the object.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this ObjectData to a JSON map.
toString() → String
A string representation of this object.
override

Operators

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