AnnotationLayoutResult class
Result of AnnotationLayoutEngine.layout: the annotations currently visible, positioned on screen and de-collided, together with the field-of-view status used to compute them.
Constructors
-
AnnotationLayoutResult({required List<
ArAnnotation> annotations, required ArStatus status, Map<String, int> rows = const {}, Map<String, List< groups = const {}})ArAnnotation> > -
const
Properties
-
annotations
→ List<
ArAnnotation> -
Visible annotations, sorted by distance, with ArAnnotation.arPosition
and ArAnnotation.arPositionOffset populated.
arPositionis the label's top-left corner in screen coordinates, the label being centered on the POI's projection.final -
groups
→ Map<
String, List< ArAnnotation> > -
Annotations that did not fit on screen once stacked, by the
ArAnnotation.uid of the visible annotation they are grouped into
(the overlapping one whose label is horizontally closest). They are
not part of annotations and have ArAnnotation.isVisible false.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
rows
→ Map<
String, int> -
Overlap row of each visible annotation, by ArAnnotation.uid. Pass it
back as
previousRowsto the next AnnotationLayoutEngine.layout call to keep labels on stable rows across frames.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → ArStatus
-
final
Methods
-
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