LineString class
An element that describes the position, length and appearance of a line.
Linestrings of the type LineStringType.flag can be used to assign a comment to all positions of the linestring. This is to enable the task controller to display farm-side-generated comments stored in the designator at certain positions as informational messages to the operator.
- Inheritance
-
- Object
- Iso11783Element
- LineString
- Mixed-in types
- Available extensions
- Annotations
-
- @CopyWith()
- @XmlRootElement(name: 'LSG')
- @XmlSerializable(createMixin: true)
Constructors
-
LineString.new({required List<
Point> points, required LineStringType type, String? designator, int? width, int? length, int? colour, String? id, List<XmlAttribute> ? customAttributes}) -
Default factory for creating a LineString with verified
arguments.
factory
- LineString.fromXmlElement(XmlElement element)
-
Creates a LineString from
element
.factory
Properties
- colour → int?
-
Colour of this.
final
- copyWith → _$LineStringCWProxy
-
Available on LineString, provided by the $LineStringCopyWith extension
Returns a callable class that can be used as follows:instanceOfLineString.copyWith(...)
or like so:instanceOfLineString.copyWith.fieldName(...)
.no setter -
customAttributes
→ List<
XmlAttribute> ? -
XML attributes that exist in the files but are not part of the standard.
finalinherited
- description → String
-
A short description of the element type.
finalinherited
- designator → String?
-
Name of this, description or comment.
final
- elementType → Iso11783ElementType
-
Which type of ISO 11783-10 element this is based on the XML tag.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
Unique identifier for this line string.
final
- idRefPattern → String
-
The ID reference pattern (regExp) for id if there is one.
no setteroverride
- length → int?
-
Length of this in millimeters.
final
- onlyVersion4AndAbove → bool
-
Whether this element type is only supported in version 4 and above.
finalinherited
-
points
→ List<
Point> -
The positions along this.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setteroverride
-
recursiveChildren
→ Iterable<
Iso11783Element> ? -
All the element children connected to this, and their children
recursively.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selfWithRecursiveChildren
→ Iterable<
Iso11783Element> -
All the element children connected to this, and their children
recursively.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - type → LineStringType
-
Which type of line string this is.
final
- width → int?
-
Width of this in millimeters, typically used as the spacing for separating
adjacent path in GuidancePatterns.
final
Methods
-
buildXmlChildren(
XmlBuilder builder, {Map< String, String> namespaces = const {}}) → void -
Builds the XML children of this on the
builder
. -
buildXmlElement(
XmlBuilder builder, {Map< String, String> namespaces = const {}}) → void -
inherited
-
mapPropsToString(
Type runtimeType, List< Object?> props) → String -
Returns a string for
props
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toXmlAttributes(
{Map< String, String?> namespaces = const {}}) → List<XmlAttribute> - Returns a list of the XML attributes of this.
-
toXmlChildren(
{Map< String, String?> namespaces = const {}}) → List<XmlNode> -
inherited
-
toXmlElement(
{Map< String, String?> namespaces = const {}}) → XmlElement -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- staticIdRefPattern → const String
- Regular expression matching pattern for the id of LineStrings.