AROcclusion class
Occlusion configuration for realistic rendering
Constructors
-
AROcclusion({required String id, required OcclusionType type, required bool isActive, required Vector3 position, required Quaternion rotation, required Vector3 scale, required double confidence, required DateTime createdAt, required DateTime lastUpdated, Map<
String, dynamic> metadata = const {}}) -
const
-
AROcclusion.fromMap(Map<
String, dynamic> map) -
Creates an AROcclusion from a map
factory
Properties
- confidence → double
-
Confidence level of the occlusion (0.0 to 1.0)
final
- createdAt → DateTime
-
Timestamp when occlusion was created
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Unique identifier for the occlusion
final
- isActive → bool
-
Whether occlusion is currently active
final
- isRecent → bool
-
Whether the occlusion is recent (updated within last 5 seconds)
no setter
- isReliable → bool
-
Whether the occlusion is reliable based on confidence
no setter
- lastUpdated → DateTime
-
Timestamp when occlusion was last updated
final
-
metadata
→ Map<
String, dynamic> -
Additional metadata for the occlusion
final
- position → Vector3
-
Position of the occlusion in 3D space
final
- rotation → Quaternion
-
Rotation of the occlusion
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → Vector3
-
Scale of the occlusion
final
- type → OcclusionType
-
Type of occlusion being used
final
Methods
-
copyWith(
{String? id, OcclusionType? type, bool? isActive, Vector3? position, Quaternion? rotation, Vector3? scale, double? confidence, DateTime? createdAt, DateTime? lastUpdated, Map< String, dynamic> ? metadata}) → AROcclusion - Creates a copy of this AROcclusion with the given fields replaced
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts the AROcclusion to a map
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override