AbstractGeometryItem class
Geometry element used by AbstractGeometry.
An AbstractGeometryItem represents a single drawable element attached to an anchor (for example a lane, arrow or waypoint marker). It contains rendering hints such as arrow presence/direction, the slot indexes where the shape attaches to the anchor, the shape form/type and any traffic restriction metadata.
Consumers typically use the TurnDetails.abstractGeometryImg property to obtain a ready-to-render image of the entire geometry.
See also:
- AbstractGeometry.items — List of geometry items attached to the anchor.
Constructors
- AbstractGeometryItem({ArrowType arrowType = ArrowType.none, ArrowDirection beginArrowDirection = ArrowDirection.none, int beginSlot = -1, ArrowDirection endArrowDirection = ArrowDirection.none, int endSlot = -1, RestrictionType restrictionType = RestrictionType.none, ShapeForm shapeForm = ShapeForm.line, ShapeType shapeType = ShapeType.street, int slotAllocation = 0})
- Creates an AbstractGeometryItem instance.
-
AbstractGeometryItem.fromJson(Map<
String, dynamic> json) -
Deserializes a JSON-compatible map to create an instance.
factory
Properties
- arrowType ↔ ArrowType
-
getter/setter pair
- beginArrowDirection ↔ ArrowDirection
-
Arrow direction at the begin.
getter/setter pair
- beginSlot ↔ int
-
Get the slot the shape begin is attached to the anchor.
The begin slot references the position where the begin shape is attached to the anchor.
getter/setter pair
- endArrowDirection ↔ ArrowDirection
-
Arrow direction at the end.
getter/setter pair
- endSlot ↔ int
-
Get the slot the shape end is attached to the anchor.
The begin slot references the position where the end shape is attached to the anchor.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- restrictionType ↔ RestrictionType
-
Restriction type.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shapeForm ↔ ShapeForm
-
Shape form.
getter/setter pair
- shapeType ↔ ShapeType
-
Shape type.
getter/setter pair
- slotAllocation ↔ int
-
Slot allocation.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes this instance to a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
covariant AbstractGeometryItem other) → bool -
The equality operator.
override